LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-12-2007, 05:42 PM   #1
jessica_lilly
Member
 
Registered: Oct 2007
Posts: 133

Rep: Reputation: Disabled
installed php and apache yet my php pages dont load ??


hi

i have just installed apache and i think that is working fine because when i go to

/var/www/apache2-default

and click index.html i get IT WORKS! so i am pretty sure that everything is ok with that.

i have also installed php5 and i though i would just open my scripts in firefox and it would run perfect. it seems i was wrong i know as i have had problems with php befor when i used hosting companys that if php isnt installed it will just ask you to save file as or open and that is what is happerning with me but i dont understand why if apache is working fine and terminal says i have the latest version of php5

when i go to terminal this is what happens

root@jessica-desktop:~# sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
Old 11-13-2007, 02:57 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,953

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
i have just installed apache and i think that is working fine because when i go to
/var/www/apache2-default
and click index.html i get IT WORKS! so i am pretty sure that everything is ok with that.
To check if apache actually works you should point your browser to http://localhost and see if you get the "It Works" page.
The same goes for php. Create a test.php in /var/www/apache2-default directory page containing:
Code:
<?php
phpinfo();
?>
and point your browser to http://localhost/test.php to see if php works.

Regards

Last edited by bathory; 11-13-2007 at 03:06 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache? Php? non-existent pages getting served... bulliver Linux - General 2 08-14-2006 08:48 PM
php pages don't always load msound Linux - General 0 12-23-2005 12:03 PM
Complicated PHP pages dont load for some internet clients. foxtrot Linux - Software 4 09-14-2005 09:21 PM
Cant Get Apache to execute php pages nevarlen Linux - Newbie 1 02-18-2005 12:48 AM
Apache httpd not loading php pages properly. queezythegreat Linux - Networking 0 09-26-2004 04:50 PM


All times are GMT -5. The time now is 04:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration