I developed a simple php project with some simple framework and now I want to host it on server, the server is shared server and I do not have SSH access, so I have uploaded all the files via cPanel. For some reason the project isn't opening up on web browser correctly, can someone advise what should I do in this case?
On local machine the project displays correctly and all the pages can be navigated normally, but on web server I'm getting few errors, one related to autoloader. other error indicates platform incompatibility. I think this is related to Composer, but since this is shared hosting without SSH access how to I run composer update or composer dump-autoload.
On local machine:
I install the project using composer:
composer create-project quantum/project oraks
then installed the demo skeleton:
php qt install:demo
this was generated controllers, models, view files and other resources.
I can run the local server via:
php qt serve
all the pages are fully functional (posts, login, manage posts, etc.)
Now I have zipped all this stuff and uploaded to server (shared hosting) via cPanel, extracted it there, trying to access via browser to the domain and instead of displaying the web page I'm getting error:
Fatal error: Uncaught Error: Failed opening required '/vendor/autoload.php' in ../index.php on line 3
Environments:
- The framework I use is called: quantumphp
- My local environment is php 7.4
- The local server is php dev server (not Apache)
- The Server php is also 7.4
- But the web server on hosting is Apache
The .htaccess file (inside the public directory):
<IfModule mod_rewrite.c>
RewriteEngine On
# Removing trailing slash
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
Please advise

.envfile if you are about it