カテゴリ:みんなでつくる京都のWEB企画
XOOPS、MySQL, Apache, PHP
MySQL $ cd $ wget http://downloads.mysql.com/archives/mysql-3.23/mysql-3.23.58.tar.gz $ tar zxvf mysql-3.23.58.tar.gz $ cd mysql-3.23.58 $ ./configure --with-extra-charset=all --with-charset=ujis --prefix=/usr/local/mysql $ make $ su root -c "make install" *MySQL user IDENTIFICATION $ su - # useradd -d /usr/local/mysql -s /bin/false mysql *MySQL initialize aunerrize gorooping # /usr/local/mysql/bin/mysql_install_db --user=mysql # chown -R mysql.mysql /usr/local/mysql/var *MySQL start # /usr/local/mysql/bin/safe_mysqld --user=mysql & *root PASS inpriment # /usr/local/mysql/bin/mysqladmin -u root password 'ROOT_PASSWORD' *create DB $ /usr/local/mysql/bin/mysql --password Enter password:ROOT_PASSWORD Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 11 to server version: 3.23.58 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database DBNAME; Query OK, 1 row affected (0.00 sec) XOOPS MySQL user dimension mysql> grant all privileges on NEWDB.* to USER@localhost identified by 'USER_PASSWORD'; Query OK, 0 rows affected (0.00 sec) mysql> \q Bye *install APACHE $ wget http://sunsite.tus.ac.jp/pub/apache/httpd/apache_1.3.33.tar $ tar zxvf apache_1.3.33.tar.gz $ cd apache_1.3.33 $ ./configure --enable-module=so --enable-rule=SHARED_CORE --enable-shared=rewrite $ make $ su root -c "make install" $ cd $ wget http://www.php.net/get/php-4.3.10.tar.gz/from/a/mirror *CONPILE AND INSTAALL $ tar zxvf php-4.3.10.tar.gz $ cd php-4.3.10 $ ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --enable-mbstring $ make $ su root -c "make install" $ su # cp php.ini-dist /usr/local/lib/php.ini *CONECTUING APACHE TO PHP # vi /usr/local/apache/conf/httpd.conf *ADD THOSE LINES # # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # ##(IfModule mod_dir.c) DirectoryIndex index.html index.php ←追加 ##(/IfModule) # # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # AddType application/x-tar .tgz AddType application/x-httpd-php php ←ADD *XOOPS INSTALL $ cd $ wget http://kyushu-u.dl.sourceforge.jp/xoops/12760/xoops-2.0.9.2-ja-eucjp.tar.gz XOOPS DEFREAZE TO COPY ACCESSIBLE DIRC BY Apache CAN ACCESS $ tar zxvf xoops-2.0.9.2-ja-eucjp.tar.gz $ cd xoops-2.0.9.2-ja-eucjp $ su # cp -r html /usr/local/apache/htdocs/xoops # cp -r docs /usr/local/apache/htdocs/ # chown -R nobody.nobody /usr/local/apache/htdocs/xoops/uploads # chown -R nobody.nobody /usr/local/apache/htdocs/xoops/cache # chown -R nobody.nobody /usr/local/apache/htdocs/xoops/templates_c # chown nobody.nobody /usr/local/apache/htdocs/xoops/mainfile.php *INPUT ROOT PASS *AUTO RESTART REBOOT SQL # echo "/usr/local/mysql/bin/safe_mysqld --user=mysql &" >> /etc/rc.local *REBOOT APACHE # /usr/local/apache/bin/apachectl start SET APACHIE AUTOSTART WITH REBOOTIONG # echo "/usr/local/apache/bin/apachectl start" >> /etc/rc.local *END OF THIS DOCUMENTS お気に入りの記事を「いいね!」で応援しよう
[みんなでつくる京都のWEB企画] カテゴリの最新記事
|
|