Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    Default not displaying *.php

    hey all,

    sorry i am new to cpanel, hosting company threw it in for free after screwing me over lol... anyways, i've never seen this before and once again i am totally new to cpanel, used to doing things the old fashioned way...

    ok heres what i get>>> when i have a file in the html dir: example> index.html it displays fine... but if i change the extention to *.php it won't display it says >>

    Code:
    Forbidden
    You don't have permission to access /torrent/index.php on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    so i check my apache error log and i see >>>

    Code:
    [Fri Aug 11 23:18:50 2006] [error] [client XX.XX.XX.XX] Options ExecCGI is off in this directory: /usr/local/apache/htdocs/torrent/index.php
    now i have tried for the last 2 days to research this problem and one fix said to enable ExecCGI in teh apache conf file.... so i did but that only made it worse....

    any help would be great, it was all working fine before cpanel was added.

    thanks!
    Eric

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    21

    Default

    Hello,

    seems you have phpsuexec running.
    with phpsuexec php scripts are acting like cgi. Look in your .htaccess, maybe you have Options -ExecCGI.
    If yes remove -ExecCGI from your htaccess.

    You dont Have an htaccess, you can try creating a .htaccess with Options +ExecCGI

    If this does not work maybe is because you have AllowOverride No in the httpd.conf for that dir.

    Also look, you must not have 777 permissions on the php files, 644 is enought.
    Last edited by inalto; 08-12-2006 at 03:50 AM.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    Default

    ok i was able to rebuild apache w/o suEXEC, i got it working now. thanks for your time!

Similar Threads & Tags
Similar threads

  1. I need a little help - pages not displaying?
    By sera1 in forum New User Questions
    Replies: 1
    Last Post: 04-13-2011, 10:21 PM
  2. running and debugging PHP - displaying Fatal errors
    By bignose in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-11-2008, 07:03 AM
  3. Roundcube not displaying
    By AlanLamb in forum E-mail Discussions
    Replies: 10
    Last Post: 08-13-2008, 12:22 PM
  4. Cpanel is not displaying the same version of php as the server has.
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-11-2006, 12:54 PM
  5. php not displaying version number in cpanel...
    By wselby in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-30-2005, 05:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube