0% found this document useful (0 votes)
3K views16 pages

Archlinux 之 之 之 之 Lmap 攻 略 ( 攻 略 ( 攻 略 ( 攻 略 ( 1 、 环 境 准 备 ) 、 环 境 准 备 ) 、 环 境 准 备 ) 、 环 境 准 备 )

This document provides instructions for installing and configuring phpMyAdmin on an ArchLinux system. It describes extracting the phpMyAdmin files, copying the configuration file, and configuring Apache to host phpMyAdmin at the designated directory. MySQL is started as a daemon and Apache is restarted to complete the phpMyAdmin installation.

Uploaded by

Goh Ka Wee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views16 pages

Archlinux 之 之 之 之 Lmap 攻 略 ( 攻 略 ( 攻 略 ( 攻 略 ( 1 、 环 境 准 备 ) 、 环 境 准 备 ) 、 环 境 准 备 ) 、 环 境 准 备 )

This document provides instructions for installing and configuring phpMyAdmin on an ArchLinux system. It describes extracting the phpMyAdmin files, copying the configuration file, and configuring Apache to host phpMyAdmin at the designated directory. MySQL is started as a daemon and Apache is restarted to complete the phpMyAdmin installation.

Uploaded by

Goh Ka Wee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

ArchLinux

No t e b o o k: Cre at e d : URL:

LMAP
2012/2/27 10:13 Up d at e d : http://www .linuxsight.com/blog/258 2012/2/27 10:15

ArchLinux
ArchLinux LMAP 1

LMAP

SourceURL: http://www.linuxsight.com/blog/258

ArchLinux ArchLinux ArchLinux ArchLinux ArchLinux Linux Ubuntu

mysql apache php

http://fantlam.blogbus.com/logs/19306575.html http://fantlam.blogbus.com/logs/19353117.html

httpd-2.2.14.tar.gz mysql-5.1.40.tar.gz php-5.3.0.tar.gz Discuz_7.1_SC_GBK.zip putty Filezilla ArchLinux Linux ArchLinux openssh SSH Oracle LMAP Discuz putty Filezilla #pacman -S openssh ArchLinux

/etc/rc.conf DAEMONS=(syslog-ng network netfs crond gdm alsa sshd)

openssh /etc/hosts.allow #/etc/rc.d/sshd restart IP 192.168.1.106. putty Filezilla openssh

Linux /home make

/home

No space left on device

putty

ArchLinux
ArchLinux LMAP MySQL 2

LMAP
mysql

mysql

SourceURL: http://www.linuxsight.com/blog/259

[root@fantlam fantlam]# tar -xzvf mysql-5.1.40.tar.gz [root@fantlam mysql-5.1.40]# vi INSTALL-SOURCE

mysql

mysql

[root@fantlam mysql-5.1.40]# groupadd mysql [root@fantlam mysql-5.1.40]# useradd -g mysql mysql [root@fantlam mysql-5.1.40]# vi /etc/group

mysql

[root@fantlam mysql-5.1.40]# passwd mysql UNIX UNIX passwd linux [root@fantlam mysql-5.1.40]# ./configure prefix=/usr/local/mysql [root@fantlam mysql-5.1.40]# make [root@fantlam mysql-5.1.40]# make install user/local/ mysql

[root@fantlam mysql-5.1.40]# cp support-files/my-medium.cnf /etc/my.cnf [root@fantlam mysql-5.1.40]# cd /usr/local/mysql [root@fantlam mysql]# ls -l 20 drwxr-xr-x 2 root root 4096 11-17 10:36 bin drwxr-xr-x 2 root root 4096 11-17 10:36 docs drwxr-xr-x 3 root root 4096 11-17 10:36 include drwxr-xr-x 3 root root 4096 11-17 10:36 lib drwxr-xr-x 3 root root 4096 11-17 10:36 share [root@fantlam mysql]# chown -R mysql:mysql . [root@fantlam mysql]# ls -l 20 drwxr-xr-x 2 mysql mysql 4096 11-17 10:36 bin drwxr-xr-x 2 mysql mysql 4096 11-17 10:36 docs drwxr-xr-x 3 mysql mysql 4096 11-17 10:36 include drwxr-xr-x 3 mysql mysql 4096 11-17 10:36 lib drwxr-xr-x 3 mysql mysql 4096 11-17 10:36 share

[root@fantlam mysql]# bin/mysql_install_db user=mysql

Installing MySQL system tables OK Filling help tables OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/local/mysql/bin/mysqladmin -u root password new-password /usr/local/mysql/bin/mysqladmin -u root -h fantlam password new-password Alternatively you can run: /usr/local/mysql/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd /usr/local/mysql/mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/local/mysql/bin/mysqlbug script! The latest information about MySQL is available at http://www.mysql.com/ Support MySQL by buying support/licenses from http://shop.mysql.com/ [root@fantlam mysql]# chown -R root . [root@fantlam mysql]# chown -R mysql var mysql [root@fantlam mysql]# bin/mysqld_safe user=mysql & & [1] 30793 [root@fantlam mysql]# 091117 12:17:55 mysqld_safe Logging to /usr/local/mysql/var/fantlam.err. 091117 12:17:55 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var

ArchLinux PHP

LMAP

Apache

SourceURL: http://www.linuxsight.com/blog/261 ArchLinux LMAP 3 Apache PHP 2009 11 18 ArchLinux, Linux 1 Apache 2 PHP

848

[root@fantlam fantlam]# tar -xzvf httpd-2.2.14.tar.gz [root@fantlam php-5.3.0]# tar -xzvf php-5.3.0.tar.gz PHP [root@fantlam php-5.3.0]# vi INSTALL

Apache

php

[root@fantlam httpd-2.2.14]# ./configure enable-so prefix=/usr/local/www [root@fantlam httpd-2.2.14]# make [root@fantlam httpd-2.2.14]# make install

PHP [root@fantlam php-5.3.0]#./configure with-apxs2=/usr/local/www/bin/apxs withmysql=/usr/local/mysql [root@fantlam php-5.3.0]# make [root@fantlam php-5.3.0]# make install modules

php

php.ini-dist

[root@fantlam php-5.3.0]# cp php.ini-development /usr/local/lib/php.ini

Apache [root@fantlam conf]# vi httpd.conf

AddType application/x-httpd-php .php .phtml

Apache [root@fantlam /]# /usr/local/www/bin/apachectl start php <?php phpinfo(); ?> ArchLinux

ArchLinux

LMAP

4
814

discuz7.1

SourceURL: http://www.linuxsight.com/blog/262 ArchLinux LMAP 4 discuz7.1 2009 11 19 ArchLinux, Linux discuz discuz UCenter

Apache [root@fantlam /]# /usr/local/www/bin/apachectl start mysql [root@fantlam htdocs]# /usr/local/mysql/bin/mysqld_safe user=mysql &

mysql [root@fantlam fantlam]# /usr/local/mysql/bin/mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.40-log Source distribution Type help; or \h for help. Type \c to clear the current input statement. mysql> create database discuz mysql> show databases; ++ | Database | ++ | information_schema | | discuz7 | | mysql | | test | ++ 4 rows in set (0.00 sec) mysql> grant all privileges on *.* to fantlam@'localhost -> identified by fantlam with grant option; Query OK, 0 rows affected (0.00 sec)

discuz [root@fantlam discuz7]# unzip -bash: unzip: command not found pacman unzip

unzip

[root@fantlam fantlam]# tar -xzvf unzip552.tar.gz [root@fantlam fantlam]# cd unzip-5.52/ [root@fantlam unzip-5.52]# cp unix/Makefile . [root@fantlam unzip-5.52]# make generic [root@fantlam unzip-5.52]# make install [root@fantlam unzip-5.52]# ln -sv /usr/local/bin/unzip /usr/bin/ [root@fantlam fantlam]#mkdir discuz7 [root@fantlam fantlam]#cd discuz7 [root@fantlam discuz7]# unzip ../Discuz_7.1_FULL_SC_UTF8.zip [root@fantlam discuz7]# ls readme upload utilities [root@fantlam discuz7]# cd /usr/local/www/htdocs/ [root@fantlam htdocs]# ls fantlam.php index.html [root@fantlam htdocs]# cp -R /fantlam/discuz7/upload/ . [root@fantlam htdocs]# ls fantlam.php index.html upload [root@fantlam htdocs]# mv upload/ bbs [root@fantlam htdocs]# ls bbs fantlam.php index.html [root@fantlam htdocs]# cd bbs [root@fantlam bbs]# ls

admin forumstat.php misc.php seccode.php admincp.php frame.php modcp sitemap.php ajax.php image.php modcp.php space.php announcement.php images my.php stats.php api include notice.php tag.php archiver index.php plugin.php task.php attachment.php install plugins templates attachments invite.php pm.php topic.php config.inc.php ipdata post.php topicadmin.php crossdomain.xml leftmenu.php redirect.php trade.php discuz_version.php logging.php register.php uc_client eccredit.php magic.php relatekw.php uc_server faq.php manyou relatethread.php userapp.php favicon.ico medal.php robots.txt viewthread.php forumdata member.php rss.php wap forumdisplay.php memcp.php search.php [root@fantlam bbs]# vi config.inc.php

[root@fantlam bbs]# vi /usr/local/lib/php.ini [root@fantlam bbs]# /usr/local/www/bin/apachectl restart Apache

[root@fantlam bbs]# chmod -R 777 attachments/ [root@fantlam bbs]# chmod -R 777 forumdata/ [root@fantlam bbs]# chmod -R 777 uc_client/ [root@fantlam bbs]# chmod -R 777 config.inc.php

discuz

ArchLinux LMAP

php

windows

ArchLinux LMAP phpMyadmin


SourceURL: http://www.linuxsight.com/blog/263 ArchLinux LMAP 5 phpMyadmin 2009 11 23 ArchLinux, Linux phpMyadmin

827

[root@fantlam fantlam]# tar -xzvf phpMyAdmin-3.2.3-all-languages.tar.gz [root@fantlam phpMyAdmin-3.2.3-all-languages]# cp libraries/config.default.php config.inc.php [root@fantlam phpMyAdmin-3.2.3-all-languages]# vi config.inc.php Apache [root@fantlam htdocs]# cp -R /fantlam/phpMyAdmin-3.2.3-all-languages/ . [root@fantlam htdocs]# mv phpMyAdmin-3.2.3-all-languages/ phpMyadmin [root@fantlam htdocs]# ls bbs phpMyadmin readme utilities Apache [root@fantlam /]# /usr/local/www/bin/apachectl start mysql [root@fantlam htdocs]# /usr/local/mysql/bin/mysqld_safe user=mysql & mysql

ArchLinux LMAP

You might also like