Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on new vps internal error problems in the VPS & Dedicated forum
I just upgraded to a VPS. I was having problems executing a simple PHP script. 500 Internal Error. PHP Code: <?php phpinfo ();  ?> I found ...

  1. #1
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161

    new vps internal error problems

    I just upgraded to a VPS. I was having problems executing a simple PHP script. 500 Internal Error.

    PHP Code:
    <?php phpinfo(); ?>
    I found the following error in the error log:

    Code:
    [Tue Nov 24 11:20:22 2009] [error] [client 24.3.40.220] SoftException in Application.cpp:238: File "/home/riegel/public_html/index.php" is writeable by group
    I corrected this by "chmod g-w file.php". This will be a pain to do this to ever file I create. When I create a file on the server I it has permissions "-rw-rw-r--". How can I make every file I create default to "-rw-r--r--"?

  2. #2
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    Ok, fixed it myself. Changed the line in /etc/bashrc that had:
    Code:
    umask 0002
    to
    Code:
    umask 0022
    Now it's creating files with 644 instead of 664.

    Randy

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Changing the umask is probably the best way to go, but assuming that your VPS is running suPHP, you can probably also change the setting in /etc/suphp.conf to allow files that are group writable. Sometimes things need to be group writable--like when you have multiple users accessing a single site--though in the shared hosting world this type of access is rarely necessary.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  4. #4
    JPC Addict randyriegel's Avatar
    Join Date
    Jan 2002
    Location
    Wintersville, OH
    Posts
    161
    I can't find a suphp.conf file in /etc. My phpinfo(); says I'm running PHP as CGI. Is there a reason I would need suPHP?

    As far as being writable (like you said it rarely happens in shared environment) I can make it writable if needed. Just didn't want to have to change permissions of every PHP file I created to get it to work.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •