SuSE 10.0 hosting apache2-2.0.54-10 and php5-5.0.4-9, both installed via YaST. Pointing a Firefox browser at a page on the above server yields a dialog asking what firefox should do with this, open with... or save file to... (IE just loads about:blank!) I've searched the archives and have checked all the usual features: mime.type includes: application/x-httpd-php phtml pht php php3 php4 php5 httpd.conf includes: DirectoryIndex index.php index.html index.html.var One thing which is common among several archives is that a re installation wipes away the problem. I've tried that both with php and apache to no avail. (It did work when I had this problem earlier on php4) My first suspicion is that the SuSE 10 builds of Apache and php5 are not compatible but I am not sufficiently versed in Linux to be confident in messing with the YaST installed applications. Clearly, if I try the test page <?php phpinfo(); ?>, that gives the same error and gets me nowhere. How can I check, at the server, which is command-line based, that php5 is running and accepting scripts? Do I need to 'start' php5? Have any of you experience of this problem and any suggestions on how to resolve this and get a web site up and running with php5? TIA John
John schrieb:
SuSE 10.0 hosting apache2-2.0.54-10 and php5-5.0.4-9, both installed via YaST.
Pointing a Firefox browser at a page on the above server yields a dialog asking what firefox should do with this, open with... or save file to... (IE just loads about:blank!)
I've searched the archives and have checked all the usual features:
mime.type includes: application/x-httpd-php phtml pht php php3 php4 php5 httpd.conf includes: DirectoryIndex index.php index.html index.html.var
One thing which is common among several archives is that a re installation wipes away the problem. I've tried that both with php and apache to no avail. (It did work when I had this problem earlier on php4)
My first suspicion is that the SuSE 10 builds of Apache and php5 are not compatible but I am not sufficiently versed in Linux to be confident in messing with the YaST installed applications.
Clearly, if I try the test page <?php phpinfo(); ?>, that gives the same error and gets me nowhere.
How can I check, at the server, which is command-line based, that php5 is running and accepting scripts? Do I need to 'start' php5?
Have any of you experience of this problem and any suggestions on how to resolve this and get a web site up and running with php5?
TIA
John
Hi, did you check your apache configuration if the php module is loaded. Your http.conf file should have these lines LoadModule php5_module modules/libphp5.so and AddType application/x-httpd-php .php .php3 .inc .htm Regards Lars -- http://www.lhits.eu http://blog.linuri.de http://www.kleinwalsertal-bilder.de
LHartung wrote:
John schrieb:
SuSE 10.0 hosting apache2-2.0.54-10 and php5-5.0.4-9, both installed via YaST.
Pointing a Firefox browser at a page on the above server yields a dialog asking what firefox should do with this, open with... or save file to... (IE just loads about:blank!)
I've searched the archives and have checked all the usual features:
mime.type includes: application/x-httpd-php phtml pht php php3 php4 php5 httpd.conf includes: DirectoryIndex index.php index.html index.html.var
One thing which is common among several archives is that a re installation wipes away the problem. I've tried that both with php and apache to no avail. (It did work when I had this problem earlier on php4)
My first suspicion is that the SuSE 10 builds of Apache and php5 are not compatible but I am not sufficiently versed in Linux to be confident in messing with the YaST installed applications.
Clearly, if I try the test page <?php phpinfo(); ?>, that gives the same error and gets me nowhere.
How can I check, at the server, which is command-line based, that php5 is running and accepting scripts? Do I need to 'start' php5?
Have any of you experience of this problem and any suggestions on how to resolve this and get a web site up and running with php5?
TIA
John
Hi,
did you check your apache configuration if the php module is loaded.
Your http.conf file should have these lines
LoadModule php5_module modules/libphp5.so
and
AddType application/x-httpd-php .php .php3 .inc .htm
Regards
Lars
Thanks, Lars, your hint about LoadModule seems to have solved this one. I traced the modules back to /etc/sysconfig/apache2 and found that it was still referencing php4: was: #APACHE_MODULES="access actions alias auth autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imap ssl php4" is now APACHE_MODULES="access actions alias auth autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imap ssl php5" Ref. the application type, is this not done in mime.type? Regards John
John schrieb:
LHartung wrote:
John schrieb:
SuSE 10.0 hosting apache2-2.0.54-10 and php5-5.0.4-9, both installed via YaST.
Pointing a Firefox browser at a page on the above server yields a dialog asking what firefox should do with this, open with... or save file to... (IE just loads about:blank!)
I've searched the archives and have checked all the usual features:
mime.type includes: application/x-httpd-php phtml pht php php3 php4 php5 httpd.conf includes: DirectoryIndex index.php index.html index.html.var
One thing which is common among several archives is that a re installation wipes away the problem. I've tried that both with php and apache to no avail. (It did work when I had this problem earlier on php4)
My first suspicion is that the SuSE 10 builds of Apache and php5 are not compatible but I am not sufficiently versed in Linux to be confident in messing with the YaST installed applications.
Clearly, if I try the test page <?php phpinfo(); ?>, that gives the same error and gets me nowhere.
How can I check, at the server, which is command-line based, that php5 is running and accepting scripts? Do I need to 'start' php5?
Have any of you experience of this problem and any suggestions on how to resolve this and get a web site up and running with php5?
TIA
John
Hi,
did you check your apache configuration if the php module is loaded.
Your http.conf file should have these lines
LoadModule php5_module modules/libphp5.so
and
AddType application/x-httpd-php .php .php3 .inc .htm
Regards
Lars
Thanks, Lars, your hint about LoadModule seems to have solved this one.
I traced the modules back to /etc/sysconfig/apache2 and found that it was still referencing php4: was: #APACHE_MODULES="access actions alias auth autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imap ssl php4" is now APACHE_MODULES="access actions alias auth autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imap ssl php5"
Ref. the application type, is this not done in mime.type?
yes sure. you can seperate cour configuration into many files. I do not remember why i have this in my httpd.conf. some testing in the past and then it runs. And never touch a running system. ;-) Regards Lars -- http://www.lhits.eu http://blog.linuri.de http://www.kleinwalsertal-bilder.de
participants (2)
-
John
-
LHartung