昨年度の卒研でまとめた資料です。 バージョンが古いので参考程度にとどめてください。 なお、ディストリビュージョンに含まれるパッケージは予め削除する必要があります。 httpd †
/usr/local/apache2/bin/apachectl start を追加 vi /usr/local/apache2/conf/httpd.conf ServerAdmin you@example.com -> 変更 ServerAdmin hamada@nbu.ac.jp ServerName www.example.com:80 -> 変更 ServerName xxx.xxxxx.xx.xx:80
MySQL †groupadd mysql SET PASSWORD FOR root@localhost=PASSWORD('xxxxxxx'); GRANT ALL PRIVILEGES ON xoopsdb.* TO xoops@localhost IDENTIFIED BY 'xxxxxxx'; create database xoopsdb; \q cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/ 再起動後 service mysql.server start
PostgreSQL †useradd postgres #!/bin/sh # # PostgreSQL start and shutdown script # # chkconfig: 345 90 11 # description: PostgreSQL start and shutdown script . /etc/init.d/functions case "$1" in start) runuser - postgres -c "pg_ctl -o \"-S -i\" start" touch /var/lock/subsys/postgres ;; stop) runuser - postgres -c "pg_ctl -m Fast stop" rm -f /var/lock/subsys/postgres ;; *) echo "Usage: /etc/rc.d/init.d/postgres {start|stop}" esac exit 0 chmod 755 /etc/rc.d/init.d/postgres su - postgres export POSTGRES_HOME=/usr/local/pgsql export PGLIB=$POSTGRES_HOME/lib export PGDATA=$POSTGRES_HOME/data export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGLIB PATH=$PATH:$POSTGRES_HOME/bin source ~/.bashrc php (with mysql&postgresql) †
環境に応じて変えてください。 mysql + postgresql ./configure --enable-mbstr-enc-trans --enable-track-vars --enable-trans-sid --with-apxs2=/usr/local/apache2/bin/apxs --enable-ftp --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql mysqlのみ ./configure --enable-mbstr-enc-trans --enable-track-vars --enable-trans-sid --with-apxs2=/usr/local/apache2/bin/apxs --enable-ftp --with-mysql=/usr/local/mysql postgresqlのみ ./configure --enable-mbstr-enc-trans --enable-track-vars --enable-trans-sid --with-apxs2=/usr/local/apache2/bin/apxs --enable-ftp --with-pgsql=/usr/local/pgsql make AddType application/x-httpd-php .php ->追加 LoadModule php4_module modules/libphp4.so ->追加 DirectoryIndex index.html index.html.var ->変更 DirectoryIndex index.php index.html index.html.var
xoops †
webブラウザでインストール作業を継続 その後、 cd /usr/local/apache2/htdocs/xoops/ mv install install_org chmod 644 mainfile.php ユーザ毎に作成する場合 su - xxxxx wget http://qgpop.dl.sourceforge.jp/xoops/20474/xoops-2.0.15-JP.tar.gz tar zxvf xoops-2.0.15-JP.tar.gz %%mv xoops-2.0.15-JP/html /usr/local/apache2/htdocs/xoops%% mv xoops-2.0.15-JP/html/ ./public_html chmod 701 . chmod 701 public_html chmod 777 public_html/uploads public_html/cache public_html/templates_c chmod 666 public_html/mainfile.php webブラウザでインストール作業を継続の後、 mv install install_org chmod 644 mainfile.php
pukiwiki †wget http://prdownloads.sourceforge.jp/pukiwiki/12957/pukiwiki-1.4.7.tar.gz
chmod 755 . ~ chmod 644 *.gif *.png *.php *.lng ~ chmod 777 ./attach ./backup ./counter ./diff ./wiki ./cache ~ chmod 755 ./face ./image ./plugin ./skin ~ chmod 666 ./wiki/*.txt chmod 666 ./cache/* chmod 666 ./cache/*.* chmod 644 ./face/*.png chmod 644 ./image/*.png chmod 644 ./image/*.gif chmod 644 ./plugin/*.php chmod 644 ./skin/*.php chmod 644 ./skin/*.css rm COPYING.txt rm UPDATING.txt rm README.txt VMWareのインストール用空イメージ †添付のzipファイルを展開して使用してください。 |