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

-4
votes
1answer
28 views

how to use windows software in linux host [on hold]

I have app For the production of software code Which is written in C# And I have a Linux host, Now Is there a way to use this Windows software on the Internet?
0
votes
0answers
16 views

Cannot load libphp5.so undefined symbol: unixd_config apache service not start

When I trying to restart apache service getting below error: root@localhost:/# /etc/init.d/apache2 restart [FAIL] Restarting web server: apache2 failed! [warn] The apache2 configtest failed. ... (...
0
votes
1answer
23 views

PHP Startup: Unable to load dynamic library : cannot open shared object file: No such file or directory

I'm trying to compile a specific version of GEOS and its PHP bindings in the Travis CI environment; they're using Ubuntu. Here is my install script: sudo apt-get update sudo apt-get remove 'libgeos.*...
0
votes
0answers
21 views

openssl issue in Ubuntu 16.04.1 LTS and php 5.6.28-1+deb.sury.org~xenial+1

I was trying to develop a twitter streaming application on my AWS EC2 machine. The OS platform is Ubuntu 16.04.1 LTS and I have downgraded the PHP version to 5.6.28-1+deb.sury.org~xenial+1 When I run ...
1
vote
1answer
16 views

DNS Resolve in php chroot

I created a script who create a chroot, setups php-fpm and apache2 to make the site working.. In my script i'm copying all requiered lib(s) to my chroot lib(s) dir(s) using this : fileArray=$(ldd /...
1
vote
1answer
28 views

How to POST 'shell output' as JSON data with Curl

I got the following command: curl -H 'Content-Type: application/json' -X POST -d '{"host": "'$(hostname)'"}' http://sitename.com/update.php Which works as expected, but if I try to send uptime ...
1
vote
1answer
26 views

php: compiling with openssl, ftp, ldap, curl support in debian gnu/linux

I'm trying to compile php 5.2.x in debian gnu/linux: ./configure --with-ldap --enable-ftp --with-apxs2 --with-mcrypt --enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --enable-exif ...
3
votes
3answers
55 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
55 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-...
0
votes
1answer
48 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
79 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
86 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
53 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
22 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
151 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
135 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
6 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
83 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
25 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
16 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
121 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
37 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
19 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
53 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
88 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
73 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
52 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
113 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
211 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
34 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
45 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
105 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
30 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
34 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
150 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
48 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
60 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
51 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
131 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
199 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
59 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
72 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
30 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
35 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
213 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
98 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
315 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 ...