I have a strange problem with Ansible that I use to install / update / manage my webservers.
I have an installation script that is supposed to make sure that I always have the latest PHP5 module in my Debian 6 / Apache 2 system:
- name: install apache2 and php5
action: apt pkg=$item state=latest
with_items:
- apache2
- php5
- libapache2-mod-php5
- php5-curl
I'm trying to set up nginx with PHP5 and MySQL on my production VPS. The reason I chose nginx over Apache was because the VPS isn't high spec.
nginx is installed, and is successfully serving static pages like it should.
So this morning I used aptitude to install a few security updates. Seemed innocent enough until stuff stopped working. Somewhere along the way, a few packages got dropped, I guess. Now PHP (specifically PHP5-FPM) doesn't think it's connected to MySQL and I have no idea why. All packages seem to be installed.
Hey guys.
I have the following problem and need a fast fix.
I did install "php5-mssql" on my server to start running cronjobs from PHPCLI which was working completely fine until one day.
My Cronjob kept failing with errors about PHP library could not be loaded. I narrowed it down to mssql.
I've installed php5-mysqlnd via:
apt-get install php5-mysqlnd
This is a brand new virgin Debian install with just apache2 and php5 via:
apt-get install apache2
echo "deb http://http.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list
apt-get update
apt-get install php5 php5-dev php5-cli libapache2-mod-php5 php5-mysqlnd
When I do a phpinfo() it shows that mysq
dpkg: error processing phpmyadmin (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
php5-common
man-db
php5-cgi
php5-cli
libapache2-mod-php5
php5-gd
php5-mysql
dbconfig-common
php5-mcrypt
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an e
Alright so I will outline how everything is setup and running for me on my dedicated box. I have everything working accept eAccelerator only works on one of my PHP applications.
Apache2
I have Apache2 setup and running with virtualhosts.
I have PHP5-CGI installed, Apache, and MYSQL installed. Prior to adding these settings, PHP5-CGI would endlessly have >15 processes, each eating up 5 mb of ram. So I added these settings to /etc/apache2/conf.d/php5-fcgid.conf and the PHP5-cgi processes were limited.
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 conclusion that PHP5-FPM is to "blame".
What I currently do is that I set up a separate PHP5-FPM pool for each site, and configure that pool according to expected traffic.