[users@httpd] Apache2 with Php5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I have installed Apache2 with PHP5 support on FreeBSD 6.0 using ports collection. The installation process seemed to have gone fine but for some reason apache is not able to process the PHP files. It displayes all the code on the browser without processing. Does anyone know why this may be happening?
 
More info is as follows:
 
1. Noticed that there is php5 module in apache's httpd.conf. Does this prove that apache is configured with php?
 --> LoadModule php5_module        libexec/apache2/libphp5.so
2. Added/Edited following lines in httpd.conf
--> DirectoryIndex index.html index.html.var index.php
--> AddType application/x-httpd-php .php
--> AddType text/html .shtml .php
3. S aved and restarted apache, but situation is still same.
 
4. I can execute the php file from command line:
--> #localhost> php test.php
this file use mysql_connect and mysql_close functions and executes pretty fine. But when I try to view in the browser, it displays just all that text that is NON-HTML.
 
5. file test.php has ownner group as www which is same user that is running apache and file permissions are 644 (rw-r--r--)
 
Hope this gives enough info. Please let me know if I need to do more.
 
Thank you,


Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux