четверг, 15 декабря 2011 г.

Ошибка при установке сайта - белый лист, или You don't have permission to access /locahost/install.php on this server.

Блок кода0
Бриф
Выводы, резюме
....
openpub_6.users check warning Found row where the auto_increment column has the value 0
openpub_6.users check status OK
....
Problems with indexes of table `workflows`
The following indexes appear to be equal and one of them should be removed: name, op_workflows_name

Problems with indexes of table `workflow_type_map`
The following indexes appear to be equal and one of them should be removed: PRIMARY, node_type

Основной текст поста2
feedURL

2 комментария:

  1. Файл помощи из дистрибутива Drupal_6 (OpenPublish)
    // $Id: INSTALL.mysql.txt,v 1.10 2007/11/19 19:53:51 goba Exp $

    CREATE THE MySQL DATABASE
    --------------------------

    This step is only necessary if you don't already have a database set-up (e.g. by
    your host). In the following examples, 'username' is an example MySQL user which
    has the CREATE and GRANT privileges. Use the appropriate user name for your
    system.

    First, you must create a new database for your Drupal site (here, 'databasename'
    is the name of the new database):

    mysqladmin -u username -p create databasename

    MySQL will prompt for the 'username' database password and then create the
    initial database files. Next you must login and set the access database rights:

    mysql -u username -p

    Again, you will be asked for the 'username' database password. At the MySQL
    prompt, enter following command:

    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER
    ON databasename.*
    TO 'username'@'localhost' IDENTIFIED BY 'password';

    where

    'databasename' is the name of your database
    'username@localhost' is the username of your MySQL account
    'password' is the password required for that username

    Note: Unless your database user has all of the privileges listed above, you will
    not be able to run Drupal.

    If successful, MySQL will reply with:

    Query OK, 0 rows affected

    ОтветитьУдалить
  2. Гадать нельзя, надо точно знать, почему появляется "белый лист".
    Потому, идем в файл /etc/php.ini и обнаруживаем, что лог-файлы не существует , потому проделываем следующие операции в файле:
    1. Включаем отображение обшибок на страницах браузера
    display_errors = On
    Однако, не надо забывать, что
    ; Even when display_errors is on, errors that occur during PHP's startup
    ; sequence are not displayed. It's strongly recommended to keep
    ; display_startup_errors off, except for when debugging.
    Так что, потом надо будет надо будет включить и
    display_startup_errors = Off, но пока пробуем самы простой вариант.
    Перезапускаем apache httpd -k restart
    2. Теперь видим сообщение
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /var/www/html/tattler/includes/locale.inc on line 1814
    PHP просто не хватает оперативной памяти, потому первым делом
    3. Меняем в разделе "Resource Limits" директиву ( с 32М по умолчанию на 128M) теперь она выглядит так
    memory_limit = 128M ; Maximum amount of memory a script may consume (16MB)
    4. Перегружаем страницу в браузере... Все работает. А начиналось с белого экрана, а потом была ошибка

    ОтветитьУдалить