LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Build Matching Binary Fails

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2008, 04:38 PM
imagize imagize is offline
New Member
 
Join Date: Sep 2008
Posts: 8
Default 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.

Last edited by imagize; 09-19-2008 at 11:09 PM..
Reply With Quote
  #2  
Old 09-20-2008, 02:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #3  
Old 09-20-2008, 02:39 PM
imagize imagize is offline
New Member
 
Join Date: Sep 2008
Posts: 8
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.
Reply With Quote
  #4  
Old 09-20-2008, 11:58 PM
imagize imagize is offline
New Member
 
Join Date: Sep 2008
Posts: 8
There were lots of these logs:

Quote:
[apc-error] apc_mmap: mmap failed: Cannot allocate
memory
Reply With Quote
  #5  
Old 09-21-2008, 06:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Maybe you need increase the memory limit, in both php.ini and the lsphp? external application from LSWS web console.
Reply With Quote
  #6  
Old 10-11-2008, 08:27 AM
R.Rowan R.Rowan is offline
New Member
 
Join Date: Oct 2008
Posts: 8
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.
Reply With Quote
  #7  
Old 10-11-2008, 08:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can try removing /home/cpeasyapache/ls.src/ directory and try again.
Reply With Quote
  #8  
Old 10-13-2008, 05:35 AM
R.Rowan R.Rowan is offline
New Member
 
Join Date: Oct 2008
Posts: 8
I tried removing it, uninstalled litespeed, reinstalled and it still fails.
Reply With Quote
  #9  
Old 10-13-2008, 12:54 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please try rebuild Apache/php with ezapache first.
Reply With Quote
  #10  
Old 10-14-2008, 01:09 PM
R.Rowan R.Rowan is offline
New Member
 
Join Date: Oct 2008
Posts: 8
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.
Reply With Quote
Reply

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


All times are GMT -7. The time now is 02:53 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.