can't open php pages

Reply

Join Date: Aug 2006
Posts: 3
Reputation: Smoke is an unknown quantity at this point 
Solved Threads: 0
Smoke Smoke is offline Offline
Newbie Poster

can't open php pages

 
0
  #1
Aug 21st, 2006
After were installed apache server and php I can not browse web pages with extension php ... why so?
Reply With Quote Quick reply to this message  
Join Date: May 2003
Posts: 307
Reputation: big_k105 is an unknown quantity at this point 
Solved Threads: 2
Team Colleague
big_k105's Avatar
big_k105 big_k105 is offline Offline
PFO Founder

Re: can't open php pages

 
0
  #2
Aug 21st, 2006
Is your httpd.conf file setup properly? Because from the little information I am thinking that there are some things you need to do in your httpd.conf file to get php to work properly. I don't know if your on Linux or Windows or exactly what version of apache you are using but here is the install for php on a unix system, it explains what you need to do to the httpd.conf. Remember after you edit your httpd.conf you have to restart apache.

http://www.php.net/manual/en/install.unix.php
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

Re: can't open php pages

 
0
  #3
Aug 22nd, 2006
i think you will get good info in this site http://www.w3schools.com/
increase youe site traffic

http://www.articleboards.com

Running free html asp php jsp xml xhtml j2ee mysql tutorials

http://www.freewebschools.com

Submit your design portfolio and increase your popularity

http://designers-portfolio.com
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 369
Reputation: Thinka is an unknown quantity at this point 
Solved Threads: 10
Sponsor
Thinka's Avatar
Thinka Thinka is offline Offline
Posting Whiz

Re: can't open php pages

 
0
  #4
Sep 7th, 2007
Hello, I've got the same small problem. I've installed XAMPP and I've got everything running apart from Mercury. This is the first time I've tried to parse php scripts on my own server, normally I use my uni's server.

Anyways, I read in a Sam's book that I'm meant to put documents in the 'htdocs' folder, and I've done that, and in my browsers I can't "see" my pages. Even something as simple as a phpinfo script doesn't work. IE acts like your standard Windows Explorer window, and Firefox also shows the folders, but when it comes to parsing, in Firefox the page is blank, and in IE if I double click on the file, it opens it up in my editor.

Reading around it is apparent that the problem is in some configuration somewhere, but where?! I thought XAMPP was good cos I wouldn't have problems like this?

******
Edit
When I open up my own scripts in Firefox, it basically shows me the code, but with no formatting etc. And when I try to open the phpinfo script it is just a blank page. I begin all these scripts with a 'file' protocol, this is correct right? I tried using "http://localhost" but that gave me an error 404 - "Object not found!".
Last edited by Thinka; Sep 7th, 2007 at 5:17 pm. Reason: Edit
Never approach a computer with the words "I'll just do this quickly..."
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,173
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 532
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: can't open php pages

 
0
  #5
Sep 7th, 2007
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 369
Reputation: Thinka is an unknown quantity at this point 
Solved Threads: 10
Sponsor
Thinka's Avatar
Thinka Thinka is offline Offline
Posting Whiz

Re: can't open php pages

 
0
  #6
Sep 7th, 2007
That too doesn't work mate. Could there be something wrong with my XAMPP installation because in the XAMPP "Welcome" localhost website, I tried the phpMyAdmin link and it says:
"MySQL said:

#2003 - The server is not responding "

But the Status page shows:

"MySQL database ACTIVATED

PHP ACTIVATED

HTTPS (SSL) ACTIVATED

Common Gateway Interface (CGI) ACTIVATED

Server Side Includes (SSI) ACTIVATED

SMTP Service DEACTIVATED

FTP Service ACTIVATED "

It's a weird one right?
Never approach a computer with the words "I'll just do this quickly..."
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 369
Reputation: Thinka is an unknown quantity at this point 
Solved Threads: 10
Sponsor
Thinka's Avatar
Thinka Thinka is offline Offline
Posting Whiz

Re: can't open php pages

 
0
  #7
Sep 7th, 2007
Oh no, my fault, the code was in a folder that was inside the htdocs folder. I took it out of the folder and it worked...

And now I've written the link properly with the folder and it's worked... must have been doing something silly before. Cheers!
Never approach a computer with the words "I'll just do this quickly..."
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 2
Reputation: pattersonz is an unknown quantity at this point 
Solved Threads: 0
pattersonz pattersonz is offline Offline
Newbie Poster

Re: can't open php pages

 
0
  #8
Sep 8th, 2007
The most likely reason for this is that you haven't told Apache that .php files are acceptable.

If you followed a tutorial (there should be one in with the PHP distro you installed), then there will be instructions on setting it up with Apache in order to work properly.

What you need to change depends on the version of Apache and of PHP which you have installed, so I would recommend that you check your PHP files for an installation guide and still if problem persists then visit to web design company to have some help there online or let us know what versions of Apache and PHP you have and someone may be able to help further.

Of course the problem could be as simple as starting the server , but I'm assuming .html files work since you said specifically you had problems with .php files, which would imply that you have the Apache server up and running...
Last edited by pattersonz; Sep 8th, 2007 at 5:56 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC