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

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

I found helpful information from this site:

https://help.ubuntu.com/community/ApacheMySQLPHP

This solved my problem.