PhpMyAdmin (Русский)

From ArchWiki
Revision as of 20:23, 12 December 2009 by Xlin (Talk | contribs) (Configuration)

Jump to: navigation, search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end

Перед установкой

Для начала прочитайте LAMP wiki, где детально расписана установка apache, php and mysql.

Инсталяция

Для инсталяции phpMyAdmin наберите в консоле.

pacman -S phpmyadmin php-mcrypt

Конфигурация

Первым делом нужно удалить старую папку phpmyadmin

rm -r /srv/httpd/phpMyAdmin

Скопируем пример конфигурационного файла в папку с настройками для httpd сервера

cp /etc/webapps/phpmyadmin/apache.example.conf /etc/httpd/conf/extra/httpd-phpmyadmin.conf

И впишем следующую строчку в /etc/httpd/conf/httpd.conf:

Include conf/extra/httpd-phpmyadmin.conf

Можно это сделать и в консоли, получится тот же самый эффект:

echo -e "\nInclude conf/extra/httpd-phpmyadmin.conf" >> /etc/httpd/conf/httpd.conf

Закоментируем или удалим 'deny form all' в /usr/share/webapps/phpMyAdmin/.htaccess:

#deny from all

Otherwise you will get "Error 403 - Access forbidden!" when you try to access your phpmyadmin installation.

Your '/etc/httpd/conf/extra/httpd-phpmyadmin.conf' should have the following information:

Alias /phpmyadmin/ "/usr/share/webapps/phpMyAdmin/"
        <Directory "/usr/share/webapps/phpMyAdmin">
                AllowOverride All
                Options FollowSymlinks
                Order allow,deny
                Allow from all
        </Directory>

Open your '/etc/php/php.ini' and edit the line containing 'open_basedir' so it has the following:

:/usr/share/webapps/:/etc/webapps

For example, mine contains the following:

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/srv/:/usr/share/webapps/:/etc/webapps

You need the mcrypt module, so uncomment in Template:Filename:

 ;extension=mcrypt.so
to
 extension=mcrypt.so