LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 01:57 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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 02:06 AM.
 
  


Reply



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 07:48 PM
php pages don't always load msound Linux - General 0 12-23-2005 11:03 AM
Complicated PHP pages dont load for some internet clients. foxtrot Linux - Software 4 09-14-2005 08:21 PM
Cant Get Apache to execute php pages nevarlen Linux - Newbie 1 02-17-2005 11:48 PM
Apache httpd not loading php pages properly. queezythegreat Linux - Networking 0 09-26-2004 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration