sudo apt-get install apache2
++ any other apps/modules you want, use adept_manager to find them (such as PHP5…)
Often you will want to change the root location of the server from /var/www/ – Though not always. To do this type into Terminal:
sudo kedit /etc/apache2/sites-enabled/000-default
Change lines 5 & 10 (“DocumentRoot /var/www/”)
/var/www/ to the location you want the localhost root folder to be (home/user/Websites/) for example.
Restart (Start) Apache2 – In terminal type:
sudo /etc/init.d/apache2 restart
MYSQL Installation //
sudo apt-get install mysql-client-5.0
sudo apt-get install mysql-server
To log in in you will need to set the root password.
In terminal type:
mysqladmin -u root password 'root_password'
…whatever you want the root_password to be…
Open MYSQL in terminal:
mysql -u root -p
The terminal should now be opperating with ” mysql> ” at the command prompt.
Create the Database you wish to use. This can literally be anything.
CREATE DATABASE db_name;
…where db_name is the name of the database you want to create.
To use the database we need to grant user access – which by default creates the user at the same time… This user will need to be the same as phpmyadmin user too.
GRANT ALL ON db_name.* TO [email protected] IDENTIFIED BY 'new_user_password'
…where db_name is the name of the created database, new_user is the name of the username you want, and new_user_password is the password assigned to that user.
sudo apt-get install phpmyadmin
If you changed the location of the server root from being /var/www/ to something else, copy phpmyadmin folder from var/www/ to the new localhost root…
Go to http://localhost/phpmyadmin/scripts/setup.php
Configure to match MYSQL server… (username, passwords & database names etc…)
## Possibility of a root login problem… Search Google for this…
Go to http://localhost/phpmyadmin/ and log in
After this you should be good to go!!!