.php files are downloading not executing

Discussion in 'Site & Server Administration' started by zuly, Apr 16, 2009.

  1. #1
    hi, i have hosting on which some files are not executing, opening i don't know how to put it, they are downloading and i tried them several time, outcome is always the same. What could be the problem?
     
    zuly, Apr 16, 2009 IP
  2. Alex Brooks

    Alex Brooks Banned

    Messages:
    523
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Does your host support php hosting/files?
     
    Alex Brooks, Apr 16, 2009 IP
  3. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #3
    yes, it's mybb forum, some of the scripts are working, for example i can open threads, but i can't open my Admin Panel it always wants to download index.php of it. Maybe my host is having some difficulties with php on the server. I just thought that something else could of caused this, maybe change of the permissions of the admin folder?
     
    zuly, Apr 16, 2009 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    do u have some .htaccess in the admin folder or main folder post it here
     
    Bohra, Apr 16, 2009 IP
  5. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #5
    no, i don't have .htaccess files aat all, and permissions are 755 on the admin folder and 644 on the files within....is that ok?
     
    zuly, Apr 16, 2009 IP
  6. CrumX

    CrumX Banned

    Messages:
    326
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    the problem could be the AddHandler (usually in htaccess u can change this.) if you dont have htaccess in admin folder then create one and add this

    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

    if this doesnt work for you then this is probably your hoster problem
     
    CrumX, Apr 16, 2009 IP
  7. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #7
    ok, when i added this the problem only got worse, every single file on the server is starting to download, i don't know if i said this but some of them work, and with this all of them don't work....

    i submitted a support ticket to my hosting, i will see if they know what the problem is....i will post here when i receive an answer...
     
    zuly, Apr 16, 2009 IP
  8. CrumX

    CrumX Banned

    Messages:
    326
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    yup pls share it if you found out what caused the problem.. ^^

    I made some small adjustment on the addhandler. It should be:

    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

    Not:

    AddHandler application/x-httpd-php5 .php .php5 .php3 .phtml
     
    CrumX, Apr 17, 2009 IP
  9. rathin

    rathin Peon

    Messages:
    1,377
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    it due to ioncube loader in php.ini please rebuild via easyapache if have root acess or contact your hoster
     
    rathin, Apr 17, 2009 IP
  10. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #10
    @CrumX thanks for your help but it is not working, things are now getting even worse it is starting to affect even more files. @kiss of death thanks for your suggestion i will post another reply in my ticket with your suggestion i don't know maybe it's night there where my host is and they are sleeping, cause they are not responding. I will report here as soon i know what was the cause....
     
    zuly, Apr 17, 2009 IP
  11. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #11
    well problem was solved, i was given an answer that they reinstalled the server, what ever that means. As long as it works i'm happy...
     
    zuly, Apr 18, 2009 IP