Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

laravel on cpanel raise error for autoload_real.php on line 66

I am new to laravel and I run my website on localhost. It runs correctly but when I upload it on cpanel, it raises these errors :

Warning: require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/didfilei/public_html/app/vendor/composer/autoload_real.php on line 66

Warning: require(/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/didfilei/public_html/app/vendor/composer/autoload_real.php on line 66

Fatal error: require(): Failed opening required '/home/didfilei/public_html/app/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/didfilei/public_html/app/vendor/composer/autoload_real.php on line 66

like image 750
MohamadReza Davoudi Avatar asked Jan 18 '26 11:01

MohamadReza Davoudi


2 Answers

I solved it. I realized that after extracting the zip file with cpanel, some folders were deleted (eg '/ symfony'), so I got more space from the hosts, then my project extract correctly

like image 60
MohamadReza Davoudi Avatar answered Jan 21 '26 00:01

MohamadReza Davoudi


Since you do not have access to SSH, you should upload the vendor files along with the rest of your project. Be careful that if your dev machine is windows, you might face some issues with paths and case sensitivity.

You also need to check how php is executed in your host. You might have to fiddle around with file ownership and access rights. Especially if suphp is used, your user must be the owner of everything in your folder, all files must be set to 644 and all folders to 755

like image 30
Dimitris Avatar answered Jan 21 '26 00:01

Dimitris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!