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.

learn more… | top users | synonyms

3
votes
3answers
43 views

rsync files with apache permissions over ssh

I'm running a rsync via apache to sync an assets directory rsync -avz -e 'ssh -l rsync -i /home/rsync/.ssh/rsync -o StrictHostKeyChecking=no' /var/www/html/site/Uploads centos@$IP:/var/www/html/site/...
1
vote
1answer
21 views

Nginx + PHP-FPM serving .php files as downloads

It's a matter asked thousand times and since I hate write posts, I read and search for all possible documentation before get to the annoying part (for me) which is writing. So I have Nginx & PHP-...
-3
votes
0answers
49 views

How to install “php-cgi” in Kali Linux 2?

Today I tried to install "fluxion" in Kali Linux 2 but it shows an error that "php-cgi" is not installed . So how do I exactly solve this problem ? Image Link : http://imgur.com/a/Jf8gD
0
votes
1answer
26 views

Why would accessing a PHP CGI file with GET fail (404) but with POST succeed (200)?

I have centos web server. Name: CentOS release 6.8 (Final) Kernel Version: 2.6.32-642.6.2.el6.x86_64 Apache version: Apache/2.2.31 PHP version: 5.4.45 [PHP Switcher] I was try to access link getting ...
0
votes
0answers
19 views

How to install pdo and pdo_mysql extension for PHP 5.6 in one time

I need to transfer a PHP 5.5.37 from Ubuntu server to Centos 6.5. And PHP developer lets me install PHP 5.6.27 in Centos and deploy pdo and pdo_mysql extension for the PHP. My question is how can I ...
-1
votes
1answer
75 views

Complex multiline search & replace to remove injected code [duplicate]

Note this is NOT a duplicate, though it very much SEEMS like one. Before posting, I extensively tried the other solutions to very similar questions. This case is different because the large multi-line ...
0
votes
1answer
34 views

cat filename | cut -f2 | head -1 > newfile contains more characters than expected

When I run: cat filename | cut -f3 | head -1 I get the following result: apple However when I save this to a file by using: cat filename | cut -f3 | head -1 > newfile I then open this using ...
0
votes
1answer
11 views

selinux started blocking php “exec” calls after yum update

I've used the PHP exec command to issue lpr -P printer_name /var/www/html/somefile.pdf but after a RHEL system update (7.2 to 7.3), selinux has decided to start blocking these requests. selinux ...
0
votes
4answers
144 views

How to track the names of the uploaded files in Linux servers?

I want to monitor/keep track of all the files uploaded using web server (mainly using PHP/Apache and NOT using FTP server). I Googled and found that, only possible way could be writing a hook for ...
1
vote
1answer
99 views

SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (13) but 'localhost' works

Cent os Apache + php + MySQL from php when you try to connect to the MySQL at the address 127.0.0.1, an error occurs. If you replace a line 127.0.0.1 to localhost everything works without problems. ...
0
votes
0answers
3 views

Access V4L device as a normal JPEG file

I'm trying to write a live video-streaming program in PHP that'll run on Linux. PHP doesn't have any V4L libraries, but it does have file_get_contents(). Is there any way to access the contents of /...
1
vote
2answers
62 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
22 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
15 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
91 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
25 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
12 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
38 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
60 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 ?
-3
votes
1answer
56 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
48 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
101 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
174 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
32 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
40 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
77 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
29 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
11 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
118 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
11 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
40 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
55 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
48 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
121 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
175 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
53 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
51 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
67 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
28 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
32 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
188 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
94 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
256 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
91 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
46 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
72 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
94 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
59 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 ...