sub domain error
I've created a subdomain via cPanel on my VPS running a Wordpress site: subdomain.mydomain.com
The WP site files are installed in a sub folder beneath root i.e. mydomain.com/subfolder
If a site visitor uses the correct URL - www.mydomain.com/subfolder then the error message shown below is displayed in the browser. So although the website is functioning it appears that there's a config error somewhere.
Any help appreciated, can anyone advise please? Thanks, P
Warning: include(/home/******/public_html/admin/function/mysqldb.php): failed to open stream: No such file or directory in /home/******/public_html/******/admin/function/functions.php on line 38
Warning: include(/home/******/public_html/admin/function/mysqldb.php): failed to open stream: No such file or directory in /home/******/public_html/******/admin/function/functions.php on line 38
Warning: include(): Failed opening '/home/******/public_html/admin/function/mysqldb.php' for inclusion (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/******/public_html/******/admin/function/functions.php on line 38
Fatal error: Uncaught Error: Class 'TMySQLConnection' not found in /home/******/public_html/******/admin/function/functions.php:41 Stack trace: #0 /home/******/public_html/******/admin/function/db.php(18): include() #1 /home/******/public_html/******/index.php(3): include('/home/******/...') #2 {main} thrown in /home/******/public_html/******/admin/function/functions.php on line 41
-
Hey there! Do you see any additional information inside the Apache error log (/etc/apache2/logs/error_log) that may provide more details? I'm not finding much information on my end about this error, and I can't say for certain why the subdomain would work but the subdirectory would not. 0 -
Thanks for your response. Couldn't see anything in error log. After looking again at the directories in cPanel it dawned on me that I should have mentioned that the site files for main domain i.e. mydomain.com are also installed in a subdirectory beneath root. Would that be the cause? 0 -
No, I wouldn't expect that to cause a problem at all - that's a very common configuration. 0
Please sign in to leave a comment.
Comments
3 comments