PHP update made site not load

The problems seemed to begin when custombuild told me to set both php-mod and php-ruid2 to "no" in the options.conf
And then you have to recompile.

Jul 21 12:28:06 harvest2.a1websolutions.com httpd[2794]: <VirtualHost> cannot occur within <VirtualHost> section
Seems indeed that apache has an issue. Very great chance that rebuilding all will fix things.

Use the commands as stated by @jamgames2 via SSH and do -not- use the custombuild plugin for this, use SSH and see what is happening and keep looking if you see any errors occuring.
Be sure you are root... so su to root if needed (like in Debian and alike systems sometimes).
 
I followed exactly as you ordered it ,,, but I still get this

[root@harvest2 custombuild]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2023-07-21 13:29:05 EDT; 16s ago
Process: 9906 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 9906 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."

Jul 21 13:29:05 harvest2.a1websolutions.com systemd[1]: Starting The Apache HTTP Server...
Jul 21 13:29:05 harvest2.a1websolutions.com httpd[9906]: AH00526: Syntax error on line 23 of /usr/local/directadmin/data/users/harvest/httpd.conf:
Jul 21 13:29:05 harvest2.a1websolutions.com httpd[9906]: <VirtualHost> cannot occur within <VirtualHost> section
Jul 21 13:29:05 harvest2.a1websolutions.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 21 13:29:05 harvest2.a1websolutions.com systemd[1]: Failed to start The Apache HTTP Server.
Jul 21 13:29:05 harvest2.a1websolutions.com systemd[1]: Unit httpd.service entered failed state.

Jul 21 13:29:05 harvest2.a1websolutions.com systemd[1]: httpd.service failed.
 
Is there somebody here that I can pay to fix my server?? I am really getting frantic now

I can provide full root access

:cry::cry:
 
Last edited:
AH00526: Syntax error on line 23 of /usr/local/directadmin/data/users/harvest/httpd.conf:
Seems you have an issue there and there you can fix it.
However I wonder if this is caused by some customisation you made.

If you want I can have a quick look for you if I can fix it, pm me with the credentials if you want.
 
Sorry for being late but I was having the same issue but a simple enable of PHP8.1 fixed it

sudo a2enmod php(ver)
(ver) = Php Version
 
Back
Top