をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#contents
-[[Apache 2.0.52:http://httpd.apache.org/download.cgi]]
-[[PHP 4.3.9:http://www.php.net/downloads.php]]
-[[expat 1.95.5:http://expat.sourceforge.net/]]
-[[gdbm 1.8.3:http://www.gnu.org/software/gdbm/gdbm.html]]
-[[GNU libiconv 1.8:http://www.gnu.org/software/libiconv/]]
wget http://www.meisei-u.ac.jp/mirror/apache/dist/httpd/...
wget http://jp2.php.net/get/php-4.3.9.tar.gz/from/this/m...
gzip -dc httpd-2.0.52.tar.gz | tar xvf -
gzip -dc php-4.3.9.tar.gz | tar xvf -
gzip -dc expat-1.95.5.tar.gz | tar xvf -
gzip -dc gdbm-1.8.3.tar.gz | tar xvf -
gzip -dc libiconv-1.8.tar.gz | tar xvf -
cd expat-1.95.5
./configure
make
su
make install
cd gdbm-1.8.3
./configure
make
su
make install
cd libiconv-1.8
./configure
make
su
make install
cd httpd-2.0.52
./configure
make
su
make install
./configure --with-apach2=../httpd-2.0.52 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-mbstring --enable-mbregex
make
su
make install
ServerName tanuzou.com:80
User nobody
Group "#-1"
User nobody
Group nogroup
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl restart
-Solaris
#!/sbin/sh
APACHE_HOME=/usr/local/apache2
CONF_FILE=/usr/local/apache2/conf/httpd.conf
LD_LIBRARY_PATH=/usr/local/lib:/usr/ccs/lib:/usr/lib
export LD_LIBRARY_PATH
#PIDFILE=/var/run/httpd.pid
PIDFILE=${APACHE_HOME}/logs/httpd.pid
if [ ! -f ${CONF_FILE} ]; then
exit 0
fi
case "$1" in
start)
/bin/rm -f ${PIDFILE}
cmdtext="starting"
;;
restart)
cmdtext="restarting"
;;
stop)
cmdtext="stopping"
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
echo "httpd $cmdtext."
/bin/sh -c "${APACHE_HOME}/bin/apachectl $1" 2>&1 &
status=$?
if [ $? != 0 ]; then
echo "$status"
exit 1
fi
exit 0
cd /etc/rc0.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
cd /etc/rc1.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
cd /etc/rc2.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
cd /etc/rc3.d
mv S50apache _S50apache
ln -s ../init.d/apache S50apache
cd /etc/rcS.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
-Linux
su
cd /etc/init.d
ln -s /usr/local/apache2/bin/apachectl apache
cd /etc/rc0.d
ln -s ../init.d/apache K16apache
cd /etc/rc1.d
ln -s ../init.d/apache K16apache
cd /etc/rc2.d
ln -s ../init.d/apache K16apache
cd /etc/rc3.d
ln -s ../init.d/apache S16apache
cd /etc/rc4.d
ln -s ../init.d/apache S16apache
cd /etc/rc5.d
ln -s ../init.d/apache S16apache
cd /etc/rc6.d
ln -s ../init.d/apache K16apache
cd /etc/rcS.d
ln -s ../init.d/apache K16apache
**mod_rewrite [#bb507733]
AddDefaultCharset shift_jis
~
~
終了行:
#contents
-[[Apache 2.0.52:http://httpd.apache.org/download.cgi]]
-[[PHP 4.3.9:http://www.php.net/downloads.php]]
-[[expat 1.95.5:http://expat.sourceforge.net/]]
-[[gdbm 1.8.3:http://www.gnu.org/software/gdbm/gdbm.html]]
-[[GNU libiconv 1.8:http://www.gnu.org/software/libiconv/]]
wget http://www.meisei-u.ac.jp/mirror/apache/dist/httpd/...
wget http://jp2.php.net/get/php-4.3.9.tar.gz/from/this/m...
gzip -dc httpd-2.0.52.tar.gz | tar xvf -
gzip -dc php-4.3.9.tar.gz | tar xvf -
gzip -dc expat-1.95.5.tar.gz | tar xvf -
gzip -dc gdbm-1.8.3.tar.gz | tar xvf -
gzip -dc libiconv-1.8.tar.gz | tar xvf -
cd expat-1.95.5
./configure
make
su
make install
cd gdbm-1.8.3
./configure
make
su
make install
cd libiconv-1.8
./configure
make
su
make install
cd httpd-2.0.52
./configure
make
su
make install
./configure --with-apach2=../httpd-2.0.52 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-mbstring --enable-mbregex
make
su
make install
ServerName tanuzou.com:80
User nobody
Group "#-1"
User nobody
Group nogroup
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl restart
-Solaris
#!/sbin/sh
APACHE_HOME=/usr/local/apache2
CONF_FILE=/usr/local/apache2/conf/httpd.conf
LD_LIBRARY_PATH=/usr/local/lib:/usr/ccs/lib:/usr/lib
export LD_LIBRARY_PATH
#PIDFILE=/var/run/httpd.pid
PIDFILE=${APACHE_HOME}/logs/httpd.pid
if [ ! -f ${CONF_FILE} ]; then
exit 0
fi
case "$1" in
start)
/bin/rm -f ${PIDFILE}
cmdtext="starting"
;;
restart)
cmdtext="restarting"
;;
stop)
cmdtext="stopping"
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
echo "httpd $cmdtext."
/bin/sh -c "${APACHE_HOME}/bin/apachectl $1" 2>&1 &
status=$?
if [ $? != 0 ]; then
echo "$status"
exit 1
fi
exit 0
cd /etc/rc0.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
cd /etc/rc1.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
cd /etc/rc2.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
cd /etc/rc3.d
mv S50apache _S50apache
ln -s ../init.d/apache S50apache
cd /etc/rcS.d
mv K16apache _K16apache
ln -s ../init.d/apache K16apache
-Linux
su
cd /etc/init.d
ln -s /usr/local/apache2/bin/apachectl apache
cd /etc/rc0.d
ln -s ../init.d/apache K16apache
cd /etc/rc1.d
ln -s ../init.d/apache K16apache
cd /etc/rc2.d
ln -s ../init.d/apache K16apache
cd /etc/rc3.d
ln -s ../init.d/apache S16apache
cd /etc/rc4.d
ln -s ../init.d/apache S16apache
cd /etc/rc5.d
ln -s ../init.d/apache S16apache
cd /etc/rc6.d
ln -s ../init.d/apache K16apache
cd /etc/rcS.d
ln -s ../init.d/apache K16apache
**mod_rewrite [#bb507733]
AddDefaultCharset shift_jis
~
~
ページ名: