Subscribe:

2010/10/04

phpmyadmin インストール(さくらVPSサーバー)




インストール

[root@centos]# svn checkout https://phpmyadmin.svn.sourceforge.net/ ↓続き svnroot/phpmyadmin/tags/RELEASE_2_9_2/phpMyAdmin/ phpmyadmin A phpmyadmin/error.php A phpmyadmin/pdf_schema.php A phpmyadmin/db_printview.php A phpmyadmin/tbl_properties.php A phpmyadmin/tbl_addfield.php ~~~~ 中略 ~~~~ A phpmyadmin/libraries/config.default.php A phpmyadmin/pdf_pages.php U phpmyadmin Checked out revision 13465. [root@centos]# mv phpmyadmin/ /var/www/ ディレクトリ移動 [root@centos]# cp /var/www/phpmyadmin/config.sample.inc.php /var/www/phpmyadmin/config.inc.php ↑設定ファイルコピー [root@centos]# chmod 660 /var/www/phpmyadmin/config.inc.php [root@centos]# yum -y install expect 乱数発生コマンドインストール Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: ftp.nara.wide.ad.jp * base: ftp.nara.wide.ad.jp * extras: ftp.nara.wide.ad.jp * updates: ftp.nara.wide.ad.jp addons | 951 B 00:00 base | 2.1 kB 00:00 extras | 2.1 kB 00:00 updates | 1.9 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package expect.i386 0:5.43.0-5.1 set to be updated --> Processing Dependency: libtcl8.4.so for package: expect ---> Package expect.x86_64 0:5.43.0-5.1 set to be updated --> Running transaction check ---> Package tcl.i386 0:8.4.13-4.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ========================================================================================== Package Arch Version Repository Size ========================================================================================== Installing: expect i386 5.43.0-5.1 base 158 k expect x86_64 5.43.0-5.1 base 160 k Installing for dependencies: tcl i386 8.4.13-4.el5 base 956 k Transaction Summary ========================================================================================== Install 3 Package(s) Upgrade 0 Package(s) Total download size: 1.2 M Downloading Packages: (1/3): expect-5.43.0-5.1.i386.rpm | 158 kB 00:00 (2/3): expect-5.43.0-5.1.x86_64.rpm | 160 kB 00:00 (3/3): tcl-8.4.13-4.el5.i386.rpm | 956 kB 00:00 ------------------------------------------------------------------------------------------ Total 3.8 MB/s | 1.2 MB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : tcl 1/3 Installing : expect 2/3 Installing : expect 3/3 Installed: expect.i386 0:5.43.0-5.1 expect.x86_64 0:5.43.0-5.1 Dependency Installed: tcl.i386 0:8.4.13-4.el5 Complete! [root@centos]# mkpasswd -l 46 46桁の乱数作成 hwvcmjhzfYtwano;flzqb6bqtcogGohakfrz5xytpiagtw [root@centos]# vi /var/www/phpmyadmin/config.inc.php 18行目 $cfg['blowfish_secret'] = '46桁の乱数をここに入れる'; 38行目 $cfg['Servers'][$i]['controluser'] = 'pmausr'; ログインユーザーに書き換える 39行目 $cfg['Servers'][$i]['controlpass'] = 'pmapass'; ログインパスワードに書き換える [root@centos]# chown -R root.apache /var/www/phpmyadmin/ [root@centos]# vi /etc/httpd/conf.d/phpmyadmin.conf Alias /phpmyadmin /var/www/phpmyadmin 追加 [root@centos]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@centos]# http://wwwXXXXu.sakura.ne.jp/phpmyadmin にアクセスし確認

0 件のコメント: