Bardzo proszę o pomoc w rozwiązaniu problemu. Sklep wczoraj działał, a dziś rano już nie działa. Przy plikach nic nie było majstrowane, a od strony serwera jest wszystko ok, bo admin to sprawdził.
Error logi wskazują brak dostępu do /home/mojastrona/domains/mojastrona.eu/public_html/config/bootstrap.php:
Cytat
[Fri Nov 02 08:33:10.340186 2018] [proxy_fcgi:error] [pid 21822:tid 139964217800448] [client 188.116.12.92:52585] AH01071: Got error 'PHP message: PHP Warning: require_once(/home/mojastrona/domains/mojastrona.eu/public_html/var/cache/prod/appParameters.php): failed to open stream: Permission denied in /home/mojastrona/domains/mojastrona.eu/public_html/config/bootstrap.php on line 86\nPHP message: PHP Fatal error: require_once(): Failed opening required '/home/mojastrona/domains/mojastrona.eu/public_html/var/cache/prod/appParameters.php' (include_path='/home/mojastrona/domains/mojastrona.eu/public_html/vendor/pear/pear_exception:/home/mojastrona/domains/mojastrona.eu/public_html/vendor/pear/console_getopt:/home/mojastrona/domains/mojastrona.eu/public_html/vendor/pear/pear-core-minimal/src:/home/mojastrona/domains/mojastrona.eu/public_html/vendor/pear/archive_tar:.:/usr/local/php70/lib/php') in /home/mojastrona/domains/mojastrona.eu/public_html/config/bootstrap.php on line 86\n'
Plik bootstrap.php wygląda tak
Cytat
<?php
/**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
use PrestaShop\PrestaShop\Adapter\ServiceLocator;
use PrestaShop\PrestaShop\Core\ContainerBuilder;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Filesystem\Exception\IOException;
$container_builder = new ContainerBuilder();
$container = $container_builder->build();
ServiceLocator::setServiceContainerInstance($container);
if (!file_exists(_PS_CACHE_DIR_)) {
@mkdir(_PS_CACHE_DIR_);
$warmer = new CacheWarmerAggregate([
new PrestaShopBundle\Cache\LocalizationWarmer(_PS_VERSION_, 'en') //@replace hard-coded Lang
]);
$warmer->warmUp(_PS_CACHE_DIR_);
}
// Bootstrap an application with parameters.yml, which has been installed before PHP parameters file support
if (!file_exists($phpParametersFilepath) && file_exists($yamlParametersFilepath)) {
$parameters = Yaml::parse($yamlParametersFilepath);
if ($exportPhpConfigFile($parameters, $phpParametersFilepath)) {
$filesystem->dumpFile($yamlParametersFilepath, 'parameters:' . "\n");
}
}
// Legacy cookie
if (array_key_exists('cookie_key', $config['parameters'])) {
define('_COOKIE_KEY_', $config['parameters']['cookie_key']);
} else {
// Define cookie key if missing to prevent failure in composer post-install script
define('_COOKIE_KEY_', Tools::passwdGen(56));
}
if (array_key_exists('cookie_iv', $config['parameters'])) {
define('_COOKIE_IV_', $config['parameters']['cookie_iv']);
} else {
// Define cookie IV if missing to prevent failure in composer post-install script
define('_COOKIE_IV_', Tools::passwdGen(8));
}
// New cookie
if (array_key_exists('new_cookie_key', $config['parameters'])) {
define('_NEW_COOKIE_KEY_', $config['parameters']['new_cookie_key']);
} else {
// Define cookie key if missing to prevent failure in composer post-install script
$key = PhpEncryption::createNewRandomKey();
define('_NEW_COOKIE_KEY_', $key);
}
Question
you2stee
Witam
Bardzo proszę o pomoc w rozwiązaniu problemu. Sklep wczoraj działał, a dziś rano już nie działa. Przy plikach nic nie było majstrowane, a od strony serwera jest wszystko ok, bo admin to sprawdził.
Error logi wskazują brak dostępu do /home/mojastrona/domains/mojastrona.eu/public_html/config/bootstrap.php:
Plik bootstrap.php wygląda tak
Bardzo proszę o pomoc co mogło się posypać i jak to naprawić ?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now