Compile PHP 5.4.23 with LSAPI errors

Licensecart

Well-Known Member
#1
Hello guys,

I'm trying to compile PHP with LSAPI. I've selected 5.4.24 and clicked Next, I then kept the location, and I've also changed it to: /usr/local/lsws/lsphp55

Configure Parameters: Default with:

--with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv
Add-on Modules: PHP Mail Header Patch (Identifies Mail Source) [Ticked]

I then click on: Build PHP 5.4.24

--------------------------------------

I then get this issue:

Step 3 : Preparing for building PHP 5.4.24 Binary

Stopped due to Error. Please manually fix it.


Main Status:
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1392066227.4.progress
Preparing all source code for building PHP 5.4.24 with LSAPI
php-5.4.24.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.4.24.tar.gz
Retrieving mail header patch from http://choon.net/opensource/php/php-5.4.x-mail-header.patch
Patching source with mail header patch
**ERROR** Could not patch source with mail header patch
Detailed Log:
**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1392066227.4.log
=============================================================
Preparing all source code for building PHP 5.4.24 with LSAPI
=============================================================
Mon Feb 10 21:03:47 UTC 2014

Changing to build directory /usr/local/lsws/phpbuild
php-5.4.24.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.4.24.tar.gz

Retrieving mail header patch from http://choon.net/opensource/php/php-5.4.x-mail-header.patch
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
102 3379 102 3379 0 0 2391 0 0:00:01 0:00:01 --:--:-- 6411

Patching source with mail header patch
/usr/local/lsws/phpbuild/buildphp_1392066227.4.prep.sh: line 175: patch: command not found
**ERROR** Could not patch source with mail header patch
Thank you for your help.
 

Licensecart

Well-Known Member
#3
Please scroll down "Detailed Log", paste the last few lines, it contains the detail error logs there.
This is what I see:

Code:
2014-02-10 22:35:03.127    ERROR    [config:server:epsr:lsphp55] invalid path - /usr/local/lsws/fcgi-bin/lsphp55, it cannot be started by Web server!
2014-02-10 22:35:03.127    ERROR    [config:scripthandler] Can not find handler with type: 12, name: lsphp55.
2014-02-10 22:35:03.127    ERROR    [config:scripthandler] Can not find External Application: lsphp55, type: lsapi
2014-02-10 22:35:03.127    ERROR    [config:scripthandler] use static file handler for suffix [php55]
2014-02-10 22:35:03.129    WARN    [] can't set 'Forced Type', undefined MIME Type handler/watch-info
2014-02-10 22:35:03.129    WARN    [] can't set 'Forced Type', undefined MIME Type handler/watch-table
2014-02-10 22:35:03.129    WARN    [] can't set 'Forced Type', undefined MIME Type handler/watch-flush
Thank you :).
 

NiteWave

Administrator
#4
Top