Поддержка Проблемы и решения ошибка 500 после переноса сайт на другой хостинг

Просмотр 10 ответов — с 1 по 10 (всего 10)
  • Отключи все плагины и проверь

    Модератор Denis Yanchevskiy

    (@denisco)

    WordPress-разработчик, denisco.pro

    500 — это ошибка сервера. Смотрите лог ошибок сервера error.log. Если не знаете как это сделать, уточните у поддержки хостинга.

    Вот последние несколько ошибок

    [18-May-2016 18:40:16 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads/2016/05) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1602
    [18-May-2016 18:40:16 UTC] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads/2016) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:40:16 UTC] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:40:16 UTC] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:40:16 UTC] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:40:16 UTC] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/home/u651083008) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:40:16 UTC] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:40:16 UTC] PHP Warning:  is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:46:05] PHP Warning:  file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads/2016/05) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1602
    [18-May-2016 18:46:05] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads/2016) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:46:05] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:46:05] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:46:05] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home/u651083008/public_html) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:46:05] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home/u651083008) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:46:05] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    [18-May-2016 18:46:05] PHP Warning:  is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-5.2/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607

    Модератор Yui

    (@fierevere)

    永子

    PHP safe_mode отключите или попросите техподдержку выключить вам

    если откажутся — зря переехали на этот хостинг
    safe_mode — пережиток прошлого, убрано в PHP 5.4
    как вариант на хостинге может быть выбор версии PHP — установите повыше версию

    Модератор Sergey Biryukov

    (@sergeybiryukov)

    Live and Learn

    File(/home/u651083008) is not within the allowed path(s): (/home/u978497606:…)

    Проверьте, не задан ли полный путь к каталогу wp-content/uploads в настройках медиафайлов, а также не хранятся ли ещё где-нибудь в базе старые пути.

    Вот ссылка на сайт, поменял версию PHP до 7.0, и появилась на странице входа такая ошибка

    Warning: file_exists(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads/2016/05) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1602
    
    Warning: is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads/2016) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    
    Warning: is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content/uploads) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    
    Warning: is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html/wp-content) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    
    Warning: is_dir(): open_basedir restriction in effect. File(/home/u651083008/public_html) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    
    Warning: is_dir(): open_basedir restriction in effect. File(/home/u651083008) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    
    Warning: is_dir(): open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    
    Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/u978497606:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u978497606/public_html/wp-includes/functions.php on line 1607
    
    Fatal error: Maximum execution time of 30 seconds exceeded in /home/u978497606/public_html/wp-includes/functions.php on line 1607<code></code>
    Модератор Yui

    (@fierevere)

    永子

    обратите внимание на то, что написал вам Сергей
    где-то у вас абсолютные пути прописаны (wp-config.php например)

    Fatal error: Maximum execution time of 30 seconds exceeded

    можете увеличить максимальное время выполнения скриптов в .htaccess

    php_value max_execution_time 60

    но в принципе и 30 — достаточно , и это не причина проблем, а скорее следствие

    решил да и по совету, техподдержки хостинга, перезагрузить базу даных и сами файлы сайта, не помогло. Теперь выбила ошибка сойденений с базой даных. Подскажите как исправить? поменял кругом имя пользователя в базе даных, еще что то надо поменять? ссылка на сайт Постарайтесь обьяснить как чайнику. Спасибо

    Модератор Yui

    (@fierevere)

    永子

    убедитесь что в wp-config.php правильно указаны реквизиты доступа к БД

    уже все=) спасибо

Просмотр 10 ответов — с 1 по 10 (всего 10)
  • Тема «ошибка 500 после переноса сайт на другой хостинг» закрыта для новых ответов.