php not executed on subdomains

joostalexander

New member
Joined
Jan 29, 2021
Messages
2
Hi,
I have a problem and I think I tried all there is that I can find in the forums. So any help would be greatly appreciated.

Php files on subdomains are not being executed. Php files on the main domain is being executed. When you go to the subdomain you see the php code as if the server was handling simple html.
The issues started after I tried to add multiple php versions to directadmin. I have since restored that, so only php5.6 is available, but the problem persists.
The vhosts files the same for both the subdomain and the main domain in regard to anything else but the name and directory.
If I create a new subdomain it also does not execute php.
I can find no error in the logs. Which leads me to think httpd is simply not recognizing it as a php file and returning the file as text.
I've run a new custombuild update and a php rebuild. No luck there.

Any help would, again, be greatly appreciated.
 
looks like you have custom httpd/nginx virtual-hosts for subdomains or something wrong with handlers.
remove custom templates, rebuild php and http server (apache/nginx or what you have)
 
Back
Top