Apache2 PHP Mysql
Apache2 PHP Mysql
To only install the apache2 webserver, use the AptOnCD to install apache2. PuttheAptOnCdin
yourCDDriveandStartPackageManger.InquicksearchtextboxofPackagemanager,
Searchforapache2packagethenSelectthepackage,rightclickonit,andselectMarkfor
installation.Itwillshowdependancylist,justclickonMark.Afterselectingallthepackages
clickonApplybuttontoinstall.
It requires a restart for it to work. To Open your terminal go to application Accessories
Terminal then type as follows.
sudo /etc/init.d/apache2 restart
Troubleshooting Apache
If you get this error:
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for
ServerName
then use a text editor such as gedit" on the desktop to create a new file,
sudo gedit /etc/apache2/conf.d/fqdn
then add
ServerName localhost
to the file and save. This can all be done in a single command with the following:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
Installing PHP5
To only install the php5, use the AptOnCD to install. PuttheAptOnCdinyourCDDriveand
StartPackageManger.InquicksearchtextboxofPackagemanager,Searchforphp5and
libapache2modphp5packagesthenSelectthepackage,rightclickonit,andselectMark
forinstallation.Itwillshowdependancylist,justclickonMark.Afterselectingallthe
packagesclickonApplybuttontoinstall.
It requires a restart for it to work. To Open your terminal go to application Accessories
Terminal then type as follows.
sudo/etc/init.d/apache2restart
Troubleshooting PHP 5
Does your browser ask if you want to download the php file instead of displaying it? If Apache is
not actually parsing the php after you restarted it, install libapache2-mod-php5. It is installed
when you install the php5 package, but may have been removed inadvertently by packages which
need to run a different version of php.
If sudo a2enmod php5 returns "$ This module does not exist!", you should purge (not just
remove) the libapache2-mod-php5 package and reinstall it.
the prompt will ask for the mysql root password. Issue th password it will go to the mysql prompt.