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 25th August 2011, 14:20
midcarolina midcarolina is offline
Senior Member
 
Join Date: Jul 2011
Posts: 254
Thanks: 1
Thanked 5 Times in 5 Posts
Default 500 Internal Server error on ISPConfig w/ Shopping Cart

Hi,

The site that was on my Host Gator reseller plan is now on my own server. When folks try to check-out (PayPal integrated portal), they receive a 500 internal server error. This only happened when I moved to my server with Fedora 14 x84_64 ISPConfig 3. I contacted the theme designer (WordPress) and this was their quote:

"There is a mod_security rule that is missing that is keeping the cart button from working."

Any help would be great!
Reply With Quote
Sponsored Links
  #2  
Old 25th August 2011, 14:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,245 Times in 4,111 Posts
Default

mod_security is not installed on a ispconfig 3 system by default. So if you installed it manually and the designer told you to install a specific rule, then you should try that. If the designer ahs not send you the rule, ask him to send you the rule.

But I dont think that a 500er error is caused by mod_security. Instead you should take a look into the error.log of the website to see what the reason for the errormessage is.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th August 2011, 18:32
midcarolina midcarolina is offline
Senior Member
 
Join Date: Jul 2011
Posts: 254
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Hi Till,

I install mod_security package for Fedora 14 x86_64 first, then did a "dummy" check-out to get a better error log. Here is the outcome after the attempt:

http://hostwithsupport.com/bronze-hosting/
[Thu Aug 25 08:23:22 2011] [error] [client 70.155.163.2] PHP Warning: require(../language/.php): failed to open stream: No such file or directory in /var/www/clients/client1/web1/web/wp-content/themes/mk4/ajCart/cart.php on line 15, referer: http://hostwithsupport.com/bronze-hosting/
[Thu Aug 25 08:23:22 2011] [error] [client 70.155.163.2] PHP Fatal error: require(): Failed opening required '../language/.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/wp-content/themes/mk4/ajCart/cart.php on line 15, referer: http://hostwithsupport.com/bronze-hosting/
[Thu Aug 25 08:23:22 2011] [error] [client 70.155.163.2] PHP Warning: Unknown: open(/var/lib/php/session/sess_nf4qqbjgd577hvrn2rqdg03ju0, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://hostwithsupport.com/bronze-hosting/
[Thu Aug 25 08:23:22 2011] [error] [client 70.155.163.2] PHP 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, referer: http://hostwithsupport.com/bronze-hosting/
[Thu Aug 25 08:23:22 2011] [error] [client 70.155.163.2] ModSecurity: Warning. Operator GE matched 15 at TXutbound_anomaly_score. [file "/etc/httpd/modsecurity.d/base_rules/modsecurity_crs_60_correlation.conf"] [line "38"] [msg "Outbound Anomaly Score Exceeded (score 15): The application is not available"] [hostname "hostwithsupport.com"] [uri "/wp-content/themes/mk4/ajCart/cart.php"] [unique_id "TlY@un8AAAEAABTVK3IAAAAI"]
[Thu Aug 25 08:23:39 2011] [error] [client 178.203.174.30] PHP Warning: session_start(): open(/var/lib/php/session/sess_7eq8blaus5bfv85f4cqm1o9nn5, O_RDWR) failed: Permission denied (13) in /var/www/clients/client1/web1/web/wp-content/themes/mk4/functions.php on line 10, referer: http://clicks.thespecialsearch.com/x...ahRsEnoabBj4k=
[Thu Aug 25 08:23:39 2011] [error] [client 178.203.174.30] PHP Warning: Unknown: open(/var/lib/php/session/sess_7eq8blaus5bfv85f4cqm1o9nn5, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://clicks.thespecialsearch.com/x...ahRsEnoabBj4k=
[Thu Aug 25 08:23:39 2011] [error] [client 178.203.174.30] PHP 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, referer: http://clicks.thespecialsearch.com/x...ahRsEnoabBj4k=

Any instructions on a resolution would be welcome with open arms. The theme designer has no idea!

Thanks in advance
Reply With Quote
  #4  
Old 25th August 2011, 18:44
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

Run this from root:

find / -name sess_*

See where sess_ files are being saved for your client/s (location differs between clients), and see if are in the correct path.

In your log, all sess_ files are being searched in /var/lib/php/session

But, I think that ISPConfig sets another path for that (/tmp of each client). Maybe the site has a wrong value for session.save_path (it could be correct when the page was working in another hosting...)

See other answer please, I am not an expert in this... yet :P

Regards

Edit: As I see, your clients are in /var/www/clients/client1/web1/web, if you didn't change default values of ispconfig, path for sessions should be /var/www/clients/client1/web1/web/tmp... the solution should be just modify the value of the variable in the site.. you could see which file has that value with this from root:

find /var/www/clients/client1/web1/web/ -type f -exec grep -i "/var/lib/php/session" {} \; -print

It should show you every file in /var/www/clients/client1/web1/web/ that has in content "/var/lib/php/session", next, you have to edit those files to point session path to correct directory.

Last edited by erosbk; 25th August 2011 at 18:50.
Reply With Quote
  #5  
Old 25th August 2011, 21:24
midcarolina midcarolina is offline
Senior Member
 
Join Date: Jul 2011
Posts: 254
Thanks: 1
Thanked 5 Times in 5 Posts
Default

This was the result of that command line:

[root@webserver ~]# find /var/www/clients/client1/web1/web/ -type f -exec grep -i "/var/lib/php/session" {} \; -print
[root@webserver ~]#

Nothing.
Reply With Quote
  #6  
Old 25th August 2011, 22:52
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

[Thu Aug 25 08:23:39 2011] [error] [client 178.203.174.30] PHP Warning: Unknown: open(/var/lib/php/session/sess_7eq8blaus5bfv85f4cqm1o9nn5, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://clicks.thespecialsearch.com/x...ahRsEnoabBj4k=
[Thu Aug 25 08:23:39 2011] [error] [client 178.203.174.30] PHP 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, referer: http://clicks.thespecialsearch.com/x...ahRsEnoabBj4k=

This lines are showing that your php site is trying to access in /var/lib/php/session.

Maybe you have a function ini_set changing the path, or it is being readed from a mysql database, or from a script outside of home directory of the user.

Did you search for sess_* files? did it find any to see where are being them saved? do you have only one site running on your host?


edit: you could try to find "session.save_path" this in your scripts, if your php code is changing it in real time, it could be done with ini_set... just replace the string in the previous command to search inside files.
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
Not working emails (DNS and postfix problem?) shekiman Installation/Configuration 9 1st March 2011 16:25
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
Debian 5 Ajax error + network interface always shutting down ev0css Installation/Configuration 3 5th June 2010 12:58
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 16:30


All times are GMT +2. The time now is 11:38.


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