PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

learn more… | top users | synonyms

1
vote
1answer
1k views

Apache2 and PHP

I'm new installing/configuring apache2 and php. Here's what I've done thus far, along with my current server set up. I'm very familiar with Solaris/Sun OS. Solaris 10, PHP version is 5.3.26, Apache ...
0
votes
1answer
7k views

.php files not working with AddHandler - Apache 2.4

I am having an issue with Apache 2.4 configuration with PHP5. I have got this: <Directory / > Options +ExecCGI AddHandler cgi-script .cgi Action backButton /backButton.cgi AddHandler ...
0
votes
1answer
2k views

Using Ubuntu 12.04 + Apache 2.4 + Php 5.5 : WebDav Possible

I had ubuntu 12.04 LTS + Apache 2.4 + PHP 5.4 installed via ondrej packages. I upgraded to PHP 5.5, and it seems now impossible to launch webdav extension for apache. The apache mod webdav can't be ...
1
vote
1answer
2k views

dll in php “the specified module could not be found”

I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got: PHP Startup: Unable to load dynamic library 'C:\Program ...
0
votes
1answer
27 views

apache server hangs php-cgi, how can i debug further

We have Windows Server 2012 R2, Apache 2.2.31 and Php 5.6.18, Zend Server Version: 8.5.3 Apache seems to be hanging more and more frequently, a restart of apache seems to fix the problem most times. ...
0
votes
1answer
1k views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on /home/...
4
votes
3answers
4k views

Ubuntu install php5-ffmpeg

When I try to install php5-ffmpeg: apt-get install php5-ffmpeg I get an error: The following packages have unmet dependencies: php5-ffmpeg : Depends: phpapi-20090626+lfs As I understand my php5-...
0
votes
0answers
16 views

host smtp-in.orange.fr[80.12.242.9] said: 501 5.1.0 Emetteur invalide. Invalid Sender. OFR004_405 [405] (in reply to MAIL

After upgrading my ubuntu 14.4 with command apt-get upgrade, the php version has been updated to the version (5.6). The result is that our mail service does not work correctly. Actually, some ...
0
votes
0answers
47 views

Cannot install php5-mssql or php5-sybase

our server is running with Ubuntu 16 and PHP5.6 . We've tried to install PHP5 Ms SQL Server package, however it returns unable to locate package error. Most likely the PHP5 packages are no longer ...
1
vote
3answers
2k views

How to fix Apache from crashing with PHP+Curl on an SSL request?

My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL. If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl ...
0
votes
1answer
4k views

Can't connect to remote mssql server

I'm trying to connect to my remote mssql server for my GunZ private server, but for some reason i get the following error Cannot connect to 94.xx.xx.xx. ADDITIONAL INFORMATION: A connection was ...
0
votes
1answer
3k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = unix://...
1
vote
0answers
16 views

Script file is created to send junk mails [duplicate]

I have installed Joomla 3.3.6 on my ubnutu server 15.04 on cloud. I have noticed some script file created automatically which is sending some junk mail randomly. I have installed maldetect to check ...
9
votes
2answers
13k views

Where is php.ini-development on Ubuntu LAMP?

On my development machine I run Ubuntu 10.04.1 LTS. Following the official documentation, I used the following command to install Apache, MySQL and PHP in one go: sudo tasksel install lamp-server ...
0
votes
1answer
2k views

Failed upgrade of PHP on Ubunutu 12.04, error: Sub-process /usr/bin/dpkg returned an error code (1)

I just tried to upgrade my version of PHP on Ubuntu 12.04 and now I have messed it up. First I did this: sudo add-apt-repository ppa:ondrej/php5-oldstable Then I did this: sudo apt-get update ...
0
votes
1answer
2k views

Temporarily website outages, fastcgi PHP communication aborted

I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid 2599:...
0
votes
2answers
1k views

Cannot install php-intl on CentOS

When I run: yum install php-intl I get this error: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.as29550.net * epel: ftp.nluug.nl * extras: mirror....
16
votes
7answers
37k views

php - error: Cannot find OpenSSL's <evp.h>

Im trying to recompile PHP, but ./configure fails at : configure: error: Cannot find OpenSSL's <evp.h> I have LibSSL 1.0.0, LibSSL 0.9.8, LibSSL-Dev, OpenSSL installed. --with-openssl=/usr/...
-1
votes
1answer
22 views

How to Only install php5-mysql

Server System:Debian 7 My MySQL Server is not the same one for Apache Server,SO ,i want to install php5-mysql to connect mysql ,but when i use apt-get install php5-mysql,it always install mysql and ...
1
vote
2answers
13k views

I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed

I got a lot of these: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] [...
3
votes
1answer
3k views

“Unable to initialize module” fileinfo php-pecl-Fileinfo.x86_64

I have a brand new server server that I am trying to get setup up. This is a 64 bit machine that I can not install "fileinfo" or "memcache". I have uninstalled these and reinstalled them using yum ...
75
votes
11answers
198k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
0
votes
0answers
7 views

how to proxy a request to a page just for validation in apache?

I'm trying to design a captcha page in my proxy server which protects specific pages on target server aginst brute force attack, we cannot do any change on target server. so we have a proxy page ...
1
vote
0answers
26 views

Compiling PHP 5.5.7 with PDO IBM for IBM DB2

I'm trying to compile PHP 5.5.7 on an Ubuntu 12.04 with ubuntu precise partner repository enabled to allow to install IBM DB2 from db2exc package. When I configure PHP with pdo ibm source /home/...
1
vote
2answers
54 views

PHP parse error syntax error, unexpected end of file

I keep getting this error when i was on a LEMP setup nginx 1.10/PHP 7 and i thought it was because of PHP 7 and now i setup a new server with nginx 1.4.6/PHP 5.5.9 2016/06/19 15:45:18 [error] 4094#0: ...
-2
votes
2answers
1k views

How do i install another version of PhP?

I would like to have installed WHMCS on my dedicated server. (I already have installed apache2) How do I install PhP 5.4 as WHMCS not support PhP 5.5? WHMCS System requirements: http://docs.whmcs.com/...
2
votes
3answers
1k views

206 Partial Content returned with Content-Length: 0

I'm serving large audio files on an Apache server using mod_xsendfile (version >= 0.10). The files are served fine when I use header( 'HTTP/1.1 200 OK' ); However, those files are served in full. ...
3
votes
2answers
933 views

Enable coloured PHP CLI messages on console [closed]

How to enable coloured messages for PHP CLI on console (Mac OS X, latest PHP/Apache from MacPorts)? export CLICOLOR=1 export LSCOLORS=gxfxcxdxbxegedabagacad doesn't seem to be enough, all PHP CLI ...
-2
votes
1answer
41 views

Apache Extended Logs of php files

I am using apache and I want to log each php or any script file with its location which runs for more than 30 seconds or so. I tried to find solutions extensively, but no luck has come true. Is this ...
0
votes
0answers
44 views

Unable to retrieve HTTP_SESSION

I have set up a login form using Apache2's mod_auth_form. Now I am trying to retrieve the login of the user in a PHP script using the HTTP_SESSION environment variable, as advertised in mod_session's ...
0
votes
1answer
83 views

Fix PHP error Invalid argument supplied for foreach() after update PHP & Mysql

I have updated PHP from 5.3 version to PHP 5.6.21 (mod_fcgid) on my CentOs 6.5 vps. The vps holds 4 Prestashop and almost works but cart doesn't work as expected. The php error log contains this ...
0
votes
0answers
23 views

Render backslashes in environment variables

I am on CentOS 7 with PHP 5.5.34 (cli) I have some environment variables set in /etc/environment and have my apache config set to use /etc/environment as one of it's EnvironmentFile directives in ...
0
votes
0answers
46 views

Suspected Ubuntu PHP Garbage Collection Locking Server

I'm running Ubuntu 14.04 LTS with PHP 5.6.20 and, symptomatically, the server periodically fails to serve requests. I believe this occurs around the time that the PHP garage collection cron job /usr/...
0
votes
2answers
719 views

Only allow access to /directory from a specific domain?

I have multiple domains pointing to the same site. Example: I have www.admin-domain.com pointing to /var/www I have www.test.com pointing to /var/www/test directory and this is OK. Example: www....
0
votes
1answer
24 views

New server worked for a few hours, but now connections time out

I used this guide to set up Apache2 and PHP5: link. I set up a simple PHP script, debugged some permissions issues, got everything working. A few hours later, it stopped working. I could no longer ...
0
votes
1answer
86 views

Cannot get php5-fpm to work on Ubuntu 14.04 with Apache 2.4.7

I have been trying for two days now to upgrade my regular LAMP stack to use php5-fpm and event-mpm, but it just doesn't want to work! At this point seems like I've tried everything to make it work, ...
0
votes
0answers
18 views

Unable to install php5-mysql on Ubuntu 14.04

When I'm trying to install php5-mysql on my local PC with Ubuntu version: # cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS" ...
0
votes
1answer
34 views

A Website in my Centos 6 server is picking incorrect PHP version

I have a CentOS 6 server that has PHP 5.6.20 installed: # php -v PHP 5.6.20 (cli) (built: Apr 2 2016 08:28:23) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend ...
0
votes
0answers
23 views

Permission update on PHP script with Apache2 and mod_php

I have done my tests using a stock and up-to-date Apache2+PHP5 install on Debian Jessie, with mod_php. Let's say Apache runs under www-data system account (I've done other tests with mpm-itk and a ...
0
votes
0answers
70 views

Codeigniter links not working without index.php

I have a code igniter application that used to work properly in wamp, but after shifting to lamp it stopped working normally. Also I have used Modular Extensions to make my app follow HMVC Only the ...
2
votes
2answers
5k views

How to have multiple PHP on Webmin/Virtualmin

I've scoured the internet for 4 hours now trying to find how to get newer PHP Versions on Webmin. No luck! Ideally, how do you get PHP 5.5 on Webmin/Virtualmin? If this is not available yet the ...
0
votes
1answer
190 views

Configuring apache2-mpm-worker with php5

I have a ubuntu 14.04.4 server box and I have installed apache2 and php5 packages but after enabling mpm_worker and restart apache I got following error " Apache is running a threaded MPM, but your ...
0
votes
3answers
2k views

How do I enable updated PHP 5.5 versions in RHEL 7

As our development projects expand we're finding we often need newer versions of PHP, Python, Ruby, etc than are provided by Red Hat. What are others at NU doing to solve this problem? There doesn't ...
2
votes
1answer
103 views

FPM sometimes serving from wrong pool

I am using nginx + php5-fpm with multiple sites & pools. Every pool in the fpm is chrooted. Normally everything works as expected. But sometimes (every 1/20th request), especially if I requested ...
1
vote
0answers
79 views

PHP Script sending spams and mail.add_x_header not working

I've got my server hacked lately by some Php64 malware. Since then, I have found a lot of PHP files in my /var/www sub-folders. I am trying to delete each of these or clearing the files when some ...
1
vote
0answers
40 views

apache php-fpm: How to run scripts on same domain w/ different users

I have a number of directories containing php scripts that need to be run as separate users. Example directory structure is as follows: /var/www ├── project │ ├── item1 │ │   └── script1.php │ ...
2
votes
3answers
8k views

Update from PHP 5.3 to 5.4 on CentOS 6.3 while keeping Plesk [closed]

I need to update the servers PHP version, but when I try to remove the old php to install the new PHP 5.4 via yum it wants to remove the whole plesk suite which I want to keep. I followed this guide ...
1
vote
1answer
1k views

Ubuntu 12.04 PHP 5.3 to 5.5 update fails

on a Ubuntu 12.04 Server I´m trying to update PHP 5.3 to 5.5 this is what I have done: sudo add-apt-repository ppa:ondrej/php5 sudo apt-get update sudo apt-get install php5 unfortuntely the ...
0
votes
0answers
44 views

php-main.sock file not found in php version 5.6.20

I have successfully installed nginx version 1.9.11 on my remote server, running CentOS 7. I also installed PHP version 5.6.20 by following this link. I am trying to use a PHP socket for running PHP, ...
0
votes
3answers
706 views

How to disable some extensions in php 5.6?

I have installed php 5.6 in centos 6.7 server using yum --enablerepo=remi,remi-php56 install -y php-mysqlnd php-gd php-mbstring php-mcrypt php-xml php-fpm I have the following php extensions ...