Forum Moderators: phranque

Message Too Old, No Replies

php error: this page connot be displayed

how to fix it

         

ikbenhet1

8:01 am on Jun 24, 2004 (gmt 0)

10+ Year Member



when a php-file is run, i get a "This page cannot be displayed message"

When i run "php index.php" from the shell, it does works fine.

How can i fix this? , i installed php 4.3.6 (cli)

gergoe

10:34 am on Jun 24, 2004 (gmt 0)

10+ Year Member



Open Internet Explorer, go to the Tools->Inetrnet Options menu. Choose the Advanced tab, and turn off the displaying of the user friendly http error messages. If you do so, you can see the exact error message the webserver send to you, thus making it easier to find the problem.

Additionally you can post the configuration of the apache which is relevant here; i.e. the LoadModule directive of the php dll and/or the AddType, AddHandler or Action directives for php.

ikbenhet1

10:49 am on Jun 24, 2004 (gmt 0)

10+ Year Member



ok, i changed to non userfriendly messages, it just sais:
this page cannot be displayed, Cannot find server or DNS Error Internet Explorer
...and sometimes thepage just stays blank and keeps "loading" nothing happens

the server is working fine running on Ret Had ES 3, everything works (i.e. html htm etc), exept for php files through "the internet"

php is installed correctly because in the shell i can do "php index.php" and that works.

in httpd.conf i have this :

....
LoadModule php4_module modules/libphp4.so
.
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
#ScriptAlias /html/ "/var/www/cgi-bin/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
.
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .php3 .php4 .phtml .inc
AddType application/x-httpd-php-source .phps
.
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
#AddHandler php-script .php

thanks for any help, i'm stuck.
handy to know, it came installed with php 4.3.2 (cgi).
i deinstalled that version, installed 4.3.6 and then the problems started..

ikbenhet1

12:47 pm on Jun 24, 2004 (gmt 0)

10+ Year Member



it is fixed.. i deinstalled everyting(rpm) that i didn't needed and it works now..