Upgrading PHP for use with NGINX

Hi, I’m new to DH VPS and looking to run Joomla on NGINX. I quickly learned that the current PHP version is 5.2 and I need to upgrade. With that objective in mind, I’ve run into a few road blocks and hoping someone can assist without laughing too much at any beginner mistakes I’ve made.

Referencing http://wiki.dreamhost.com/Nginx#Nginx_and_Custom_PHP_Install, this is the guided path I’ve chosen.

All the paths are as indicated in the doc, got my SU account, and everything seems ok until I get to the Quick PHP install.

Doesn’t seem like I have the configure command available to me as I get “configure: command not found”. Next step has me create/modify the /etc/init.d/php-fastcgi file, and that I’ve achieved. But when I try to run “sudo /etc/init.d/php-fastcgi start” I also get “php-fastcgi: command not found” … (and yes, I did confirm it is there and saved)

Any help would be greatly appreciated. Thanks in advance!

I posted some basic instructions for using the DreamHost-supplied PHP versions with Nginx. It’s actually pretty easy to get PHP 5.4.11. See http://wiki.dreamhost.com/Nginx#Running_PHP_5.3_or_5.4_under_Nginx


I have followed your instructions on the wiki and I always get “502 Bad Gateway.”

I have gone over the instructions several times as I usually make some kind of mistake.

What could I be missing?

I submitted asupport ticket and they said it was a misplaced character in my .php-launcher file…for the life of me I do not know what the misplaced character was but it works now. I checked the new .php-launcher and it looks exactly like the instructions in the wiki.