How to point my phpbb installation to subfolder?

Posted May 29, 2018 1.1k views
ApacheUbuntu 16.04

Hi all,

I just migrated my Wordpress blog from Godaddy to DO and so far I am amazed to see the performance and kicking myself for not doing it so long. But, it is never too late :) … Well, I have moved the entire website now to my droplet and everything works fine for me.

However, I had a phpBB forum running on my site which does not work anymore after migration. The phpbb installation was in a sub folder of my domain and accessible via sub folder URL. Like

My web root, had the wordpress installed which I have been able to successfull migrate. However, I copied the database of forum and files as well to the same path on my droplet but when I try to open, I get 500 Internal Server error.

I believe I am missing some Apache configuration and have not setup any site as I do not know what I have to do to make it work. I have only made config settings for Apache to serve from Varnish cache and have not done anything for this sub-folder where Phpbb is present

Can anyone please help?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

I see below in my apache error log

[Tue May 29 01:14:08.528051 2018] [:error] [pid 32223] [client] PHP Fatal error: Uncaught Error: Call to undefined function mysqlconnect() in /var/www/html/india/includes/db/mysql.php:47\nStack trace:\n#0 /var/www/html/india/common.php(109): dbalmysql->sql_connect(‘xxxforums.db....’, 'xxxforums’, 't8xd4ddddx’, 'cccdddddd’, “, false, false)\n#1 /var/www/html/india/viewtopic.php(17): include(’/var/www/html/i…’)\n#2 {main}\n thrown in /var/www/html/india/includes/db/mysql.php on line 47