PHP On Ubuntu Linux 10.04

Asked by Falabi Abisoye on 2011-05-30

I Am Having A Problem With Ubuntu Linux 10.04,After installation Of PHP,Apache And MySQL With There Recommended Components I Tested it http://localhost And Is Displays It's Works.The Software is Running But There is Nothing in The Folder.That's What It Displays.. ,and When i tried runing my codes from the var/www folder it does not display I Also tried the phpinfo() and it does not display it.Please I Would Be Happy If Anyone Can Help Me And Would Also Like To Know Where I Can See All The Services Inorder For Me to Start And Stop Apache Server..Thanks

Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Last query:
Last reply:
Alexander Bejarano (alexbh) said : #1

does it help?
don forget to activate the modules for PHP.. and remember the file permissions...

BabyGeek (babygeek) said : #2

I think it's a virtualhost problem, see

BabyGeek (babygeek) said : #3

I ran my Ubuntu Server, do this:
- cd /etc/apache2/sites-enabled/
- here you will get a file "000-default"
- vi 000-default
- you will see something like
"<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
[...] </VirtualHost>"

- "/var/www" is the path where are located the publics files, in your case, i think in this config file there's not "/var/www" but another path.

Falabi Abisoye (pafobuz) said : #4

How Would I See All The Services Inorder for Me To Stop And Start Apache..

BabyGeek (babygeek) said : #5

To see all services running: ps -A
To start apache: /etc/init.d/apache start
To stop apache: /etc/init.d/apache stop

Can you help with this problem?

Provide an answer of your own, or ask Falabi Abisoye for more information if necessary.

To post a message you must log in.