Skip to content

phpmyadmin–open_basedir restriction in effect

Open_basedir restriction in effect. File(/usr/share/php/php-php-gettext/gettext.inc) is not within the allowed path(s):

Solution:

open /etc/phpmyadmin/apache.conf

# vim /etc/phpmyadmin/apache.conf

add “/usr/share/php/php-php-gettext/” path in “php_admin_value open_basedir” :

</IfModule>
 25     <IfModule mod_php.c>
 26         <IfModule mod_mime.c>
 27             AddType application/x-httpd-php .php
 28         </IfModule>
 29         <FilesMatch ".+\.php$">
 30             SetHandler application/x-httpd-php
 31         </FilesMatch>
 32 
 33         php_flag magic_quotes_gpc Off
 34         php_flag track_vars On
 35         php_flag register_globals Off
 36         php_admin_flag allow_url_fopen On
 37         php_value include_path .
 38         php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
 39         php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/:/usr/share/php/php-php-gettext/
 40     </IfModule>
 restart apache and check again

Leave a Reply

Your email address will not be published. Required fields are marked *