Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php5]

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.

2
votes
1answer
1k views

Intermittent error 404 during higher loads. (nginx/php/apc/mysql)

I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php ...
0
votes
1answer
1k views

How can a bog-standard Wordpress install break PHP?

I'm trying to host a Wordpress site on the root of a standard Apache setup on Ubuntu 14.04. The main page of the site loads fine, but any other page causes a "no data received" message in the browser, ...
3
votes
1answer
5k views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
0
votes
1answer
1k views

PHP-FPM Loading Wrong Configuration File

Value of CLI running php --ini Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: /usr/local/lib/php.ini Value of phpinfo from my nginx/php-fpm web server page: ...
2
votes
1answer
1k views

PHP session files are not being deleted (IIS 7)

Our website isn't displaying because the C:\Windows\Temp directory can't be written to, because C:\ is now out of space. The reason: tons of sess_230498230493240 [random hash] files. Like, thousands. ...
1
vote
2answers
1k views

PHP pages working slow from time to time

I have VPS with limit of 2GB of ram and 8 CPU cores. I have 5 sites on that VPS (one of them is just for testing, no visitors exept me). All 5 sites are image galleries, like wallpaper sites. Last ...
1
vote
1answer
1k views

PHP Files being cached by unknown entity

I'm hitting a weird cache issue on my server, the project I am working on doesn't have any caching enabled at this time, but the server it self has APC installed (which was set to cache everything by ...
0
votes
1answer
1k views

Reducing Apache Memory usage and Average Process Size Value

I know that question is little long but i choosed to describe each and every aspect which i observed from my end. I am using a Linux server, OS used is Ubuntu 14.04, all rest configurations are ...
5
votes
1answer
1k views

How to configure PHPStorm to debug on IIS

I installed PHP 5 on IIS on a Windows 7 64 bit machine using the Web Platform Installer. I am using PHPStorm as my PHP IDE but cant find any documentation on how to get debugging to work. PHPStorm ...
1
vote
0answers
22 views

Error “undefined symbol: mysqlnd_connect”

I am building a VM to develop an existing PHP 5.6 application using Vagrant 2.1.2. My VM operating system is Ubuntu/Bionic64. This app requires the mysqli extension with mysqlnd, among other packages ...
1
vote
1answer
1k views

How do i set a open_basedir with php using fastcgi/apache2 on linux?

I tried to add this line to my virtual hosts in Apache, but failed: php_admin_value open_basedir "/var/www/users/test" My installation: root# apt-get install apache2 apache2-suexec libapache2-mod-...
0
votes
1answer
78 views

PHP 5.6 with Debian 9 -> mysql connection

I created an debian 9 machine with ISPConfig - standard stuff (after this tut: https://www.howtoforge.com/tutorial/perfect-server-debian-9-stretch-apache-bind-dovecot-ispconfig-3-1/ ). Comes with PHP ...
1
vote
2answers
2k views

server reached pm.max_children setting (280), consider raising it

PHP-FPM process getting crashed in every few days due to reached pm.max_children, I have to manually start it to make the site up. Server Configuration: Total Memory: 7986M CPU: 2 Core 1 PHP ...
0
votes
2answers
3k 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:...
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 ...
0
votes
1answer
90 views

Unable to enable mpm-event in httpd | centos 7

I am kind of new to mpm and all so please don't mind. I have a web server running 8 websites (php based) on it. And my RAM usage goes over 90 % and the swap usage goes over 80 %. And when i check ...
-1
votes
2answers
78 views

PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/xsl.so'

I'm getting an error whenever PHP (5.6) is starting from the command line (and crons) : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/xsl.so' - libexslt.so.0: ...
2
votes
2answers
27k views

Getting “The page you are looking for is temporarily unavailable. Please try again later”

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" ...
0
votes
1answer
12k 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 ...
5
votes
3answers
54k views

How do I enable the IMAP functions in PHP?

I have a LAMP box running Ubuntu, Apache 2 and PHP5 with Slicehost. I'm a bit new to all this sysadmin stuff (I'm primarily a web developer). I need to use the IMAP functions in PHP, but they don't ...
169
votes
16answers
539k 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
1answer
104 views

Laravel Forge: Unable to create AWS EC2 instance in London Region

When I try to create a server on Laravel Forge for AWS in the London region I get the following error message: Whoops! There were some problems with your input. The server provider was unable ...
0
votes
2answers
393 views

Apache 2.4 with PHP-FPM 5.6 on Centos 6

I'm trying to get PHP working over FPM on Centos. On the FPM side, /etc/php-fpm.d/www.conf is pretty much the default values. I'm left it using a TCP port as follows (I may want to change to a file ...
3
votes
3answers
21k views

Nginx editing php.ini changes no reflecting

phpinfo says the file location is /etc/php5/fpm/php.ini. Additional .ini files parsed /etc/php5/fpm/conf.d/curl.ini, /etc/php5/fpm/conf.d/gd.ini, /etc/php5/fpm/conf.d/mcrypt.ini, /etc/...
9
votes
1answer
9k views

After compile install php 5.3.1, I can not find my php.ini file

my compile configuration: ./configure \ --with-fpm \ --with-libevent=shared,/usr/lib \ --with-mcrypt \ --with-zlib \ --with-curl \ --enable-mbstring \ --with-openssl \ --with-mysql \ --with-mysql-...
0
votes
1answer
187 views

Ubuntu 16.04 - Purge php completely but still shows PHP 5.4.15 (cli)

I want to purge PHP completely from my Ubuntu 16.04. I have did all the stuff to remove PHP which as below, sudo apt-get purge "php*" sudo apt-get purge "^php.*" sudo apt-get purge "^php*" sudo apt-...
0
votes
1answer
85 views

WAMP Stack/Silverstripe, High TTFB but fast PHP execution? Where can I look for answers?

My production server is Windows Server 2012 R2, Apache 2.4, PHP 5.6, and MariaDB (unsure of version, probably irrelevant). I have a customized site running on Silverstripe 3.5. Lately, I'm getting ...
-2
votes
1answer
139 views

Using htaccess change the website default index file from root folder to sub folder, site other pages should still work from root folder

Using htaccess how to change the PHP website default home page ie index.php file from root folder ie "html" to sub folder(say it 'subfolder') but site should still work as before ie the home page will ...
1
vote
1answer
6k 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
votes
1answer
35 views

Will apt-get upgrade modify symlinks? For example libphp7 symlinked instead of libphp5 under /etc/alternatives

I performed sudo apt-get upgrade. $ sudo apt-get upgrade After the upgrade, I noticed some php 5.7 files and folders in the etc directory For example: I saw /usr/bin/php7.1 and /etc/php/7.0, 7.1, 7....
0
votes
1answer
133 views

Difference between php5_module vs mod_php5

I am using remi's php repositories to use php5.6 in parallel with php 7, and so my apache config file /etc/httpd/conf.modules.d/10-php56-php.conf is like so: <IfModule prefork.c> LoadModule ...
0
votes
1answer
111 views

why is phplist responding with 500 Internal Server Error?

I just did a fresh install of phplist, but when I attempt to access it in my browser, I get an empty page with status code = "500 Internal Server Error" I'm running CentOS 7 and phplist is being ...
0
votes
2answers
2k views

PHP header redirect working in nginx even output sent

note: There is a similar question but that's about Apache. The following code <?php echo '.'; header('Location: http://stackoverflow.com'); is fully 'working' under nginx 0.7.67 where 'working' ...
3
votes
3answers
3k views

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

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 ...
3
votes
1answer
1k views

Getting HTTP/2 Working on Apache 2.4.29 on Debian 8

I am trying to update my apache2 (Apache/2.4.29 (Debian 8)) server to support http2 but after enabling http2 with following code, it does not work because of mpm_prefork does not support http2 <...
5
votes
3answers
9k views

Reconfiguring PHP 5.6 to run on MacOS 10.13 High Sierra

I need to get PHP 5.6 running on a Mac that had to be updated to 10.13. So I reinstalled 5.6, verified its location, and added it to httpd.conf: LoadModule php5_module libexec/apache2/libphp5.so ......
0
votes
0answers
38 views

URL Parameters do not appear in PHP info under Query_String

There is an issue on my server at the moment where I input: http://example.com/phpinfo.php?test=1 On the PHP Variables, it should appear with "test=1" beside "_SERVER["QUERY_STRING"]". The server ...
0
votes
1answer
2k views

Wordpress site has repeated PHP out of memory error despite increasing PHP memory limit and confirming no RLimitMEM

Nearly every 4 minutes, I'm seeing the following out of memory error in the php error log: 01-Jul-2014 21:50:03 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to ...
0
votes
0answers
38 views

Wordpress and PHP Version Upgrade issue

I am running PHP Version 5.6 on my Ubuntu 14.04 Server. /home/ubuntu# php -v PHP 5.6.36-1+ubuntu14.04.1+deb.sury.org+1 (cli) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) ...
4
votes
2answers
6k views

PHP5-FPM and 'ondemand'

I've set up a server with Nginx and PHP5-FPM, and things are running fine. However, as I add more and more sites to the server I see that the memory usage steadily increases, and I've come to the ...
5
votes
1answer
340 views

Apapche + php-fpm + mysql too slow on powerful server

I'm trying to test load a LAMP application that my team developed and deployed on AWS ubuntu 14.04 using jmeter. We are using AWS CDN to serve static files, mysql and apache are on the same host. ...
0
votes
2answers
21k views

How to build & install pgsql PHP extension manually on Ubuntu

I've searched high and low and haven't found anything. Perhaps I don't know what to search for. Environment is Ubuntu Lucid (10.4) with PHP 5.2.4 & PostgreSQL 9.2. PHP is "held" at 5.2.4 with ...
0
votes
0answers
204 views

Can't handle PHP sessions in more than 1 apache virtual host

I have 2 cloned instances in AWS with Ubuntu 16, Apache 2.4 and PHP 5.6. I configured each with 2 virtual hosts (plus the default) with the same configuration (different names obviously): Define ...
1
vote
0answers
202 views

core_output_filter: flushing because of FLUSH bucket - why am I seeing this in Apache error log?

Does anyone know why do I keep seeing core_output_filter: flushing because of FLUSH bucket in my Apache 2.4.7 (Ubuntu) error log and what does it mean? I haven't noticed any problems so far, but it ...
0
votes
0answers
153 views

PHP5.4 with an openssl greater than 0.9.8y?

I have an associate who has the following server configuration: Microsoft Windows Server 2008 R2 Standard – Version 6.1.7601 Service Pack 1 Build 7601 Internet Information Services (Version ...
0
votes
3answers
237 views

unable to execute php files in google cloud service

Here is my site link and when i try to login then in network the response i get is the whole login.php code instead of the response after executing the php file. My app.yaml file is correct i have ...
4
votes
2answers
14k views

php-fpm Bad file descriptor errors

I'm using php-fpm with customer separate pools. Sometimes page are freezing, then showing 500 internal server error, and I'm getting such errors in error log: [11-Feb-2013 22:12:39] ERROR: unable to ...
15
votes
3answers
70k views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
-1
votes
1answer
822 views

Apache Timeout directive correct but requests never timeout (not working)

I am having trouble getting Timeout directive to work, I have reproduced the issue in the below instructions and official Docker container. The server is using the standard MPM prefork model with ...
2
votes
4answers
10k views

APC does not load when calling PHP from cli

After installing APC on CentOS 5 via pecl install apc, APC does not load when PHP is called from the CLI (when called from apache, it loads without any problems). The error I get is: root@server [~]#...