![](https://seccdn.libravatar.org/avatar/4c79df53ecee35d02ab051081263507f.jpg?s=120&d=mm&r=g)
Hello, I installed the apache server and the PHP4 packages on my machine and started the server. I'm experimenting with PHP scripts, and tried to load code like this: <html> <head> <title>A PHP Example</title> </head> <body> <h1>A PHP Example</h1> You are using <?php phpinfo(); ?> </body> </html> The output is just: A PHP Example You are using and does not show the expected results. I have not modified the configuration files for apache, which I think are setup when the PHP rpms are installed. Is there something I'm missing? any suggestion would be appreciated. -- Rafael
![](https://seccdn.libravatar.org/avatar/c2cde3b9b469273687bfb6e7c72fc707.jpg?s=120&d=mm&r=g)
On Wed, 13 Nov 2002, Rafael E. Herrera wrote:
Hello,
I installed the apache server and the PHP4 packages on my machine and started the server. I'm experimenting with PHP scripts, and tried to load code like this:
<html> <head> <title>A PHP Example</title> </head> <body> <h1>A PHP Example</h1> You are using <?php phpinfo(); ?> </body> </html>
The output is just:
A PHP Example You are using
and does not show the expected results. I have not modified the configuration files for apache, which I think are setup when the PHP rpms are installed.
Is there something I'm missing? any suggestion would be appreciated.
It looks like php is not called. What is the name of the file? Regards Ole
![](https://seccdn.libravatar.org/avatar/97521604d5b309189e29d7ce0e20db74.jpg?s=120&d=mm&r=g)
On Thursday 14 November 2002 08:04, Ole Kofoed Hansen wrote:
On Wed, 13 Nov 2002, Rafael E. Herrera wrote:
Hello,
I installed the apache server and the PHP4 packages on my machine and started the server. I'm experimenting with PHP scripts, and tried to load code like this:
<html> <head> <title>A PHP Example</title> </head> <body> <h1>A PHP Example</h1> You are using <?php phpinfo(); ?> </body> </html>
The output is just:
A PHP Example You are using
and does not show the expected results. I have not modified the configuration files for apache, which I think are setup when the PHP rpms are installed.
Is there something I'm missing? any suggestion would be appreciated.
It looks like php is not called. What is the name of the file?
Regards
Ole
Is the file in your public_html or htdocs directory and are you calling up the file from a browser using http://a.b.c.d/(~)yourfile.php? S.
![](https://seccdn.libravatar.org/avatar/4c79df53ecee35d02ab051081263507f.jpg?s=120&d=mm&r=g)
steve wrote:
On Thursday 14 November 2002 08:04, Ole Kofoed Hansen wrote:
It looks like php is not called. What is the name of the file?
Is the file in your public_html or htdocs directory and are you calling up the file from a browser using http://a.b.c.d/(~)yourfile.php? S.
I placed my file in mu public_html and in the apache server's document root directory. Tried html and php extensions, like: http://127.0.0.1/example.html http://127.0.0.1/example.php When trying example.php, the browser (mozilla) tries to save the file instead of viewing it. I've looked at the server's access_log and error_log files and no signs of a problem shows. -- Rafael
![](https://seccdn.libravatar.org/avatar/49ee3123ed193d4075d0888a5537d4d7.jpg?s=120&d=mm&r=g)
Hi,
Not sure about this one, but might be in the direction ,
in your httpd.conf file... (/etc/httpd/)
is there an entry for filetype php ?
like :
AddType application/x-httpd-php .php
or something similar ...
make sure it is not commented out.
regards
Chris
_____________________________________________
Make money while you work !!!
http://www.degoo.com/index.php?refid=mersco
This is for real !!!
http://e-mailpaysu.com/members/index.cgi?mersco
_____________________________________________
----- Original Message -----
From: "Rafael E. Herrera"
steve wrote:
On Thursday 14 November 2002 08:04, Ole Kofoed Hansen wrote:
It looks like php is not called. What is the name of the file?
Is the file in your public_html or htdocs directory and are you calling up the file from a browser using http://a.b.c.d/(~)yourfile.php? S.
I placed my file in mu public_html and in the apache server's document root directory. Tried html and php extensions, like:
http://127.0.0.1/example.html http://127.0.0.1/example.php
When trying example.php, the browser (mozilla) tries to save the file instead of viewing it.
I've looked at the server's access_log and error_log files and no signs of a problem shows. -- Rafael
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
![](https://seccdn.libravatar.org/avatar/49ee3123ed193d4075d0888a5537d4d7.jpg?s=120&d=mm&r=g)
Hi,
Not sure about this one, but might be in the direction ,
in your httpd.conf file... (/etc/httpd/)
is there an entry for filetype php ?
like :
AddType application/x-httpd-php .php
or something similar ...
make sure it is not commented out.
regards
Chris
_____________________________________________
Make money while you work !!!
http://www.degoo.com/index.php?refid=mersco
This is for real !!!
http://e-mailpaysu.com/members/index.cgi?mersco
_____________________________________________
----- Original Message -----
From: "Rafael E. Herrera"
steve wrote:
On Thursday 14 November 2002 08:04, Ole Kofoed Hansen wrote:
It looks like php is not called. What is the name of the file?
Is the file in your public_html or htdocs directory and are you calling up the file from a browser using http://a.b.c.d/(~)yourfile.php? S.
I placed my file in mu public_html and in the apache server's document root directory. Tried html and php extensions, like:
http://127.0.0.1/example.html http://127.0.0.1/example.php
When trying example.php, the browser (mozilla) tries to save the file instead of viewing it.
I've looked at the server's access_log and error_log files and no signs of a problem shows. -- Rafael
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
![](https://seccdn.libravatar.org/avatar/4c79df53ecee35d02ab051081263507f.jpg?s=120&d=mm&r=g)
Chris FitzGerald wrote:
Hi,
Not sure about this one, but might be in the direction ,
in your httpd.conf file... (/etc/httpd/) is there an entry for filetype php ?
like : AddType application/x-httpd-php .php or something similar ...
make sure it is not commented out.
Yes, it's under: <IfModule mod_mime.c> ... <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule> In any case, I didn't touch the file, it's pretty much as the RPM file installed it. -- Rafael
![](https://seccdn.libravatar.org/avatar/2994a9a670edbefe1bded64a2f30af96.jpg?s=120&d=mm&r=g)
-----Original Message----- From: Rafael E. Herrera [mailto:raffo@neuronet.pitt.edu] Sent: Thursday, November 14, 2002 8:14 AM To: SuSE Subject: Re: [SLE] Problems using PHP scripts with Apache
steve wrote:
On Thursday 14 November 2002 08:04, Ole Kofoed Hansen wrote:
It looks like php is not called. What is the name of the file?
Is the file in your public_html or htdocs directory and are you calling up the file from a browser using http://a.b.c.d/(~)yourfile.php? S.
I placed my file in mu public_html and in the apache server's document root directory. Tried html and php extensions, like:
http://127.0.0.1/example.html http://127.0.0.1/example.php
When trying example.php, the browser (mozilla) tries to save the file instead of viewing it.
I've looked at the server's access_log and error_log files and no signs of a problem shows. -- Rafael
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Did you install the FTP version of SuSE8.1 or did you buy the disks? I did a clean install with the FTP release and I haven't even been able to get Apache to start when trying to load the PHP4 module. Don
![](https://seccdn.libravatar.org/avatar/49ee3123ed193d4075d0888a5537d4d7.jpg?s=120&d=mm&r=g)
hmmm ic ...
strange indeed ...
I have SuSE 8.1 Pro from CD and had no problem what so ever ,,,
before I had suse 8.0 and didn't have any problem either ...
Must admit I am clueless now ... :S
Anywayz ... still keeping the braincells alive to help you find an answer ;)
regards
Chris
_____________________________________________
Make money while you work !!!
http://www.degoo.com/index.php?refid=mersco
This is for real !!!
http://e-mailpaysu.com/members/index.cgi?mersco
_____________________________________________
----- Original Message -----
From: "Rafael E. Herrera"
steve wrote:
On Thursday 14 November 2002 08:04, Ole Kofoed Hansen wrote:
It looks like php is not called. What is the name of the file?
Is the file in your public_html or htdocs directory and are you calling up the file from a browser using http://a.b.c.d/(~)yourfile.php? S.
I placed my file in mu public_html and in the apache server's document root directory. Tried html and php extensions, like:
http://127.0.0.1/example.html http://127.0.0.1/example.php
When trying example.php, the browser (mozilla) tries to save the file instead of viewing it.
I've looked at the server's access_log and error_log files and no signs of a problem shows. -- Rafael
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (5)
-
Chris FitzGerald
-
Donald Grayson
-
Ole Kofoed Hansen
-
Rafael E. Herrera
-
steve