Solved php 8 & Php 8.1 Not working properly on my server

hmaddy

Verified User
Joined
Apr 17, 2019
Messages
287
php 8 and php 8.1 not working on my server. i am facing this issue from the last few months. i rebuilded the PHP many times. but still its not installing properly on my server. I am not getting the proper solution from our community and the officials.


removed the version.txt file and rebuilded. Still not working. so this is my last attempt to try once more. if this also fails then my plan is to shutdown direct admin severs and move to any other panels which have more and good supports.
 

Attachments

  • Screenshot_65.jpg
    Screenshot_65.jpg
    69.7 KB · Views: 341
Please do not double or triple post. Keep your php 8.x issue in one post.

Same question is already here (so keep it in here please):
and here (where you marked it solved):
 
its solved.


if we uninstall imunify wont experience this issue


here are the commands that should execute before running any PHP compilations

mv /usr/local/php80/lib/php.conf.d/i360.ini /usr/local/php80/lib/php.conf.d/i360.ini_bak
mv /usr/local/php81/lib/php.conf.d/i360.ini /usr/local/php81/lib/php.conf.d/i360.ini_bak


mv /usr/local/php80/lib/php.conf.d/i360.ini /usr/local/php80/lib/php.conf.d/i360.ini_bak
mv /usr/local/php81/lib/php.conf.d/i360.ini /usr/local/php81/lib/php.conf.d/i360.ini_bak



cd /usr/local/directadmin/custombuild
./build set webserver apache
./build set mod_ruid2 no
./build set php1_mode php-fpm
./build set php1_release 7.4
./build set php2_mode php-fpm
./build set php2_release 8.0
./build set php3_mode php-fpm
./build set php3_release 8.1
./build set php4_mode php-fpm
./build set php4_release 5.6
./build apache
./build php n
./build rewrite_confs


As mentioned the primary cause of the issue is Immunify, If you want a more permanent resolution disabling Immunify would be suggested. In the near future you should expect an official bug fix from Immunify aswell as DirectAdmin so keep note of new versions released and do upgrade to them.
 
-snip-

As mentioned the primary cause of the issue is Immunify, If you want a more permanent resolution disabling Immunify would be suggested. In the near future you should expect an official bug fix from Immunify aswell as DirectAdmin so keep note of new versions released and do upgrade to them.

Had the same issue and uninstalling Immunify worked, Curious how you got to this solution, I tried everything before even considering them since I didn't have their hardened PHP enabled.

@rsnetworks - Saw your post in a similar thread, You might have this same problem.
 
Had the same issue and uninstalling Immunify worked, Curious how you got to this solution, I tried everything before even considering them since I didn't have their hardened PHP enabled.

@rsnetworks - Saw your post in a similar thread, You might have this same problem.
This was indeed the problem for me to. I had imunify uninstalled updated the PHP versions I needed and reinstalled imunify and now everything is fine.
@hmaddy - Thanks for the perfect instruction this did the trick I was looking for.
 
Back
Top