How to create PHP websites using a LAMP-server?

Asked by Niels Haver on 2011-07-11

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:
2011-07-13
Last query:
2011-07-13
Last reply:
2011-07-11
Niels Haver (nielshaver) said : #2

I found helpful information from this site:

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

This solved my problem.