EGroupWare

From M1Research

(Difference between revisions)
Jump to: navigation, search
(WEB server setup from scratch)
Line 1: Line 1:
==WEB server setup from scratch==
==WEB server setup from scratch==
 +
 +
We assume that all compiled software from sources will installed in <code>/usr/local/web/<PRODUCT></code>.
===mysql===
===mysql===
 +
 +
Download <b>mysql</b> source from [http://dev.mysql.com/downloads/mysql/5.0.html http://dev.mysql.com/downloads/mysql/5.0.html]. Unpack and configure:
 +
<pre>
 +
./configure \
 +
--prefix=/usr/local/web/mysql5 \
 +
--with-mysqld-user=mysql5 \
 +
--with-extra-charsets=all \
 +
--with-big-table \
 +
--with-openssl
 +
</pre>
 +
 +
If configure exit successfully build it and install:
 +
 +
<pre>
 +
make ; make install
 +
</pre>
 +
 +
Configure executables path. <code>.bash_profile</code>:<pre>[...]
 +
PATH=$PATH:$HOME/bin:/usr/local/web/mysql5/bin
 +
[...]</pre>
 +
 +
Configure libraries path. <code>/etc/ld.so.conf</code><pre>[...]
 +
/usr/local/web/mysql5/lib
 +
[...]</pre> and update lib paths:<pre>
 +
ldconfig</pre>
 +
 +
Add approriate system user <b>mysql5</b> for mysql deamon.
 +
<code>/etc/passwd</code>:<pre>[...]
 +
mysql5:x:98:98:Mysql:/usr/local/web/mysql5:/sbin/nologin
 +
[...]</pre>
 +
<code>/etc/shadow</code>:<pre>[...]
 +
mysql5:*:12764:0:99999:7:::
 +
[...]</pre>
 +
<code>/etc/group</code>:<pre>[...]
 +
mysql5:x:98:
 +
[...]</pre>
 +
 +
Install initial database:<pre>
 +
/usr/local/web/mysql5/bin/mysql_install_db</pre>
 +
 +
Change mysql binaries and data ownerships:<pre>
 +
chown -R mysql5.mysql5 /usr/local/web/mysql5</pre>
 +
 +
Create symlink to start script:<pre>
 +
ln -s /usr/local/web/mysql5/share/mysql/mysql.server /etc/rc.d/init.d/mysql5
 +
</pre>
 +
 +
Start mysql5 service:<pre>
 +
service mysql5 start</pre>
 +
 +
Setup <b>root</b>'s password<pre>
 +
/usr/local/web/mysql5/bin/mysqladmin -u root password 'new-root-password'</pre>
 +
 +
Try to login to check if everything is OK:<pre>
 +
[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></pre>
===apache===
===apache===
Line 9: Line 84:
====imap====
====imap====
====libmbfl====
====libmbfl====
 +
====php====
==EGroupWare setup ==
==EGroupWare setup ==

Revision as of 15:06, 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 install
Configure 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_db
Change mysql binaries and data ownerships:
chown -R mysql5.mysql5 /usr/local/web/mysql5
Create symlink to start script:
ln -s /usr/local/web/mysql5/share/mysql/mysql.server /etc/rc.d/init.d/mysql5
Start mysql5 service:
service mysql5 start
Setup 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

php

imap

libmbfl

php

EGroupWare setup

Personal tools