View Full Version : switch to suphp
floyd
03-30-2009, 05:44 AM
If I switch to using suphp then does that means I have to switch to using php as cgi?
If that's true then how does running suphp and php as cgi affect html documents with php embedded in them?
tillo
03-30-2009, 06:26 AM
Yes, suPHP uses PHP-CGI.
Major changes are listed here: http://www.directadmin.com/forum/showthread.php?t=29483
floyd
03-31-2009, 03:11 PM
So does that mean that html documents cannot run php code in them?
tillo
03-31-2009, 03:23 PM
If you are talking about files with ".html" extension, it has nothing to do with mod_php or PHP-CGI; you simply have to specify .html files as MIME application/x-httpd-php5 and they will be parsed as PHP files. If your .html files are running PHP now, they will with PHP-CGI too.
If you are talking about .php files with direct HTML code inside, again it has nothing to do with mod_php or PHP-CGI; anything before "<?php" and after "?>" just passes through, will it be HTML or your shopping list :)
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.