「apache2」カテゴリーアーカイブ

覚えきれないので書き留めます。サーバー構築覚書

新規サーバーインストールで、あい変わらず同じところでつまづくのでマジな覚書です。

自分以外に参考にはならないでしょうが、稼動まで逐次書き留めます。

1日目 OSインストール

◎VNC設定ファイルの修正 .vnc/xstartup 変更箇所赤字

#!/bin/sh

vncconfig -iconic &

# Uncomment the following two lines for normal desktop:

unset SESSION_MANAGER

unset DBUS_SESSION_BUS_ADDRESS

exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &

twm &

 

◎apacheの設定変更

起動時以下のエラーを吐くので設定変更

[crit] Apache is running a threaded MPM, but your PHP Module is not compiled

to be threadsafe.  You need to recompile PHP. Pre-configuration failed

変更箇所

Apache2をprefork MPMで起動するよう設定する

# /sbin/update-alternatives –config apache2  を実行

選択       コマンド ———————————————–

+ 1           /usr/sbin/apache2.worker

*  2           /usr/sbin/apache2.prefork

Enter を押して現在の選択 [+] を保持するか、選択番号を入力します:

2を選択しpreforkに変更する。その後apache2を起動

◎PostgreSQL