apt-get commands
My source.list for “/etc/apt/source.list”
|
deb http://ftp.au.debian.org/debian/ stable main contrib non-free deb http://security.debian.org/ stable/updates main contrib non-free |
Update Apt Database
Upgrades Installed Packages
Install Package
|
apt-get install {package name} |
Remove Package
|
apt-get remove {package name} |
Check if there are no broken dependencies
1. Installing Apache Webserver
|
apt-get install apache2 php5 libapache2-mod-php5 |
To test this create a textfile
Put this code in it:
Open your browser and go to: http://ip.address/test.php or http://domain/test.php. Now you should get a generated webpage with all the information about apache/php settings.
2. Enable GD Library with PHP
3. Installing MySQL Database Server
|
apt-get install mysql-server mysql-client php5-mysql |
4. Change root password on mysql
|
mysql mysql> USE mysql; mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root'; mysql> FLUSH PRIVILEGES; |
5. PhpMyAdmin Installation
|
apt-get install phpmyadmin |
The phpmyadmin configuration file is located at: /etc/phpmyadmin folder.
To setup under apache all you need to do is include the following line in /etc/apache2/apache2.conf
|
Include /etc/phpmyadmin/apache.conf |
|
Now restart apache: /etc/init.d/apache2 restart |
Point your browser to: http://domain/phpmyadmin
This is a shortcut of the detailed described installation in:
www.mysql-apache-php.com
admin on January 20th 2009 in Linux, MySQL, PHP