

If you scroll further down, you will see all modules that are already enabled in PHP5.Now, your web server is ready for working. Now we call this file in a browser by typing Īs you see in the screenshot, PHP5 is working fine, and it is working through FastCGI, as shown in the Server API line. To create this file, type in the terminal: The file will display lots of useful details about our PHP installation, such as the installed PHP version. The document root for the default web server is /var/in that directory and call it in a browser. etc/init.d/lighttpd restart Testing your web server and PHP: You can search for available PHP5 modules by typing in the terminal:īased on some of the packages that you select, you can install them with MySQL by typing in the terminal:Īptitude install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json But it is a good idea to install some other PHP5 modules together with MySQL as well, as you might need them for your applications. To get MySQL support in PHP, we can install the php5-mysql package. etc/init.d/lighttpd force-reload Installing MySQL 5 support: To reload the server for changes to take place, type in the terminal: To enable the FastCGI configuration (which is stored in /etc/lighttpd/conf-available/nf), run the following command: Scroll down to the end of this file and add this line at the end of file:

To enable PHP5 in Lighttpd, you will have to modify the configuration file /etc/php5/cgi/php.ini. The default document folder of Lighttpd for user root is /var/Additional configurations are stored in files which are situated in the /etc/lighttpd/conf-available/ directory. Now open your web browser and type, and you should see the Lighttpd placeholder page: Lighttpd is already available as a pre-configured package in Ubuntu 9.10, so we can install it through terminal very easily. The same password will be valid for the user as well as. You will be asked to provide a password for MySQL user “ root“. Aptitude install mysql-server mysql-client
