AMP Apache MySQL PhP

From Deptford.TV

Jump to: navigation, search

aptitude install apache2

aptitude install php5

aptitude install mysql-server-5.0 set mysql root "pw you choose"

set new mysql user with many privileges which can be used instead of root over the net mysql -uroot -p create iser 'control'@'localhost' identified by 'pw you choose'; grant all privileges on *.* to 'control'@'localhost' with grant option;

aptitude install phpmyadmin select apapche2

[edit] ===

set up new user to own php file adduser edit (no privileges)

& give a directory for this user mkdir /var/www/edit

[edit] ====

configure apache vim /etc/apache2/sites-available/your hostname

then enable site with the command a2ensite edit.deptford.tv apache2ctl restart

Personal tools