我正试图帮助一个朋友尝试恢复他们大约三年前运行的网站。她通过USB拇指驱动器将恢复的文件提供给我,因此这些文件在原始服务器上 not 不在。我不熟悉第三方代码,我实际上是自己编写所有代码。他们的前任是运行数据库的人(在Xbox上,多么专业!),这样就消失了,显然该软件缺少app/autoload.php
和bootstrap.php.cache
文件。我注释掉了缓存,并通过this thread创建了一个autoload.php
文件。现在example-master/public_html/app.php
不会向客户端返回任何错误,并且我不确定下一步需要做什么?我已经安装了Symfony,但不确定它是否带有它自己的数据库或该数据库是否应该自定义?
以下是它们的composer.json
,并附有三个目录:app
,public_html
和src
:
{
"name": "xbox_000/example_name",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-0": {
"": "src/",
"SymfonyStandard": "app/"
}
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.8.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "2.0@dev",
"oh/google-map-form-type-bundle": "dev-master",
"stripe/stripe-php": "v2.1.2",
"egeloen/google-map-bundle": "2.2.1",
"stfalcon/tinymce-bundle": "2.0.x-dev",
"beberlei/DoctrineExtensions": "1.0.x-dev",
"suncat/mobile-detect-bundle": "v0.10.1",
"oneup/uploader-bundle": "v1.3.1",
"craue/config-bundle": "1.3.1",
"liip/imagine-bundle": "1.3.1",
"ed/blog-bundle": "v1.0.3"
},
"require-dev": {
"sensio/generator-bundle": "~2.3"
},
"scripts": {
"post-root-package-install": [
"SymfonyStandard\\Composer::hookRootPackageInstall"
],
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "public_html",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}