PHP On Ubuntu Linux 10.04

Asked by Falabi Abisoye

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu apache2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexander Bejarano (alexbh) said :
#1

Hi,
does it help?
https://help.ubuntu.com/community/ApacheMySQLPHP
don forget to activate the modules for PHP.. and remember the file permissions...

Revision history for this message
BabyGeek (babygeek) said :
#2

Hi,
I think it's a virtualhost problem, see http://httpd.apache.org/docs/2.0/vhosts/name-based.html.

Revision history for this message
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.

Revision history for this message
Falabi Abisoye (pafobuz) said :
#4

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

Revision history for this message
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.