blueoffice

Registered
Aug 1, 2018
4
1
3
Australia
cPanel Access Level
Website Owner
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.subdomain.mydomain.com it's OK.

However should the subdomain path be typed into the browser e.g. 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
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,219
2,417
363
cPanel Access Level
Root Administrator
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.
 

blueoffice

Registered
Aug 1, 2018
4
1
3
Australia
cPanel Access Level
Website Owner
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?