Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
103 views
in Q2A Core by

I moved my q2a installation from example.com to example.com/qna but changed my mind and reverted the change. The reverting move was done by renaming the qna directory to public_html and overwriting the existing one.

I also changed from PHP 7.4 to PHP 8.023. Since I made two changes I cannot figure out which one caused the problem I am now having.

When I click on the logo of my site I get the following error :


Fatal error: Uncaught Error: Failed opening required 'qa-include/qa-index.php' (include_path='.:/usr/local/php80/pear') in /home/www/example.com/public_html/index.php:27 Stack trace: #0 {main} thrown in /home/www/example.com/public_html/index.php on line 27

In admin/general the url structure is set to the first one that uses .htaccess

Q2A 1.8.6 (20/04/2021)

PHP 8.023

MySQL 5.7.39-42-log

Please have been struggling with this for 2 days.

Q2A version: 1.8.6

1 Answer

+2 votes
by

I get the impression there is a permissions or file ownership issue here. The original public_html directory must have had some file permissions or owner that is different from the one you created.

Just set the original permissions or file ownership to the public_html directory (and any other that you might have changed). In general, 755 for directories and 644 for files is a decent configuration, but you will have to check that with the server administrator.

...