LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   Build Matching Binary Fails (http://www.litespeedtech.com/support/forum/showthread.php?t=2330)

imagize 09-19-2008 04:38 PM

Build Matching Binary Fails
 
The build seems to complete successfully, and then at the end it displays this error:

Quote:

copy compiled php binary to litespeed directory
cd /usr/local/lsws/fcgi-bin
cp: cannot stat `/home/cpeasyapache/ls.src/php-5.2.6/sapi/litespeed/php': No such file or directory
**ERROR** fail to copy lsphp from /home/cpeasyapache/ls.src/php-5.2.6/sapi/litespeed/php
Obviously the directory doesn't exist, just wondering how to solve this.

Also If I try to build php5 in the lsws admin panel, I get all sorts of permission errors like:

Quote:

/usr/local/lsws/phpbuild/phpbuild.1221880298.6.sh: line 21: /usr/bin/curl: Permission denied
I assume this is because lsws is running as robody and doesn't have permission.

Also

Quote:

2008-09-19 23:34:31.103 [ERROR] [config:server:epsr:lsphp5] invalid path - /usr/local/lsws/fcgi-bin/lsphp5, it cannot be started by Web server!
Update

I compiled lsphp5 manually and it works fine, still curious why the other methods didn't work though.

mistwang 09-20-2008 02:33 PM

Which OS are you using?
Looks like the PHP code has not been properly patched when you build matching binary from WHM, it should grab the latest PHP LSAPI patch and create /home/cpeasyapache/ls.src/php-5.2.6/sapi/litespeed/ directory. Is the directory created?

Please try it again see if there is any other error messages.

imagize 09-20-2008 02:39 PM

I'm using CentOS 64bit, I was able to build php manually but I could not get APC working correctly.

I could compile APC but it was acting weird, like when the shm size was set to 100, it was showing a total of 600, it was like it was not sharing properly.

Also could be a conflict between the APC compiled with apxs running with apache. I was running litespeed in paralells to test.

imagize 09-20-2008 11:58 PM

There were lots of these logs:

Quote:

[apc-error] apc_mmap: mmap failed: Cannot allocate
memory

mistwang 09-21-2008 06:45 PM

Maybe you need increase the memory limit, in both php.ini and the lsphp? external application from LSWS web console.

R.Rowan 10-11-2008 08:27 AM

I am getting the same error when trying to rebuild PHP. I stopped litespeed to install some new php modules and when I go to rebuild php it gives me the following error:

copy compiled php binary to litespeed directory
cd /usr/local/lsws/fcgi-bin
cp: cannot stat `/home/cpeasyapache/ls.src/php-5.2.6/sapi/litespeed/php': No such file or directory
**ERROR** fail to copy lsphp from /home/cpeasyapache/ls.src/php-5.2.6/sapi/litespeed/php

The directory does exist though.

mistwang 10-11-2008 08:05 PM

You can try removing /home/cpeasyapache/ls.src/ directory and try again.

R.Rowan 10-13-2008 05:35 AM

I tried removing it, uninstalled litespeed, reinstalled and it still fails.

mistwang 10-13-2008 12:54 PM

Please try rebuild Apache/php with ezapache first.

R.Rowan 10-14-2008 01:09 PM

Just to update, the fix to this problem was with /usr/bin/gcc - if you set permissions to 755 before the compilation it works fine. Make sure to change it back to normal after.


All times are GMT -7. The time now is 11:39 PM.