EGroupWare
From M1Research
(Difference between revisions)
(→apache) |
(→apache) |
||
Line 79: | Line 79: | ||
===apache=== | ===apache=== | ||
- | Download apache sources from [http://httpd.apache.org/ http://httpd.apache.org/]. Unpack, configure:<pre>./configure \ | + | Download apache sources from [http://httpd.apache.org/ http://httpd.apache.org/]. |
+ | |||
+ | Unpack, configure:<pre>./configure \ | ||
--enable-deflate \ | --enable-deflate \ | ||
--prefix=/usr/local/web/apache2 \ | --prefix=/usr/local/web/apache2 \ | ||
Line 90: | Line 92: | ||
--with-ssl \ | --with-ssl \ | ||
--enable-ssl</pre> Make and make install:<pre>make ; make install</pre> | --enable-ssl</pre> Make and make install:<pre>make ; make install</pre> | ||
+ | Add approriate system user <b>apache2</b> for apache deamon. | ||
+ | <code>/etc/passwd</code>:<pre>[...] | ||
+ | apache2:x:97:97:Apache:/usr/local/web/apache2:/sbin/nologin | ||
+ | [...]</pre> | ||
+ | <code>/etc/shadow</code>:<pre>[...] | ||
+ | apache2:*:12764:0:99999:7::: | ||
+ | [...]</pre> | ||
+ | <code>/etc/group</code>:<pre>[...] | ||
+ | apache2:x:97: | ||
+ | [...]</pre> | ||
====mod_prel==== | ====mod_prel==== |
Revision as of 15:32, 4 January 2008
Contents |
WEB server setup from scratch
We assume that all compiled software from sources will installed in /usr/local/web/<PRODUCT>
.
mysql
Download mysql source from http://dev.mysql.com/downloads/mysql/5.0.html. Unpack and configure:
./configure \ --prefix=/usr/local/web/mysql5 \ --with-mysqld-user=mysql5 \ --with-extra-charsets=all \ --with-big-table \ --with-openssl
If configure exit successfully build it and install:
make ; make installConfigure executables path.
.bash_profile
:[...] PATH=$PATH:$HOME/bin:/usr/local/web/mysql5/bin [...]Configure libraries path.
/etc/ld.so.conf
[...] /usr/local/web/mysql5/lib [...]and update lib paths:
ldconfig
Add approriate system user mysql5 for mysql deamon.
/etc/passwd
:[...] mysql5:x:98:98:Mysql:/usr/local/web/mysql5:/sbin/nologin [...]
/etc/shadow
:[...] mysql5:*:12764:0:99999:7::: [...]
/etc/group
:[...] mysql5:x:98: [...]Install initial database:
/usr/local/web/mysql5/bin/mysql_install_dbChange mysql binaries and data ownerships:
chown -R mysql5.mysql5 /usr/local/web/mysql5Create symlink to start script:
ln -s /usr/local/web/mysql5/share/mysql/mysql.server /etc/rc.d/init.d/mysql5Start mysql5 service:
service mysql5 startSetup root's password
/usr/local/web/mysql5/bin/mysqladmin -u root password 'new-root-password'Try to login to check if everything is OK:
[root@kazbek mysql5]# /usr/local/web/mysql5/bin/mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 5.0.51 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | +--------------------+ 3 rows in set (0.00 sec) mysql>
apache
Download apache sources from http://httpd.apache.org/.
Unpack, configure:./configure \ --enable-deflate \ --prefix=/usr/local/web/apache2 \ --enable-so \ --enable-modules=all \ --enable-mods-shared=all \ --enable-suexec \ --with-suexec-caller=apache2 \ --with-suexec-docroot=/var/web \ --with-ssl \ --enable-sslMake and make install:
make ; make install
Add approriate system user apache2 for apache deamon.
/etc/passwd
:[...] apache2:x:97:97:Apache:/usr/local/web/apache2:/sbin/nologin [...]
/etc/shadow
:[...] apache2:*:12764:0:99999:7::: [...]
/etc/group
:[...] apache2:x:97: [...]