Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    11

    Default parsing php into html

    ok so far i tried EVERY .htaccess method.
    then i tried the mimic type thingy
    finnally i tried the apache handlers method
    and all of those didnt work, im running under cpanel 11 how can i add this? cause i really need it badly.

  2. #2
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Howdy,

    Just to be sure we're on the same page; your pages are being served for download rather than being executed?

    Are there any errors in the error_log for apache?

    What php version is installed?

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    11

    Default

    Quote Originally Posted by cpanelerice View Post
    Howdy,

    Just to be sure we're on the same page; your pages are being served for download rather than being executed?

    Are there any errors in the error_log for apache?

    What php version is installed?
    we're not on the same page, their supposed to be executed and now the site is going jimble jamble ;-;
    as for error logs, idk how to access that im sorry.
    i wasnt sure where to find the version on the phpmyadmin version, but i doubt you need that

  4. #4
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Howdy,

    Are you the server admin? If so we can look about some troubleshooting steps.

    From ssh you can execute php -v to get the version of php in the path. What OS is your server running?

    Thanks!

  5. #5
    Member
    Join Date
    Sep 2009
    Posts
    11

    Default

    Quote Originally Posted by cpanelerice View Post
    Howdy,

    Are you the server admin? If so we can look about some troubleshooting steps.

    From ssh you can execute php -v to get the version of php in the path. What OS is your server running?

    Thanks!
    um i don't know exactly how to access the server truely except for via cpanel and web disk, you mind enlighting me?

  6. #6
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Howdy,

    Do you have the root user password? Otherwise this is going to be better asked to your server administrator.

    Thanks!

  7. #7
    Member
    Join Date
    Sep 2009
    Posts
    11

    Default

    Quote Originally Posted by cpanelerice View Post
    Howdy,

    Do you have the root user password? Otherwise this is going to be better asked to your server administrator.

    Thanks!
    yeah ok ill contact my friend who gave me the server, but how can i restore the download problem it wasnt like this until i chose to upload my .htaccess

  8. #8
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Default Soultion

    If you don't mind provide me one of the test cPanel account login details so that I can check it for you or its better if you contact your hosting provider they will better assist you with your queries.

    Note : You can send me PM with login details for further investigation
    Regards,
    G R Sonar
    cPanel Hosting Blog

  9. #9
    Member ManojB's Avatar
    Join Date
    Mar 2005
    Location
    pune
    Posts
    80

    Default

    Add the following rules in your .htaccess file and check if it works :

    AddHandler application/x-httpd-php5 .htm
    AddHandler application/x-httpd-php5 .html

    OR

    AddHandler application/x-httpd-php5 .htm .html
    Regards,
    ManojB.

  10. #10
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Please Clarify ....

    PHP is not working!

    (OR)

    You want HTML files to be parsed as PHP scripts (.html / .htm)?

    I can't quite follow exactly what you are asking about here and the
    other answers in this thread show there is still some confusion.

  11. #11
    Member
    Join Date
    Sep 2009
    Posts
    11

    Default

    Quote Originally Posted by ManojB View Post
    Add the following rules in your .htaccess file and check if it works :

    AddHandler application/x-httpd-php5 .htm
    AddHandler application/x-httpd-php5 .html

    OR

    AddHandler application/x-httpd-php5 .htm .html
    you fixed it, ty please close this

Similar Threads & Tags
Similar threads

  1. Parsing html as php - security issues?
    By morrow95 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-18-2011, 08:43 AM
  2. PHP: Error parsing /usr/local/lib/php.ini on line 1136
    By desiguru in forum New User Questions
    Replies: 1
    Last Post: 12-08-2009, 07:11 PM
  3. HTML Parsing in suPHP
    By ukagg in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 10-09-2009, 07:42 PM
  4. Parsing .html files as .php inside Cpanel skin
    By Radio_Head in forum Themes and Branding
    Replies: 9
    Last Post: 12-13-2004, 02:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube