build lsphp failed

Fe3C

New member
Joined
Apr 27, 2024
Messages
4
i try switch to litespeed with this command
./build set webserver litespeed
./build litespeed
./build set php3_mode lsphp
./build set php4_mode lsphp
./build set php2_mode lsphp
./build set php1_mode lsphp
./build php n
litespeed build successfully but build php got error

download_cached: using cached '/usr/local/directadmin/custombuild/cache/php-7.2.34.tar.gz' file
Patching PHP 7.2 ...
download_cached: downloading 'https://www.litespeedtech.com/packages/lsapi/php-litespeed-.tgz' to '/usr/local/directadmin/custombuild/cache/ls-php-litespeed-.tgz'
#=O#- # #
curl: (22) The requested URL returned error: 404 Not Found
safe_download: downloading 'https://www.litespeedtech.com/packages/lsapi/php-litespeed-.tgz' to '/usr/local/directadmin/custombuild/tmp/tmp.p1v4xqinAt.safe_download' failed (0/3)
-=#=- # # #
curl: (22) The requested URL returned error: 404
safe_download: downloading 'https://files.directadmin.com/cache/ls-php-litespeed-.tgz' to '/usr/local/directadmin/custombuild/tmp/tmp.p1v4xqinAt.safe_download' failed (0/3)
##O=-# #
curl: (22) The requested URL returned error: 404 Not Found
safe_download: downloading 'https://www.litespeedtech.com/packages/lsapi/php-litespeed-.tgz' to '/usr/local/directadmin/custombuild/tmp/tmp.p1v4xqinAt.safe_download' failed (1/3)
-=O#- # # #
curl: (22) The requested URL returned error: 404
safe_download: downloading 'https://files.directadmin.com/cache/ls-php-litespeed-.tgz' to '/usr/local/directadmin/custombuild/tmp/tmp.p1v4xqinAt.safe_download' failed (1/3)
#=O#- # #
curl: (22) The requested URL returned error: 404 Not Found
safe_download: downloading 'https://www.litespeedtech.com/packages/lsapi/php-litespeed-.tgz' to '/usr/local/directadmin/custombuild/tmp/tmp.p1v4xqinAt.safe_download' failed (2/3)
-=#=- # # #
curl: (22) The requested URL returned error: 404
safe_download: downloading 'https://files.directadmin.com/cache/ls-php-litespeed-.tgz' to '/usr/local/directadmin/custombuild/tmp/tmp.p1v4xqinAt.safe_download' failed (2/3)
install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-7.2.34.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.LVHobjM28v.php-7.2.34.tar.gz'
 
Try this:
Code:
cd /usr/local/directadmin/custombuild
./build clean
./build update
./build php

Which version Directadmin are you using?
 
When downloading PHP litespeed package CustomBuild uses ls-php-litespeed entry from the versions.txt file. Maybe it is customized to be an empty value? It should be 8.1 on DA 1.661:

Code:
# grep ls-php-litespeed /usr/local/directadmin/custombuild/versions.txt
ls-php-litespeed:8.1:
 
When downloading PHP litespeed package CustomBuild uses ls-php-litespeed entry from the versions.txt file. Maybe it is customized to be an empty value? It should be 8.1 on DA 1.661:

Code:
# grep ls-php-litespeed /usr/local/directadmin/custombuild/versions.txt
ls-php-litespeed:8.1:
grep ls-php-litespeed /usr/local/directadmin/custombuild/versions.txt
it's empty
 
It means version.txt is not what it bundled with DA and was manually modified. It should get restored to what is bundled with DA each time DirectAdmin is updated. You can force update DirectAdmin with command da update --force. Normally DA would not update you run latest version already, the --force flag makes sure update is performed even to the same version.
 
It means version.txt is not what it bundled with DA and was manually modified. It should get restored to what is bundled with DA each time DirectAdmin is updated. You can force update DirectAdmin with command da update --force. Normally DA would not update you run latest version already, the --force flag makes sure update is performed even to the same version.
tnx my problem solved:)
 
Back
Top