1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

php not working in subfolders

Discussion in 'Apache' started by vtraffic, Mar 24, 2008.

  1. #1
    Hello,
    I operate a site using an Apache server. I have tried to install and change joomla cms and I think I accidently ruined some things their. Now the situation is that no php file can be opened in a subfolder, while it works fine in the root folder. meaning, if I open a folder called test01, and create a file test.php, it won't work, it will show - 500 Internal Server Error (with the number 257 above). but if the file is in the root, it will work fine.
    Does anybody have any idea what is the problem and how can I solve it?

    Thank you.
     
    vtraffic, Mar 24, 2008 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    I think it is htaccess problem or error in your php scripts
     
    buldozerceto, Mar 24, 2008 IP
  3. Political Monster

    Political Monster Peon

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Has the server got suphp/suexec enabled? Either way, what are the permissions of the folders in which the php files won't work, and what are the permissions of your files that do and don't work? It could simply be a permission error.
     
    Political Monster, Mar 24, 2008 IP
  4. vtraffic

    vtraffic Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What is suphp/suexec and where can I check it?
    I have setted the permissions, all of them, just to be sure, to 777.

    how can I check if it is a .htaccess error? and how to solve it?

    Thanks.
     
    vtraffic, Mar 25, 2008 IP
  5. Political Monster

    Political Monster Peon

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK, try setting the folders permissions to 755. If suphp/suexec is installed, that would be the error, since they don't require you to have the folders at 777 (which is a security risk).
     
    Political Monster, Mar 25, 2008 IP
  6. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Also check File Handlers.

    Make sure .php file handler is not being overwritten in a .htaccess statement.
     
    LittleJonSupportSite, Mar 25, 2008 IP
  7. vtraffic

    vtraffic Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It worked, I changed it to 755 and now everything is ok. Thanks a lot! you really helped me.
     
    vtraffic, Mar 26, 2008 IP