Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ashoor's avatar

Page isn’t working. Currently unable to handle this Request. HTTP ERROR 500

hi i uploaded my project on shared hosting and when i open the project i facing

Page isn’t working. Currently unable to handle this Request. HTTP ERROR 500

in errorlog

[14-Oct-2022 06:59:02 UTC] PHP Warning:  require(/home/national/public_html/project/vendor/composer/../phpunit/phpunit/src/Framework/Assert/Functions.php): Failed to open stream: No such file or directory in /home/national/public_html/project/vendor/composer/autoload_real.php on line 71
[14-Oct-2022 06:59:02 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home/national/public_html/project/vendor/composer/../phpunit/phpunit/src/Framework/Assert/Functions.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear') in /home/national/public_html/project/vendor/composer/autoload_real.php:71
Stack trace:

what should i do

0 likes
16 replies
Sinnbeck's avatar

DId you upload the vendor folder as well? Did you change the folder structure in any way after uploading?

ashoor's avatar

@Sinnbeck i uploaded & uncompressed it but i didn't get a message that the uncompressed finished

i didn't change in vendor folder

Sinnbeck's avatar

@ashoor That looks to be some folders inside the vendor directory? I am talking about the overall structure of everything

Tray2's avatar

@ashoor It's the document root that is the most important thing, so can you show that?

ashoor's avatar

@Tray2 /home/national/public_html/myproject

is it what are you asking?

or how can i find it

Tray2's avatar

@ashoor The document root should then be /home/national/public_html/myproject/public

Sinnbeck's avatar

@ashoor Are you trying to run laravel inside a subfolder along with another project?

ashoor's avatar

and store older project files in subfolder in the folder

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@ashoor Ok so I assume the subdomain is pointed to the folder as @tray2 said. Now look at the full error message. It should say exactly which file is missing. Is that file missing? Check you local computer for it

Tray2's avatar

@ashoor try to google for "Laravel on shared host cpanel" and you will find guides how to do it.

I use shared hosting without cpanel and these are the steps I take

  1. Upload the complete project including the vendor and node_modules directories into the document root.
  2. Add a .htaccess file in the document root that rewrites all requests to the public directory without changing the uri.
  3. Make sure that the .env isn't accessible from the browser.
  4. Export the database structure/data from the local database.
  5. Import the structure/data on the hosting database.

Please or to participate in this conversation.