PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.
0
votes
1answer
21 views
“unable to get local issuer certificate” and “tlsv1 unrecognized name”
I am having a problem with the Paypal IPN postback verification. The problem came up a month ago, I believe when Paypal updated their security standards and their certificates.
My website is running ...
0
votes
1answer
19 views
Why PHP doesn't run in Apache?
I want to start saying I'm a beginner in Linux & Networking, so I may not get something and if so, I'll ask some question (like comment).
Anyway, Let's writing my question.
I'm using Elementary ...
0
votes
0answers
10 views
Block uploads by extensions directly on php
We test our system day by day checking about php allowing bad formats in upload routines.
I discovered recently that developers uploaded a plugin with examples, that allow peoples to send php files ...
0
votes
0answers
41 views
Can't add a PPA, stuck at gpg: keybox
I'm on Debian Testing and I'm trying to add a repository with this command:
add-apt-repository ppa:ondrej/php
But it eventually gets stuck after it adds the gpg key, like so:
gpg: keybox '/tmp/...
0
votes
1answer
17 views
Recover accidentally deleted PHP file which is currently being executed on command line [duplicate]
The following command is executed at system startup and the PHP script is running in the background continuously with a loop:
screen -dmS some-friendly-name php /path/to/file.php
Unfortunately, I ...
0
votes
1answer
9 views
Creating nagios plugin from php script [closed]
I have a php script which parses xml file. I want to create plugin for Nagios, which will use that php script, or any other solution that would parse the xml file for attribute to change and monitor ...
0
votes
0answers
25 views
Duplicated mails from PHP mail function under NGINX vHost and Postfix
It's my first thread on StackExchange plateform.
I encounter a very weird issue with PHP mail() function and Postifx which is running on vHost under NGINX.
Below, the environnement:
I installed a ...
0
votes
1answer
27 views
How to monitor PHP-FPM in zabbix?
I want to monitor PHP-FPM in Zabbix. Tell me, please, how to do it?
Are there any templates to try it ?
-2
votes
1answer
29 views
How do I uninstall/purge php 7.x completely? (Kali/Debian)
On my distribution of Kali (2016.2) there was a php package v7.0.11 preinstalled. I'd like to use version 5.6 instead. Could anyone guide me through on how to remove it? I've already tried, looking ...
0
votes
2answers
42 views
Path Setting on linux server
I have php project that is running perfectly on window .
now I am deploying project on Centos Linux Server .
define('INCLUDES_PATH', ROOT_PATH.'cms-includes/');
ini_set('include_path',INCLUDES_PATH....
0
votes
1answer
91 views
How would I run a php script?
I am not sure if this is Unix related, but I can't really see what it would be, if it wasn't Unix related.
I'm running a Ubuntu Server, and I'm trying to execute a .php script on my website when ...
0
votes
0answers
117 views
Dependency error while installing php-gd on Centos 6
I am trying to install php-gd and I am getting this error message can someone point me to the right direction ... what should I do ?
Loaded plugins: fastestmirror
Setting up Install Process
Loading ...
0
votes
1answer
26 views
If I put a path after `.php`, the script is not found
On my Debian "testing" system after installing Moodle the request to
http://localhost/moodle/theme/image.php/clean/core/1473903261/req
returns
Not Found
The requested URL /moodle/theme/image.php/...
0
votes
1answer
33 views
Where can I download gd2 extension for PHP5.5 and how to install it
I met the question from work.
Web developer wants me to install gd2 extension and xmlrpc extension for PHP5.5 in Ubuntu 12.04 which is a running web-server for add new function for new web.
I tried ...
0
votes
0answers
55 views
Docker with Alpine Linux with Ioncube Loader and PHP 5.6 / 7
I tried two different Docker images alpine:edge with PHP7.0.10 (ionCube Loader Beta8) and alpine:3.4 with PHP 5.6.25 (ionCube 5.1.2, ioncube_loader_lin_5.6.so).
I figured so far that PHP7 needs to be ...
0
votes
2answers
29 views
File on php showing HTML document
Hy,
I'm getting an issue when I'm doing a file on some .php files on apache2 Vhost.
Here is the problem:
# file *.php
file1.php: PHP script, UTF-8 Unicode text, with very long lines
file2.php: ...
0
votes
0answers
26 views
Gentoo: How to compile php with pdo-pgsql but without dev-db/postgresql?
I'm trying to set up a separate machine exclusively for php-fpm. PHP need to have postgres support in PHP, so it need to be compiled with "--with-pdo-pgsql" flag. I've added this line to my /etc/...
-1
votes
1answer
2k views
Xampp Apache server won't start?
I have recently installed Xammp onto my laptop which runs Kali Linux. The MySQL server & ProFTPD server both run fine.
The Application log looks like:
Starting Apache Web Server...
Exit code: 8
...
0
votes
0answers
9 views
Allow HTTP to create a file in LAMP server
I was trying to create a web form that would accept the data from the user and store it in a text file.
For this I have installed LAMP server and I have written the code in PHP. Now the problem is ...
0
votes
1answer
81 views
PHP 5.5 mysql 5.6 version mismatch
I have Centos installed.
In error logs I get the error
PHP Warning: mysqli::mysqli(): Headers and client library minor version mismatch.
I have PHP 5.5 and mysql 5.6 installed.
It was suggested ...
0
votes
0answers
10 views
An error occurs after run “ php menu.php”
Does anyone meet such issue?
In Ubuntu 12.04 we have a nginx php mysql platform which supports the running for a website. After running git pull we still need to input "php menu.php" to update the ...
1
vote
0answers
29 views
CentOS 6.7 and fnmatch() in PHP
The PHP manual states about the fnmatch function:
Warning: For now, this function is not available on non-POSIX compliant systems except Windows.
I noticed that this function is not available on ...
3
votes
1answer
46 views
How do you point to non-default php version without sudo in terminal
Problem: When I ssh to my web server and run anything with "php", it runs an old php 5.2 for some reason. The link /usr/bin/php points to the wrong version. I cannot change this symlink.
What I ...
0
votes
1answer
42 views
How install php55 and php7 on Centos
I have php55 actually and httpd.
I would like to install also php7 (with php 55) or only php 5.6 - I mean php version 5.6, not php56.
How can I do that?
1
vote
1answer
86 views
No PHP modules after compiling Apache
I'm trying to install Apache 2.4 and PHP 5.6 on CentOS which I've done correctly and confirmed using ./apachectl configtest and php -v. The problem is that Apache is not recognizing PHP scripts ...
0
votes
1answer
121 views
Error installing php-snmp in CentOS
I'm currently on php 5.6 on CentOS 6.7.
I'm trying to install
yum install php-snmp
I keep getting
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading ...
0
votes
1answer
42 views
How can I compile an old PHP version and dependencies on debian 8? (PHP 5.1.0 in this case)
I'd like to install a very old PHP version on debian 8. Namely PHP 5.1.0. I will not use this in production, it is just for testing purposes. However, if I try to compile it I run into problems with ...
0
votes
0answers
48 views
Small http requests get truncated [closed]
At home, I recently updated my raspbian LAMP server from wheezy to jessie. I first recognized the error with my MediaWiki server (PHP) when article sizes grew beyond 6k characters. When submitting a "...
0
votes
0answers
54 views
Senderbase Monitoring Plugin for Nagios
I have downloaded the script from this link. Whenever I run that script it shows me below output.
#./senderbase 182.176.116.195
Output:
[ERROR] No results given
Is there anyone help me regarding ...
0
votes
1answer
27 views
php not working (source file)
I do not know why php is not working.
I install Nginx and php
server {
listen 80;
server_name t.com t.com;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
root ...
0
votes
1answer
30 views
Upgrade PHP only
I am using PHP Version 5.4.45 and want to upgrade to PHP 5.5.
I tried to upgrade with sudo apt-get install php5.
But after the install i still have PHP Version 5.4.45. Of course i restarted the ...
1
vote
0answers
131 views
nginx proxy - 502 bad gateway
First of all let me tell you that I am not an expert on web-servers and things like that.
I'm trying to set-up a cloud system on raspi following this link:
RasPi Owncloud
However, when I try to ...
1
vote
0answers
76 views
download file/backup from remote server to desktop without SSH or SCP?
Issue Background
I was trying to install uTorrent on my PHP site and mid-process I was kicked out of SSH and the website went down.
libssl.so.1.0.0 and libcrypto.so.1.0.0 were required for uTorrent ...
4
votes
1answer
184 views
accessing path from outside the root with symlink
I need to add an outside path to my apache configuration. (httpd)
so, I made a symlink to this path in my httpd root folder,
the path is: /var/log/httpd/ (I want to display logs directly in my ...
0
votes
2answers
84 views
Remove injected code from all php files in directory on Ubuntu [duplicate]
I have a site where some code was injected into a very large number of php files and removing them manually is not feasible due to the number of files.
I can search for a variable name from the ...
0
votes
0answers
31 views
Unable to Authenticate PhPVirtualBox Remote host - Firewall off - Auth Off
I am trying to get the most very basic setup running that I can build upon for controlling a remote Virtualbox installation.
The setup :
Server A :
192.168.1.10
Oracle VM VirtualBox web service ...
0
votes
1answer
69 views
Build a sitemap from local PHP forum pages
I've been reading stackexchange for years now, and always managed to find an answer to the problems I had to deal with.
This time however, I'm going to ask a question as I could not find a solution to ...
1
vote
2answers
84 views
Why my web browser always downloads the .php page rather than show it?
I installed a CentOS7 system in VMware Workstation. The host machine's OS is Win7;
I compiled and installed apache2 (httpd) and MySQL in CentOS, and they both work well, I mean I can visit the index....
1
vote
1answer
52 views
phpVirtualBox - Control Remote Servers - Central Management
Not sure if this is possible, all my google results come up with RDP stuff, or just basic, how to install phpVirtualBox.
I was wondering If I can set up a Central phpVirtualBox and connect it to ...
1
vote
1answer
86 views
Disk I/O and load average peaks once every hour
We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time.
...
0
votes
0answers
48 views
Magento can't send mails using postfix on ubuntu
For some reason mail() function fails when we try to send emails, I debugged the Magento base code and I found that it generates a call to mail function like this:
$result = mail('[email protected]', 'My ...
0
votes
0answers
184 views
Mcrypt install dependencies issue
I'm attempting to install php-mcrypt on a system that I have been building as a webserver. I know its an old outdated software but its necessary for the app I'm installing. I believe the issue is due ...
0
votes
1answer
40 views
Shell to do action, when someone visited my webpage [closed]
Can someone make a script that beeps or does some action when a user visits my webpage (apache2)?
0
votes
0answers
101 views
PhPVirtualBox Fails to import VM - SOAPFault
I am trying to import previously existing VM's into PhPVirutalBox. The installation of PHPVirtBox goes fine. I can create a VM's in the VM root @ /srv/Virtualbox, but I can't seem to add VM's.
Note : ...
0
votes
1answer
56 views
virtualhost problem with apache
I'm setting up a server with centos 7 and I have already installed Apache and php. I have tried to set-up a virtual-host to avoid "localhost/xxx.xxx", but now I cannot access to local-host any more. ...
0
votes
1answer
33 views
lamp server configuration error: locally stored php file not opening in the browser [closed]
I was learning how to configure LAMP server on Ubuntu machine. I was following the given website
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-...
0
votes
1answer
136 views
Install Apache and PHP on Centos without package manager (yum, rpm…) [closed]
Can anyone explain how to Install Apache and PHP on Centos without package manager?
i've only found this documentation in my searches: http://php.net/manual/fr/install.unix.apache.php
0
votes
1answer
285 views
PHP7 debian apt-get [duplicate]
How to install PHP 7 via apt-get ?
/etc/apt/sources.list
deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all
command line
wget https://www.dotdeb.org/dotdeb.gpg
...
0
votes
1answer
404 views
Can't install Apache2 and PHP in Linux Mint 17.3 (libapache2-mod-php)
Apache2 and PHP are correctly installed, but libapache2-mod-php is giving problems.
I try to install it with apt-get and I get the following:
Some packages could not be installed. This may mean that ...
1
vote
0answers
14 views
Send new login & logout logs to a database
I want to know how to send new login and logout logs to a database.
I know that last command outputs the "lasts" login info.
But, I found the following problems:
How to filter to only get new logs? ...