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

I wanted to transfer the website to another machine but i get the following error

Why do i get this and how can i solve it?


The picture is bad. Message displayed:

Warning: require:once(.../qa-follow-widget2.php) failed to open stream: Permission denied in ..../qa-base.php on line 733

Fatal error: require_once(): Failed opening required '..../qa-follow-widget2.php' (include_path='...') in .../qa-base.php on line 733

1 Answer

+2 votes
edited by
How were the files transferred?  The problem is 99% file permissions.

Do you have root access.  Did you login to the new machine as root?  If so suggest to login to the new machine as the account holder not root, and try another transfer.

If there is hosting support, suggest contacting them, and they will fix the permissions on the file system.  This is a frequent issue and I am sure they can easily fix it for you.

If you have root access, you can execute the following

$dir = "myaccountname";  //*** substitute your own account....

$comm[] = "find /home/$dir/public_html -type f  -exec chmod 644 '{}' \;";
$comm[] = "find /home/$dir/public_html -type d  -exec chmod 755 '{}' \;";

echo "\nfixing permissions";

foreach( $comm AS $commline ) {
    echo "\n$commline";
    system( $commline );
Thanks for the answer. Actually it was something with the path resolution.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.