![]() |
cPanel/Easy Apache Failing
Greetings All,
We recently upgraded some cPanel servers to LSWS and everything has been going pretty well so far. I am now having a problem regarding cPanel's EasyApache and a conflict that I am not too sure how to resolve. We typically use EasyApache to recompile PHP and add/remove modules but it looks like there is one last problem with EasyApache and LSWS. Initially we compiled PHP through the LSWS Admin Console with the same CFLAGs that were found with php -i. The compiling went fine and we were able to add in --with-mbstring, but once we restarted the service IonCube, memcached and a few other things weren't working properly. To fix this we used "build matching PHP version" from within the admin console and all was corrected however we did not have mbstring. The problem now is that we would like to compile with mbstring but EasyApache is failing at one particular step. To clarify, what we had intended to do was to compile PHP through EasyApache and then build matching php version via LSWS admin console but it is failing with, !! '/usr/sbin/lsof -n -iTCP:80 -iTCP:443' failed with exit code '256' !!. The full failure output is provided below and if you notice in the section of "Ouput from '/bin/netstat -a -n --tcp | grep LISTEN':" neither ports 80 or 443 are listed. Many thanks for reading all of that! Code:
End opt 'IonCube Loader for PHP' -- |
After looking into this a bit more, it looks like you need to switch to Apache to run EasyApache through cPanel however doing this in the admin console (WHM plugin) displays:
Quote:
|
The way easyapache works is it does upgrades in stages and then does the checks. If it gets to the checks with Apache then it will leave PHP upgraded. So since you do not care about the Apache portion you should be safe to build the matching PHP and it'll build against the configuration you attempted through cPanel's easyapache.
I would also advise to keep things simple is when you build PHP through easyapache your Apache version is 2.0 with prefork or no mpm specified. Otherwise it builds a thread safe PHP which can cause issues with extensions. This will cause problems if you want to use cPanel/WHM built in Pecl feature to build other extensions. It will build a thread safe version because of the system PHP installed but the version LSWS uses via build matching PHP will not be thread safe. As a result extensions will not work on the LSWS version. |
Quote:
I am working on simply compiling PHP from /home/cpeasyapache/src/php-5.2.5 with the necessary CFLAGs and seeing if LiteSpeed will build matching from that. In the mean time, if you have any suggestions please feel free to let me know. |
When is it showing the system php was compiled? If it was newer then previously then the issues lies with getting mbstring in with easyapache. As to why it's an issue not sure. From my experience though upgrading PHP even if easyapache fails the checks if it built PHP then it will have the new version with whatever settings. So I assume that's the case for you and it's something wrong with easyapache causing the problem. Might want to try a newer version of PHP rather than 5.2.5.
|
Quote:
|
| All times are GMT -7. The time now is 04:16 AM. |