How to install APACHE, MYSQL, PHP, and phpMyAdmin after installing Debian

Communications | Debian Support

Ok so you have just installed Debian for the first time and now want to do something useful with this new Linux box. How about we set up a web server that has php and mysql support. Then we will install phpMyAdmin to make it easier to manage the databases. If you have no idea how to install Debian, see the post, How to get started with Debian before attempting this part.

Lets log on to the Debian box as root.


apt-get upgrade update
apt-get install apache
apt-get install phpmyadmin
apt-get install mysql-server

Don’t forget to change the root passwords for this stuff. To test it get the ip address of your Debian box using the

ifconfig

Then go to a web browser on another computer hooked up to your network and type in the IP address of your server into the address line of internet explorer.

You should be able to type
http://192.168.0.[x]

you now have a fully functioning web server with php. You can now start editing the code by


cd /var/www
ls

Have fun!

Dude's picture

pormap...

Did you mean portmap instaed of pormap?

It should be:
apt-get --purge remove lpr portmap ppp