I want to deploy my Laravel-Project but it always shows me this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
My Server Structure is like that:
/
/protected --> All Files and Folders within the project (+ /node_modules & /vendor) except the /public-folder
/public_html --> all Files and Folders within the /public-folder
I already changed the permissions for the /storage-folder and I already changed the paths in the /index.php to
require __DIR__.'/../protected/vendor/autoload.php';
and
$app = require_once __DIR__.'/../protected/bootstrap/app.php';
Any ideas?
place all the files from your localhost (htdocs) to public_html. Also make sure there is no any redirection in your domain-redirection on your hosting server.
The main reason of the internal server error is that your domain is not pointing the directory which you define.
In my case, the index.php file is
require DIR.'/../vendor/autoload.php';
$app = require_once DIR.'/../bootstrap/app.php';
Do all the changes one by one, this will work in your case hopefully. I have mentioned the reference link below please check
https://laracasts.com/discuss/channels/laravel/laravel-deploying-to-server-using-ftp
Related
I am trying to install SuiteCRM-8.2.1 on a server for a client and everything has run fine but there seems to be a .htaccess file problem
This is the error in the dashboard,profile, admin
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at you#example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
[core:alert] [pid 67661] [client ::1:62740] /Applications/MAMP/htdocs/SuiteCRM/public/legacy/.htaccess: RewriteBase: argument is not a valid URL, referer: http://localhost:8888/SuiteCRM/public/
I am trying to install SuiteCRM on mamp. During the installation above errors encountered.
Pls suggest to me if anyone has a solution
Try updating RewriteBase to /public/legacy
Please also make sure that the site_url on /<your-crm>/public/legacy/config.php is correct. It should be pointing to your legacy path, something like: https://<your-host>/public/legacy
Note: Please note that if your vhost is not directly pointing to /<your-crm>/public and you have SuiteCRM installed on a sub-folder like https://<your-host>/suite-8/public you will need to add something like /suite-8/public/legacy to RewriteBase. And something like https://<your-host>/suite-8/public/legacy to site_url on config.php.
I'm trying to connect the folder public with Laravel but I can't
API is in another folder called Laravel01
I've changed the url on index.php
require __DIR__.'/../laravel01/vendor/autoload.php';
but I can't step back to the root folder
Fatal error: require(): Failed opening required '/homepages/15/d831964969/htdocs/api/../laravel01/vendor/autoload.php' (include_path='.:/usr/lib/php7.4') in /homepages/15/d831964969/htdocs/api/index.php on line 24
it keeps on api folder when it must link with laravel01 folder
sorry for my English and I hope everybody can understand me, thanks a lot
i've deploied my laravel site on my server.
but i got a problem.
First:
my files was in the public_html folder.
I got the 403 forbidden error.
Then:
i tried to move them outside the public_html folder and only put the laravel's public folder contents onto that.
it only show "Nginx is functioning normally".
I get the next message:
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
and the next log: [error] 8949#0: *2449542 access forbidden by rule, client: 13.90.224.16, server: marchethiaroye.com, request: "GET /.env HTTP/1.1", host: "www.marchethiaroye.com"
error log
Please help! It's my first deploiment.
NB: the site is working on local
file configs message i got
Let's assume your laravel project name is 'test'.
And you put 'test' on public_html.
Try open http://IP_ADDR/test/public
I am using TypiCMS Laravel here : github.com/TypiCMS/Base and I am facing the following problem:
I created a new module named "News" by executing command: composer require typicms/news. I also added providers in config/app.php, have publish views and migrations and migrated the database too.
The only problem I am facing is that whenever the url I given, it redirects me to the root directory of my project, that is, http://localhost/mywebsite/public/
Even, if I give invalid route like localhost/mywebsite/public/foobar, instead of showing me error, it again redirects to the root directory.
I have checked the .htaccess and routes.php file and there is not modifications.
Regards:
Adnan
TypiCMS cannot be installed in a subfolder, the root of your site must be http://localhost.
I am trying to install magento 1.9 on my web hosting server .
I ftp-ed the files into my hosted website but experience the following error when i try to access my URL.
Fatal error: Class 'Mage_Core_Controller_Request_Http' not found in /home/bf/public_html/app/code/core/Mage/Core/Model/App.php on line 1238
I tried a google search but i am unable to find anything relevant .
Just download the Fresh copy from Magento community again. Also make sure that your server has all the prerequisite for Magento as mentioned in below link.
http://docs.magento.com/m1/ce/user_guide/magento/system-requirements.html
Please make sure that below files exist in this directory
app/code/core/Mage/Core/Controller/Request/Http.php
1.Make sure you have enabled curl on your server and with have right file permission.
2.Make sure file should exist on following path:
/home/bf/public_html/app/code/core/Mage/Core/Controller/Request/Http.php
3.Make sure compilation mode is disabled.
/home/bf/public_html/includes/config.php
Every thing inside should be commented.
4.If it does not work, you have to debug this.
Open index.php in root and add these line of code,
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
It will show you why error is coming.Once you will find the root cause, you can get the solution on google or any forum.