Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The page cannot be displayed

Status
Not open for further replies.

ThomasJSmart

Programmer
Sep 16, 2002
634
Hello, i origionally started this thread on the apache forum ( thread65-489954 ), but there maybe someone here who knows something.

the problem is this:

iv just reinstalled my server at home with the following:
apache_2.0.44-win32-x86-no_ssl.msi
mysql-3.23.55-win
php-4.3.1-Win32
windows xp pro uk build 2600

i installed it all with the standard settings only changing only the neccesary.

localy ( for me: everything works fine. but externaly:

All my regular html/java/flash pages work fine

some of my php pages work:
(the news colums on the right is php / mysql, and the languages is done with a php include)

but the rest of my (more complicated) php pages dont work:
(a regular php info script)

what happens is that i get to see a brief glimps of the page befor i get a "The page cannot be displayed" error.

iv tested this on internet explorer only, but as it seems to be a server side problem i doubt this makes any difference. perhaps another browser would give a more specific error message... I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
use a real browser which gives real error messages ... that ie error can mean alot of things, btw, couldnt reproduce it with mozilla right now
 
IE is set up to show friendly HTTP error messages, to trun these off:

Tools - Internet Options - Advanced

...and uncheck Show Friendly HTTP Error Messages.

This might give you more detail.
BDC.
 
ok, with the friendly HTTP error msg's off the page keeps refreshing but never entirely shows.. I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Assuming the *.php files actually exist .. make sure your web 'directories' are atleast CHMOD'd at '0711'

Your permissions could be off
 
its a windows server; no chmod I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
UHhh.. just a thought.. you arn't trying to 'include' the php files via ".shtml" are you? (server side include pages)

 
i doubt it a php code mistake, unless theres something wrong with this:

<?
phpinfo()
?>

which is all the script i have in this file

and theres no shtml here

thanks, I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Depending on your server setup, that is wrong... but shouldn't cause your error...

just for fun, try...

<?php
phpinfo();
?>

And also, unless you've specially configured your server, that file should end in a .php

-Rob
 
iv set my server to send .html files thru the php parser. and iv got short tags (<? ?>) turned on I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
ok i have now loaded the php into apache as a cgi program instead of the sapi dll.

phpinfo seems to be working but my page is still acting very strange,

if anyone would like to have a look at it....?

page:

script:

thanks,
Thomas I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
for real, php4.3 is buggy and apache 2.x is buggy
go back to apache 1.3
and maybe php 4.1 for general php compatibility
 
hehe could do that i suppose :) but iv go them both working on my laptop, its just my server thats giving me hassle. if i cant get it working i suppose i will have to go back to an older version tho :S I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
for real, php4.3 is buggy and apache 2.x is buggy
go back to apache 1.3
and maybe php 4.1 for general php compatibility

And that is based on...? //Daniel
 
personal experience with over 280 servers and many forums.
apache 2.x and php dont go along as well as apache 1.3
and 4.3 has some bugs which make trouble with many public php scripts

see php.net

Warning

Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows.
 
Neither PHP 4.3 nor Apache 2.0 is buggy. It's just the PHP SAPI module for Apache that is experimental. //Daniel
 
iv got it running on the CGI now but its still not working, it might be a script error as the phpinfo seems to be working, but if its a script error why does it work fine locally?

non working page

script

thanks I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
but if its a script error why does it work fine locally?
Compare your server's settings with the settings you use locally. Modify your local settings as needed, and fix your scripts. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top