[quote author=Compunuts link=board=4;threadid=8029;start=0#msg73212 date=1067508199]
[quote author=rhonneil link=board=4;threadid=8029;start=0#msg73174 date=1067400452]
here's my problem--whenever i created a php page (ex. debug.php) to test if php module was indeed successfully installed on my apache. Instead of displaying the page content it opens the "download manager" and was trying to download the file, under windows client just a blank page.[/quote]
Assuming you put in this code into your php file,
Code:
<?php
echo "This is a test";
?>
then there is something else you need such as adding "AddType" like so
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
Sorry can't verify this since my Apache 2.0 box is currently unreachable.
One more thing, each time i open my newly configured apache...mail.alsterph.com [my apache is a webmail server] it displays my directory contents. these could be a security problem? How can I hide my server contents?
comment out mod_autoindex feature in LoadModule area.
http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html
[/quote]
Thanks for your speedy reply. These are some of my httpd.conf entries
which was previously included in it. However, even if these were already
included in the httpd.conf file the problem can still be seen.
------------------------------------------------------------------------
<IfModule mod_dir.c>
DirectoryIndex index.htm index.html index.php default.php
index.shtml index.php3 index.php4
</IfModule>
<IfModule mod_mime.c>
TypesConfig /etc/httpd/conf/mime.types
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .shtml
AddType application/x-httpd-php-source .phps
</IfModule>
--------------------------------------------------------------------------
Download Manager provides the following everytime you open a php page:
"You have chosen to download a file type: application/x-httpd-php from
mail.alsterph.com"
This is the entry for libphp4.so inside my httpd.conf
LoadModule php4_module modules/libphp4.so
When I when I try to locate libphp4.so, it says:
[root@mail modules]# locate libphp4.so
/usr/lib/httpd/modules/libphp4.so
I understand this is a link to /etc/httpd/modules/ so assume this is
normal.
And when I run the httpd service it indicate [OK], errors also cannot be
seen in the logs.
What else should I do?
rhonneil
Bookmarks