We used Debian 5 Linux for this, and setting up PHP and Apache on it was a breeze. All it required was to first install Apache using the # apt-get install , followed by another single line command to install PHP and MySQL, viz. # apt-get install phpS mysql php5-mysql.
Once both are installed, one needs to integrate PHP and MySQL so that applications that use both PHP and MySQL can work. This integration is also very easy, and doesn't require any modifications in the OS.
You just need to install one more package, namely php5-mysql, which will automatically take care of the integration of PHP with MySQL on Apache. This can also be installed using the # apt-get install php5-mysql command.
After the installation is over, you just need to restart the Apache web server and the LAMP server will be up and running. Restarting Apache requires the command #/etc/init.d/apache restart to be executed.




Reply With Quote
Bookmarks