Your Ad Here

Fast installing a Apache Webserver + MySQL Database Server + PHP on Debian

November 7, 2007

Install needed packages

First of all install all the needing packages:

apt-get install mysql-server apache2 php5 libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql

Create a password for the MySQL User root.

mysqladmin -u root password OWNPW


REMEMBER TO CHANGE OWNPW with your own password!
Configurate

Edit the apache configuration file with your favourite Editor:

/etc/apache2/apache2.conf

Search this part:

#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

And delete the # and the beginning of each line, to loke like this:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Now restart the apache webserver

/etc/init.d/apache2 restart

Testing

Create a test file:

echo “<?PHP phpinfo(); ?>” >> /var/www/info.php

Now test if the System work with access from a another PC with your webbrowser and call: http://IPADRESS/info.php

Have Fun!
dsmcg.ch

Related Post