Phpmyadmint hogyan engedhetem ki az internetre?
xampp (lampp) -ot használok, azon belül virtualhostot, most így néz ki:
<VirtualHost *:8001>
DocumentRoot "/opt/lampp/phpmyadmin"
ServerName phpmyadmin
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Require all granted
Allow from all
</Directory>
</VirtualHost>
erre a válasz:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
Error 403
Apache -nál:
/etc/apache2/ports.conf -ban új sorba: Listen 8010
<VirtualHost *:8001>
ServerAdmin phpmyadmin@localhost
DocumentRoot /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/tmp/
</IfModule>
</Directory>
</VirtualHost>
Nálam még /etc/hosts -ba fel van véve:
127.0.1.1 phpmyadmin myadmin mysql phpmysql
Illetve van egy ilyen VirtulHost -om:
<VirtualHost *:8080>
ServerAdmin phpmyadmin@localhost
DocumentRoot /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/tmp/
</IfModule>
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName phpmyadmin
ServerAdmin phpmyadmin@localhost
ServerAlias phpmyadmin myadmin mysql phpmysql
DocumentRoot /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext:/tmp/
</IfModule>
</Directory>
</VirtualHost>
Kapcsolódó kérdések:
Minden jog fenntartva © 2024, www.gyakorikerdesek.hu
GYIK | Szabályzat | Jogi nyilatkozat | Adatvédelem | Cookie beállítások | WebMinute Kft. | Facebook | Kapcsolat: info(kukac)gyakorikerdesek.hu
Ha kifogással szeretne élni valamely tartalommal kapcsolatban, kérjük jelezze e-mailes elérhetőségünkön!