Setting up NGINX, PHP with CGI on Ubuntu 10.10 Linux

1. Installing apt-get install nginx php5 php5-cgi php5-cli 2. Make your site folder under document root mkdir -p /var/www/newsitechown -R www-data www-data /var/www/ 3. Create new file /etc/nginx/sites-available/newsite and put below entries in it server { listen 80; server_name newsite.com www.newsite.com; access_log /var/logs/nginx/access.log; error_log /var/logs/nginx/error.log; location / { root /var/www/newsite; index index.html index.htm index.php; }…

Compiling Apache, mysql and PHP

Compiling Apache for fully dynamic web server 1. Download Apache sourcecode from http://apache.org 2. Extract it and enter into the extracted directory 3. ./configure –prefix=/usr/local/apache2 –enable-mods-shared=all make ; make install 4. Dowload PHP from php.net. Then extract it and enter the extracted directory 5. ./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql –prefix=/usr/local/apache2/php –with-config-file-path=/usr/local/apache2/php –enable-force-cgi-redirect –with-zlib –with-gettext –with-gdbm –enable-mbstring=all make…