Skip to content

Commit 98a76e9

Browse files
author
demlasjr
committed
Added chmod 777 for phpmyadmin tmp folder
Without chmod 777 for /var/lib/phpmyadmin/tmp, uploading a sql database through phpmyadmin generates the next errors: "Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions., PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext) in Unknown on line 0 PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0"
1 parent 76bf903 commit 98a76e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install/vst-install-ubuntu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ wget $CHOST/$VERSION/apache2-pma.conf -O /etc/phpmyadmin/apache.conf
618618
wget $CHOST/$VERSION/pma.conf -O /etc/phpmyadmin/config.inc.php
619619
ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
620620
mv -f /etc/phpmyadmin/config-db.php /etc/phpmyadmin/config-db.php_
621+
chmod 777 /var/lib/phpmyadmin/tmp
621622

622623
# Roundcube configuration
623624
wget $CHOST/$VERSION/apache2-webmail.conf -O /etc/roundcube/apache.conf

0 commit comments

Comments
 (0)