View Single Post
  #4  
Old 21st March 2009, 13:41
newbie2008 newbie2008 is offline
Junior Member
 
Join Date: Feb 2009
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by newbie2008 View Post
Sorry that I have typo, actually I have disabled PHP Globally before. Here is my /etc/httpd/conf.d/php.conf as

# AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps

so, is it inevitable to show the php source code or I must remove any .php programs under /web ? This might be inconvenience for temporary disable php function per virtual website!

Again, by experiment I found that if "AddType application/x-httpd-php .php" was remarked in /etc/httpd/conf.d/php.conf, and disable (uncheck) the php script of one virtual site (www.example.com) in ispconfig UI, the .php program source will be displayed on that website; like www.example.com/test.php.
I have tried php4 and php5 in different server, will there be any gentlemen/ladies give me an advice?
Reply With Quote