Skip to main content

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.

Filter by
Sorted by
Tagged with
183 votes
18 answers
1.2m 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.
Galen's user avatar
  • 1,983
39 votes
6 answers
113k views

PHP exit status 255: what does it mean?

I recently compiled a PHP 5.2.9 binary, and I tried to execute some PHP scripts with it. I can execute some scripts without problems, but one of them halts its execution midway, exiting with no errors ...
Silvio Donnini's user avatar
29 votes
2 answers
41k views

Installing imagick PHP extension on Ubuntu

I'm trying to install the imagick pecl extension on my Ubuntu server and am getting the below error. I've installed the ImageMagick rpm using aptitude already and the pecl extension is version 2.3.0. ...
Steven Surowiec's user avatar
25 votes
4 answers
69k views

nginx + PHP-FPM = "permission denied" error 13 in nginx log; configuration mistake?

I've got nginx 0.7x + PHP-FPM running under PHP 5.2.10 on one RHEL5 server, but trying to duplicate that setup under the bundled-in PHP-FPM in PHP 5.3.3 on a second server, I'm having some trouble ...
Peter Kirn's user avatar
19 votes
4 answers
151k 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 ...
Jeremy Wilson's user avatar
18 votes
4 answers
68k views

Exclude a specific repo from YUM Update

I am doing a system wide yum update on RHEL 5.5 and the IUS EPEL repository is throwing a missing dependency error: php53-mcrypt-5.3.3-4.ius.el5.x86_64 from installed has depsolving problems --> ...
Robin's user avatar
  • 361
15 votes
2 answers
43k views

configure: error: Cannot find php-config. Please use --with-php-config=PATH

I'm trying to install a program called phraseanet. I ran the ./configure command and run into this error: configure: error: Cannot find php-config. Please use --with-php-config=PATH I am using ...
learningtech's user avatar
  • 7,549
14 votes
1 answer
19k views

How is memcache distributed?

I've got memcache running on 5 web servers all of which are on the host list in php and which are load balanced on the front end. So since memcached is supposed to be distributed the php client will ...
Mike's user avatar
  • 143
13 votes
2 answers
17k 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 ...
Iain Samuel McLean Elder's user avatar
12 votes
7 answers
118k views

Connection refused HTTPS on Apache

I'm currently trying out HTTPS on one of my sites, and I got a trial certificate from a trusted CA. I've gone through the following checklist: Copied all the cert files according to the CA's ...
Deniz Zoeteman's user avatar
11 votes
1 answer
24k views

Setting php values in php-fpm confs instead of php.ini

I'd like to set values in php-fpm conf files what are normally set in php.ini. I'm using nginx. I've created the following setting, but I'm not sure if this would work. php_value[memory_limit] = 96M ...
hyperknot's user avatar
  • 741
11 votes
3 answers
10k views

apache2 and php5: module or filter

What the difference between the php5 module (libapache2-mod-php5) and the php5 filter module (libapache2-mod-php5filter) for apache2? Which one should I use in which environment?
gucki's user avatar
  • 828
11 votes
1 answer
12k 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-...
Alex Chen's user avatar
  • 283
10 votes
5 answers
22k views

Optimize apache for 10K+ wordpress views a day on 2GB RAM E6500 CPU

I have a dedicated server with apache/php on ubuntu serving my Wordpress blog with about 10K+ pageviews a day. I have W3TC plug in installed with APC. But every now and then server stop responding or ...
Broke artist's user avatar
9 votes
5 answers
57k 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/...
Case's user avatar
  • 321
9 votes
1 answer
19k views

php-fpm: unrecognized service

I can't seem to restart my php fpm on my Ubuntu server I did ps aux | grep php-fpm I got root 1543 0.0 0.7 444672 7552 ? Ss Nov10 2:14 php-fpm: master process (/etc/php/5.6/...
code-8's user avatar
  • 191
9 votes
2 answers
9k views

pecl install mongo - keeps compiling with wrong module API

Working with Ubuntu 12.04 here, nginx and php5-fpm I had mongo working well on php 5.3, then I added the ondrej/php5 ppa and updated to php5.4. It kept GD and CURL extensions, but not mongo. I re-...
kavisiegel's user avatar
9 votes
2 answers
35k views

How can i enable byte range request?

How can i enable byte range request? While pod casting on itunes it gives an error message "There is a problem with your feed. Your episodes are hosted on a server which doesn’t support byte-range ...
praji's user avatar
  • 191
8 votes
6 answers
42k views

Downgrade PHP 5.4 to 5.3 in Debian

I had to do a Debian dist-upgrade on my server... in the process, PHP got upgraded to 5.4. We use ioncube which only supports up to 5.3 atm, and I'm having some trouble finding how to downgrade to 5....
Carnivoris's user avatar
8 votes
3 answers
15k views

Nginx + Php5-fpm not rendering php files

I've spent hours figuring out how to install Nginx + Ruby Enterprise Edition + PHP5-fpm and MYSQL, finally it is all installed and all seems to have started fine. But for some reason php files are ...
Emmanuel's user avatar
  • 347
8 votes
2 answers
9k views

PHP5-FPM does not create unix socket directory within /var/run

I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm. /etc/php5/fpm/pool.d/www.conf listen = /var/run/php5-fpm/$pool.sock The problem is that it will not automatically ...
igorw's user avatar
  • 181
7 votes
3 answers
20k views

PHP installation on IIS: ISAPI or CGI?

I'm running IIS6 on Windows Server 2k3, and currently have PHP installed as a ISAPI module. We're about to upgrade our environment to PHP 5.3.0, and this made me wonder whether I should stick with the ...
Jacob Hume's user avatar
7 votes
4 answers
26k views

The requested PHP extension ext-mcrypt * is missing from your system [closed]

I have updated my php to version 5.4.13 etc and well in the terminal my version of php states this PHP 5.4.12 (cli) (built: Mar 16 2013 21:46:23) But running a composer install io get the ...
Simon Davies's user avatar
7 votes
3 answers
7k views

Running phpmyadmin and suphp

I have a Debian Lenny web server. It is running apache2 with libapache2-mod-suphp. Unfortunately, suphp makes impossible to use phpmyadmin, as phpmyadmin is installed in /usr/share/phpmyadmin and ...
thor's user avatar
  • 658
7 votes
3 answers
37k views

Confirm that mysqli extension is not installed

Recently I discovered that mysqli extension is not installed in my server Centos version 2.6. I confirm it because I change the driver of db connection from mysqli to mysql and now works fine. So, is ...
manix's user avatar
  • 175
7 votes
2 answers
4k views

Error When Installing PHP5 on IIS6

I am trying to install PHP on my Windows Server 2003 machine that is using IIS6. I followed this guide for installing it, including using the binaries of fastCGI. I think I did everything correctly, ...
numone's user avatar
  • 215
7 votes
2 answers
72k views

Apache consuming too much CPU and memory

I'm having some troubles with CPU and memory usage with an Apache Web Server. We're running an Ubuntu Server 12.04 LTS on a Virtual Machine. Our server has following specs: 8GB RAM; 4 vCPUs (12ghz); ...
humungs's user avatar
  • 275
7 votes
3 answers
11k 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 ......
CaymanCarver's user avatar
7 votes
3 answers
31k views

too many 408 error codes in access log

Apache access log is showing too many 408 error codes,nearly 400 per day. x-x-x-x - - [25/Apr/2012:22:43:06 -0600] "-" 408 0 "-" "-" there are around 400 of these kind of request from different ip ...
ananthan's user avatar
  • 1,520
7 votes
1 answer
2k 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 ...
rams's user avatar
  • 247
6 votes
3 answers
75k 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 ...
Hellweaver666's user avatar
6 votes
1 answer
503 views

How is this even possible? PHP memory error -- allowed memory size / bytes exhausted

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1540673 bytes) in /home/appdev/glicious/Nutrition.php on line 41 If you haven't noticed, 134217728 is two orders of ...
David Cowden's user avatar
6 votes
7 answers
34k views

What causes PHP pages to consistently download instead of running normally

I'm running a Ubuntu Server on a VM, to test out different web forum solutions. I have set up a ~/public_html/ to be accessible with the apache2 web server, and that works fine. However when I go to ...
Jon Cox's user avatar
  • 165
6 votes
4 answers
12k views

nginx 404 instead of 403 for empty directory

I have the following config for my nginx server: server { listen 80 default_server; server_name example.com www.example.com; root /var/www/example.com/web; index index.php index.html;...
Slava Fomin II's user avatar
6 votes
2 answers
10k views

Error installing APC in apache2 VPS with php-5.5.1

When I install APC: pecl install apc I'm getting this error: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. ...
Manolo's user avatar
  • 592
6 votes
1 answer
90k views

How to install php-xml and php-mbstring on PHP 5.4.9-4?

I have added the PHP5 to UBUNTU 12.04 sudo add-apt-repository ppa:ondrej/php5 -y and installed the PHP5 php5 php5-common php5-mysql php5-xmlrpc php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc ...
Houman's user avatar
  • 1,675
6 votes
1 answer
19k views

error: Cannot find OpenSSL's <evp.h> centos 6.3 (install php) [closed]

I have a problem during the intallation of php 5.3.27. When I launch the. / Configure I get this error and does not complete the installation. Configuring extensions checking size of long... (cached) ...
user201202's user avatar
6 votes
2 answers
35k views

Why is there no php.ini file when I install PHP in a docker container?

I'm using docker-compose to setup a minimal nginx + php-fpm application but for some reason there is no php.ini file on the docker container (I know because phpinfo() says Loaded Configuration File: (...
skb's user avatar
  • 93
6 votes
1 answer
9k views

Disable DNS Caching PHP

I need to get the latest A records of a DNS in a script. The script is doing some monitoring operations. The Default TTL of DNS record is 5 minutes, but the monitoring script is running every minute. ...
Sparsh Gupta's user avatar
  • 1,147
6 votes
1 answer
9k views

Can't seem to set AcceptPathInfo in Apache

I'm trying to migrate an ExpressionEngine site onto a new server and seem to have run into a roadblock. For the desired functionality, EE requires the AcceptPathInfo directive to be turned on, and for ...
nageeb's user avatar
  • 224
6 votes
4 answers
840 views

Apache Never runs after configuring eAccelerator and FastCGI

I recently configured accelerator and fastcgi with apache using: http://secure-ubuntu-server.blogspot.com/2009/07/howto-performance-tuning-of-lamp-and.html Now my Apache never starts. Logs shows: ...
Shoaibi's user avatar
  • 819
5 votes
1 answer
19k views

PHP 5.6 undefined function xml_parser_create

I have a new php 5.6 installation and get the following error from my application: Fatal error: Call to undefined function xml_parser_create() But libxml seems to be OK? phpinfo about libxml is: ...
Andrea Schmuttermair's user avatar
5 votes
3 answers
25k views

How to Upgrade to PHP 5.5 on Windows Server 2008

What is the proper way to upgrade from PHP Version 5.4.32 to PHP Version 5.5.22 on Windows? All that I can find is how to to install. PHP is already running on Windows Server 2008 R2 64 bit alongside ...
crjunk's user avatar
  • 101
5 votes
3 answers
15k views

How to configure Apache on Amazon Elastic Beanstalk

My PHP5.3 application is currently running on a Windows 2003 server running XAMPP 1.7.7 I've decided it will be better if I can get it moved onto the cloud, and Amazon Elastic Beanstalk looks like the ...
Ian's user avatar
  • 261
5 votes
1 answer
38k views

Correct PHP5 DLL for Apache 2.2?

I have installed Apache 2.2.14 (Win32) on a Windows XP machine and am trying to add the latest PHP module. I downloaded the ZIP file from here labeled "VC9 x86 Non Thread Safe" and extracted to my ...
Nathan Long's user avatar
  • 1,545
5 votes
5 answers
22k views

Install php-mssql in CentOS 6.2 [closed]

I have a server running CentOS 6.2 with Plesk 10.4. When I SSH in, and try and install ms-sql extension it says "No package php-mssql available." I can't seem to find much on Google for this, and I ...
izip's user avatar
  • 221
5 votes
6 answers
4k views

smallest possible linux installation with apache

I want to setup a linux vm with apache and php and mysql support, which version of linux should I pick up. I dont have a good bandwidth, preferably a smaller ISO of the installer is also appreciated.
John G's user avatar
  • 151
5 votes
2 answers
3k views

Apache + PHP in paths with accented letters

I'm not able to run a PHP enabled web site under Apache on Windows XP if the path to DOCUMENT_ROOT contains accented letters. I'm not referring to the script file names themselves but to any folder in ...
Álvaro González's user avatar
5 votes
3 answers
13k views

Why are DNS lookups not respecting /etc/nsswitch.conf & /etc/host.conf?

I have an issue where hostnames are being looked up from DNS even though they are present in /etc/hosts. I have the following configured: /etc/host.conf: order hosts,bind /etc/nsswitch.conf: ...
Damon Snyder's user avatar
5 votes
1 answer
7k views

Session variables not persistent in PHP5/Apache2/Ubuntu12

I have a website that uses session variables (in PHP) to know if the visitor is entering the website or not. If he's new, then I redirect him to the detected language. But if he's not new, you let him ...
Diego's user avatar
  • 145

1
2 3 4 5
18