Mainos / Advertisement:

Ero sivun ”Phpmyadmin” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
Rivi 1: Rivi 1:
Phpmyadmin on kätevä sovellus [[mysql]] tietokannan ylläpitäjälle. Asenna ensin [[Apache2]] [[php5]],  mysql [[mysql]] ja [[apache2]]. Lisätietoa: [http://www.phpmyadmin.net/home_page/index.php phpmyadmin]
+
Phpmyadmin on kätevä sovellus [[mysql]] tietokannan ylläpitäjälle. Asenna ensin [[php5]],  mysql [[mysql]] ja [[apache2]]. Lisätietoa: [http://www.phpmyadmin.net/home_page/index.php phpmyadmin]
  
 
  aptitude install phpmyadmin
 
  aptitude install phpmyadmin
Rivi 13: Rivi 13:
  
 
   /etc/apache2/conf.d/phpmyadmin.conf
 
   /etc/apache2/conf.d/phpmyadmin.conf
 +
 +
Tiedoston sisältö:
 +
 +
  # phpMyAdmin default Apache configuration
 +
 
 +
  #Alias /admin /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 /var/lib/phpmyadmin/tmp
 +
  #              php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
 +
  #      </IfModule>
 +
  #
 +
  #</Directory>
 +
  #
 +
  # Authorize for setup
 +
  <Directory /usr/share/phpmyadmin/setup>
 +
    <IfModule mod_authn_file.c>
 +
    AuthType Basic
 +
    AuthName "phpMyAdmin Setup"
 +
    AuthUserFile /etc/phpmyadmin/htpasswd.setup
 +
    </IfModule>
 +
    Require valid-user
 +
  </Directory>
 +
 
 +
  # Disallow web access to directories that don't need it
 +
  <Directory /usr/share/phpmyadmin/libraries>
 +
    Order Deny,Allow
 +
    Deny from All
 +
    </Directory>
 +
  <Directory /usr/share/phpmyadmin/setup/lib>
 +
    Order Deny,Allow
 +
    Deny from All
 +
  </Directory>

Versio 7. kesäkuuta 2014 kello 20.39

Phpmyadmin on kätevä sovellus mysql tietokannan ylläpitäjälle. Asenna ensin php5, mysql mysql ja apache2. Lisätietoa: phpmyadmin

aptitude install phpmyadmin

Pääset verkkokäyttöliittymään hallinnoimaan tietokantaasi

http://palvelimenosoite/phpmyadmin


Apache2

Phpmyadminin apache2 konffit sijaitsevat:

 /etc/apache2/conf.d/phpmyadmin.conf

Tiedoston sisältö:

 # phpMyAdmin default Apache configuration
 
 #Alias /admin /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 /var/lib/phpmyadmin/tmp
 #               php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
 #       </IfModule>
 #
 #</Directory>
 #
 # Authorize for setup
  <Directory /usr/share/phpmyadmin/setup>
   <IfModule mod_authn_file.c>
   AuthType Basic
   AuthName "phpMyAdmin Setup"
   AuthUserFile /etc/phpmyadmin/htpasswd.setup
   </IfModule>
   Require valid-user
 </Directory>
 
 # Disallow web access to directories that don't need it
  <Directory /usr/share/phpmyadmin/libraries>
   Order Deny,Allow
   Deny from All
   </Directory>
  <Directory /usr/share/phpmyadmin/setup/lib>
   Order Deny,Allow
   Deny from All
 </Directory>
Mainos / Advertisement: