Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th August 2009, 16:33
rlischer rlischer is offline
Senior Member
 
Join Date: Jul 2009
Posts: 121
Thanks: 6
Thanked 1 Time in 1 Post
Default Help! Ajax or Java or PHP, my app is broke.

I had a PHP program written for me and it runs fine on my dedicated cPanel server. (I did not build or setup this server). I built a server using perfect server setup centOS 5.3, ISPConfig 3 etc.... All went well.

I copied over the php code and created a database, modified the config file, when I try to login to my php program it just sits at the login screen. A wrong password gets me a wrong password error, so I know it sees the database. I correct password just stays right at the login screen. What could be missing on the server? I know the php app uses some AJAX/Java is this something I need to add to me server? I have moved the php program to other cpanel server and it worked. It just hates my server.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 5th August 2009, 17:28
rlischer rlischer is offline
Senior Member
 
Join Date: Jul 2009
Posts: 121
Thanks: 6
Thanked 1 Time in 1 Post
Default

I turned on display_errors. It must be a permission problem. I get this at the login screen:

Code:
Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_s35h7lun48sprt9hdspmrlmh50, O_RDWR) failed: Permission denied (13) in /var/www/clients/client1/web4/web/calls/index.php on line 2

Warning: Unknown: open(/var/lib/php/session/sess_s35h7lun48sprt9hdspmrlmh50, 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 (/var/lib/php/session) in Unknown on line 0
Reply With Quote
  #3  
Old 5th August 2009, 17:40
rlischer rlischer is offline
Senior Member
 
Join Date: Jul 2009
Posts: 121
Thanks: 6
Thanked 1 Time in 1 Post
 
Default

Solved my own problem for once. This command did it: chmod 1777 session

This allows any user to write to session, but only the user who created a specific file (eg, the session file as apache) can delete the file.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 11:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18


All times are GMT +2. The time now is 09:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.