Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    92

    Default easyapache not so easy? PHP scripts not working

    I ran easyapache and ever since I've been having problems. First no PHP scripts would work at all just a 500 error, but I got that fixed.

    Now the only problem is that the scripts won't save any data. I've got a shopping cart program and some forums. When trying to post the data simply isn't being saved on the forms and I just get an error saying that all fields were blank. On the shopping cart when I try to add an item the results are just a blank item.

    It also seems I can't delete the blank items either :/ Not getting any kind of errors though other than the forum posts saying the fields are blank.

    Any ideas?
    Last edited by Final-Solution; 07-04-2008 at 09:23 AM.

  2. #2
    Member
    Join Date
    Jul 2002
    Posts
    92

    Default

    I'm guessing it's some sort of permissions issue, but don't know where to look :/ When trying to install SMF the bottom of the install script gives this error:

    Warning: Unknown(): open(/tmp/sess_795dda8d86d17cfd2a8a2c69a572ddb1, O_RDWR) failed: Permission denied (13) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
    I've tried chmod /tmp 777 and it still says permission denied. I hope these two issues are related :P

  3. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Exclamation

    setting tmp to world writable is a very bad idea.

  4. #4
    Member UBERHOST's Avatar
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    102

    Default

    Get some Linux/OpenBSD hardening help here.
    Last edited by UBERHOST; 07-06-2008 at 09:20 PM.

    click logo to visit us for dedicated
    cPanel servers and more

  5. #5
    Member
    Join Date
    Jul 2002
    Posts
    92

    Default

    No idea what the problem is, but it's effecting all the domains on the server. I have the server colocated and just putt around with it, hosting a couple domains for me and a few friends. Anyone with more experience got a minute or two to check it out? It worked before I rebuilt apache/PHP from WHM so I hope it's not a huge thing, just haven't been able to find any hints online since I'm not sure what the problem even is :/

    I sent off an email to the tech guy where I have the server set up, but he's off for the holiday.
    Last edited by Final-Solution; 07-06-2008 at 12:15 PM.

  6. #6
    Member UBERHOST's Avatar
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    102

    Default

    Why not submit a ticket to cPanel?

    click logo to visit us for dedicated
    cPanel servers and more

  7. #7
    Member
    Join Date
    Jul 2002
    Posts
    92

    Default

    Would they fix something for me if it's not a direct result of CPanel? I'm hoping to get this fixed up by the start of the week. I'll submit a ticket right now and see if they can help

    I'm not getting any errors on screen so I don't even know what to look for online to help push me in the right direction :/ Usually if I have an error I can google around a bit and get it fixed up.

  8. #8
    Member
    Join Date
    Jul 2002
    Posts
    92

    Default

    I put in a support ticket, but it said there was 28 ahead of me. Since it worked before I'm guessing it's a simple thing that I'm just not thinking of :/
    Last edited by Final-Solution; 07-06-2008 at 12:14 PM.

  9. #9
    Member
    Join Date
    Feb 2005
    Posts
    312

    Default

    Quote Originally Posted by Final-Solution View Post
    I put in a support ticket, but it said there was 28 ahead of me. Since it worked before I'm guessing it's a simple thing that I'm just not thinking of :/
    have you checked your http error logs? there may be a clue in there, although I've found many of these situations dont really log anything useful.

    /tmp should be chmod 1777 not 777
    the realiity is, in shared hosting tmp has to be world writeable, so all the advise not to have that isn't really helpful.

    the other thing I've seen is the permission on the actual user directories.

    if they're world writeable then it won twant to run php scripts.
    the users public_html folder should be owned by them, group them or nobody mode 750
    under there should be owner:group should be the user acount and at least mode 750 or 755

  10. #10
    Member
    Join Date
    Jul 2002
    Posts
    92

    Default

    Thanks. I tried setting up a brand new account just as you suggested, but it didn't seem to help. CPanel is checking it out now, pretty quick! They actually emailed me back on Sunday which is really cool :P Hopefully it can be fixed . .

  11. #11
    Member UBERHOST's Avatar
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    102

    Default

    Quote Originally Posted by Final-Solution View Post
    Thanks. I tried setting up a brand new account just as you suggested, but it didn't seem to help. CPanel is checking it out now, pretty quick! They actually emailed me back on Sunday which is really cool :P Hopefully it can be fixed . .
    Their ticketing system and the quality of technical assistance is great. Please do let us know the outcome.

    click logo to visit us for dedicated
    cPanel servers and more

  12. #12
    Member
    Join Date
    Jul 2002
    Posts
    92

    Default

    When I redid apache/php PHP was set to suphp, which was giving me 500 Internal Server Error since alot of the stuff Ihad played around with was 777. So I set it to CGI, which get rid of the 500 errors, but then some PHP scripts weren't working right . . long story short they set it back to suphp and changed the permissions and it's working fine

    They even emailed me Sunday, who works on Sundays? You're right, they do have great assistance

Similar Threads & Tags
Similar threads

  1. Apache Update & /scripts/easyapache with GD not working
    By chmod in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 09-08-2006, 12:27 PM
  2. php 5 /scripts/easyapache issues
    By SMG in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-25-2006, 01:18 PM
  3. /scripts/easyapache not working
    By netbrink in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 04-10-2006, 01:26 PM
  4. /scripts/easyapache not working
    By JoeB in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-23-2006, 02:27 PM
  5. PHP SuExec in /scripts/easyapache
    By nitromax in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-25-2003, 01:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube