How to create PHP websites using a LAMP-server?

Asked by Niels Haver

I have Ubuntu 11.04 and I have installed a LAMP server using the command: sudo apt-get install LAMP-server^

Apache was tested, when put http://localhost/ in the browser (Mozilla Firefox) the message was shown: It's working!

Now I'd like to know where can I find the DocumentRoot, where I can place my PHP-files. Before that, should I use a (PHP) program to create PHP websites? Is it installed with the LAMP-server and ready to use? I am new to PHP and I'd like to start learning it using Ubuntu.

Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Solved by:
Niels Haver
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
Revision history for this message
Niels Haver (nielshaver) said :

I found helpful information from this site:

This solved my problem.