Answer the question
In order to leave comments, you need to log in
How to move a Symfony project from one site to another?
The task is to transfer a site written in Slim to another hosting.
The backup files look like this:
I uploaded all this to the new site in the public_html folder. I gave an error 403. I deleted everything and uploaded only files from the public folder to the public_html folder on the server, and uploaded the rest of the files one level higher (that is, into the folder with the name of the site). The 403 error disappeared, but the 404 error appeared. The structure now looks like this:
the code in the public_html/index.php file:
session_start();
require '../vendor/autoload.php';
require '../src/Application/Bootstrap/dependencies.php';
require '../src/Application/Bootstrap/routes.php';
try {
$application->run();
} catch (\Slim\Exception\MethodNotAllowedException $e) {
} catch (\Slim\Exception\NotFoundException $e) {
} catch (Exception $e) {
}
{
"name": "***",
"require": {
"roave/security-advisories": "dev-master",
"doctrine/orm": "^2.4.8",
"ramsey/uuid-doctrine": "^1.0.0",
"slim/slim": "^3.9",
"symfony/yaml": "^4.0",
"robmorgan/phinx": "^0.9.2",
"slim/twig-view": "^2.3",
"PHPMailer/PHPMailer": "^6.0",
"guzzlehttp/guzzle": "^6.3"
},
"authors": [
{
"name": "***",
"email": "***"
}
],
"autoload": {
"psr-4": {
"ChtoGdePochemApp\\": "src/"
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question