Nginx with PHP on Ubuntu 10.4 Lucid : Automated Install
Script Download Link : nginx.tar.gz
Quick Installation Steps:
- Download the tarball above.
- Open a terminal, cd to the directory containing nginx.tar.gz . Extract the tarball as ,
tar -czvf nginx.tar.gz
3. change directory and run the script
cd nginx
./nginx_php_ubuntu.sh
This will do everything needed to setup nginx, php5, php5-fpm, auto configure and start the services.
pfp configs are tweaked to run on a small vps. You could in fact run it on your desktop as well without affecting much of the resources.
I have also included support for mod_rewrite like url rewriting, which is useful for setting up wordpress permalinks etc.
Tagged with: 10.4 LTS • bash • fpm • installation • lucid • lucid lynx • mod rewrite • nginx • permalinks • script • ubuntu • ubuntu 10 • ubuntu 10.4 • ubuntu 10.4 review • vps • wordpress
Logging In...
Profile cancel
Last reply was 20 hours ago
Resources












got this error:
chown: invalid user: `WEBUSER’
due to extra closing tick at this line of your script:
#Fix permissions for webroot
WEBUSER=` grep user /etc/nginx/nginx.conf | cut -d ” ” -f 2 | cut -d “;” -f 1`
thanks
sorry — actually the error was due to missing $ in this line:
sudo chown -R WEBUSER $WEBROOT
it should be
sudo chown -R $WEBUSER $WEBROOT
thanks for this script
Can you explain the php extension included from this package?
Notes:
tar -czvf not working for me, i’ve got this work with tar -xzvf.
Thanks
Whenever I do
sudo chown -R $WEBUSER $WEBROOT
I get
chown: missing operand after `WEBUSER’
What am I missing?
Coen,
sudo chown -R $WEBUSER $WEBROOT
while running this, replace $WEBUSER with actual user and $WEBROOT with actual web root on your specific machine.
Hi,
Is this setup for single domain or can run multi sites?
Also is it only for Ubuntu or can I install on Debian?
Thanks.
Can you add MySQL and vhosts support?