Results 1 to 4 of 4

Thread: php in .html not wrapping w/ phpsuexec

  1. #1
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default php in .html not wrapping w/ phpsuexec

    I really would like to move over to the phpsuexec option so we can more efficiantly hunt down abusers and spammers, etc. Only problem is, myself as well as a couple of clients are running php within html documents. That is to say, the documents are tittled for instance: index.html and we use the following directive in .htaccess to execute the php:
    AddType application/x-httpd-php .php .html .htm

    Now, with phpsuexec enabled, I get a 500 error on the document. I had a look in the suexec logs and the apache error logs and came to the conclusion that the phpsuexec wrapper wasn't wrapping these documents, so i added #!/usr/bin/php to the top to test out my theory and it worked.

    Only problem is, I don't want to have to go through all the documents and add this line.. i might as well waste my time moving everything to .php which i really can't be bothered to do.

    Does anyone have any idea how i can get phpsuexec to recognize these files?
    Beau Henderson

  2. #2
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    Simple fix..
    change
    AddType application/x-httpd-php .php .html .htm
    to
    AddHanlder application/x-httpd-php .php .html .htm

  3. #3
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    I guess it pays to search before you post :P

    I fixed this by changing the folling in my .htaccess:

    This:

    AddType application/x-httpd-php .php .php3 .phtml .html .htm .php4

    To:

    AddHandler application/x-httpd-php .php .php3 .phtml .html .htm .php4
    Beau Henderson

  4. #4
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Didn't see your post faldran.. but thank you very much for the reply!
    Beau Henderson

Similar Threads

  1. need help AddHandler application/x-httpd-php .php .php4 .php3 .html
    By rustikat in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 03-03-2009, 06:01 PM
  2. phpsuexec and html
    By Mr. Fern in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-15-2007, 02:16 AM
  3. TIP: PHP 5.1.6 + phpsuexec + local php.ini (register_globals)
    By Bazer in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-13-2007, 03:25 PM
  4. logrotate how to stop wrapping lines ???
    By Blue Steel in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 09-11-2006, 10:39 PM
  5. easy cpanel skin wrapping
    By tkoweb in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 10-12-2003, 09:03 AM