[Resolved] Magento/CPANEL/LiteSpeed issue

mistwang

LiteSpeed Staff
#21
have to rename /usr/local/apache/conf/userdata/std/2/pcshop/cp_php_magic_include_path.conf

to avoid

php_admin_value include_path ...

being set, once set, the magento php code cannot change include path, thus cause the error.
In our cPanel setup, there is no "userdata" directory at all, so it must be something special for your cPanel setup.
 

Geoff

Active Member
#22
This is default setup, but I solved the problem now:

cpanelkenneth said:
Originally Posted by Silver_2000
/usr/local/apache/conf/userdata/std/2account_name/cp_php_magic_include_path.conf
Note: Apache userdata include files that begin with cp_ are installed by cPanel ( hence the cp in the name ).

This file in particular is installed in all virtual hosts by activating the PHP Magic User Loader. You can enable and disable this feature in WHM. To check or change this:
Login to WHM as root
Click Module Installers ( it is in the Software menu block )
Click the Manage link for PHP Extensions and Applications Package
The status of the Magic User Loader is at the top of the page

Disabling the magic loader will remove the include file and reference from all virtual hosts ( you might need to regenerate httpd.conf for this to take affect ).
I had enabled php magic for something (cant recall why now), but it was non essential. Turned it off and renamed the file back, restarted LS, and its still working, so all good. Thanks heaps for your help Mistwang (and nite too).
So far so good.

The default magento site would take 1-3 secs to fully render on my screen, with litespeed there is virtually no lag at all. Wicked.
 
#25
Hi,

I'm installing magento-1.4.0.1 in the server with litespeed+cpanel. On first take of admin page, I get 503 error page.

--
503 Service Unavailable

The server is temporarily busy, try again later!
Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!
--

I am getting strange entires in error logs.

--
2010-05-04 00:42:52.059 [INFO] [61.17.17.158:50545-0#APVH_dtech.net] connection to [/tmp/lshttpd/APVH_dtech.net_Suphp.sock.802] on request #0, confirmed, 1, associated process: 24829, running: 0, error: Connection reset by peer!
2010-05-04 00:42:52.059 [NOTICE] [61.17.17.158:50545-0#APVH_dtech.net] Max retries has been reached, 503!
2010-05-04 00:42:52.059 [NOTICE] [61.17.17.158:50545-0#APVH_dtech.net] oops! 503 Service Unavailable
--

I tried to raising "Max Request Body Size". But still no luck.

Anyone please advise.
 

NiteWave

Administrator
#26
1. is it working under apache?

2. if it is, have you done "Build Matching PHP Binary" in Litespeed Web Server" plugin, without error?

3.if 2 is ok, run phpinfo(), ensure lsphp has built correctly.

in a trouble shooting a few days back, a wordpress site return 503 error. lsphp is latest 5.2.13 with
eAccelerator v0.9.6
ionCube PHP Loader v3.3.14
Zend Optimizer v3.3.9

in the end, I disabled its suhosin module and working fine.
 
Top