The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help plz!

Discussion in 'General Discussion' started by muncher, Nov 5, 2007.

  1. muncher

    muncher Member

    Joined:
    Nov 5, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    i get this mesage when im trying to save

    Warning: fopen(globals.inc) [function.fopen]: failed to open stream: Permission denied in "my web address goes here i just dont no 1 to no it lol" line 20
     
  2. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    Try setting the right permission on ftp via CHMOD to either 777 or 755 Try both see what happens
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is allow_url_fopen in php.ini set to false by chance?
     
  4. bencheung

    bencheung Member

    Joined:
    Aug 28, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Fail to delete file

    I also got this problem. I have checked the allow_url_fopen in php.ini is On. Then I changed the folder to 777 and I can upload the files by http. However, cannot delete it by fopen. Please help.
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is this a file on the local server or a URL being treated as a file?
     
  6. bencheung

    bencheung Member

    Joined:
    Aug 28, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Cannot delete

    The file is a jpeg file and open by link. It will uploaded to a folder which owner is a cpanel account, group is nobody. I have already try to change the group to the cpanel also, but the newer upload file is still nobody:nobody (owner:group). I have to change its owner to the cpanel account and delete it manually. How can I change the upload file's owner to the account owner by default, or any other methods else?
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Use SuPHP if you have EasyApache 3. Use phpSuExec if you are using EasyApache 1 (currently only on STABLE). This will ensure PHP scripts are run as the user and as a result, files created by the scripts are owned by that user.
     
  8. bencheung

    bencheung Member

    Joined:
    Aug 28, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Please help me more

    As you mentioned to use phpSuExec, could you provide me more information how to set it up? Should I install something first? Also, for the folder permissions, should I change it back to 755 or others?
     
  9. bencheung

    bencheung Member

    Joined:
    Aug 28, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Ask for more

    I have searched and find the information to install phpSuExec, someone said can do it by clicking the "apache update" in the Cpanel but failed. Do I have another method to install it or by ssh? Would you provide me the steps of the installation? Thanks...
     
  10. bencheung

    bencheung Member

    Joined:
    Aug 28, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    mysql problem and 500 internal server error

    Finally I have added mod_suphp by cpanel. After rebulid the apache and php. However, I got another problem of mysql:

    "Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server;"

    and 500 internal server error when browsing the webpage.

    Can you inform me how should I do?
     
  11. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    On SuPHP, make sure none of your files have permissions over 755. SuPHP will refuse to serve any file with more than 755 permissions (as in a SuPHP environment, such permissions are unnecessary). If you have a file with 777 permissions for example, you will get a HTTP 500 error.
     
  12. bencheung

    bencheung Member

    Joined:
    Aug 28, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Thanks

    Thanks a lot for your help. I have solved the problem now.
     
Loading...

Share This Page