PhpMyAdmin (Русский)

From ArchWiki
Revision as of 20:16, 12 December 2009 by Xlin (talk | contribs) (Инсталяция)
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


Make sure you delete any old version of phpmyadmin.

rm -r /srv/httpd/phpMyAdmin

Copy the example configuration file to your httpd configuration file directory.

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

Add the following line to /etc/httpd/conf/httpd.conf:

Include conf/extra/httpd-phpmyadmin.conf

You can type this into the console to produce the same effect:

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

Comment out (or delete) 'deny form all' in /usr/share/webapps/phpMyAdmin/.htaccess, the line should look like this:

#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

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


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: