Search


print PDF
How to recompile software on the server?

Before starting, have a closely look on the release system, which allows you to up date your server: ReleasePatchSecurity. You can carry out all scripts automatically and therefore recover the content of scripts. By editing them and changing options, you may quickly add the options which interest you.

You can also find the standard scripts of compilation on our ftp server
ftp://ftp.ovh.net/made-in-ovh/patch.

Finally, you have all softs compiled on the server directly. All compiled sources are in /home/ovh/src directory. To know the used options, you may search them in the configuration files such as config.* for example.

Apache

For example for Apache :

# cd /home/ovh/src
# ls -l
total 24
drwxr-xr-x 8 postfix games 4096 oct 7 17:28 apache_1.3.28
drwxr-xr-x 2 root bin 4096 fév 3 2002 clockspeed-0.62
drwxr-xr-x 10 root root 4096 oct 7 17:26 mod_ssl-2.8.15-1.3.28
drwxr-xr-x 15 1001 1001 4096 sep 29 09:54 postfix-1.1.2
drwxr-xr-x 3 root root 4096 oct 7 17:25 soft
drwxr-x
5 1000 1000 4096 sep 29 09:52 watchdog-5.2
# cd apache_1.3.28/
# cat config.status
#!/bin/sh
#
# config.status –– APACI auto-generated configuration restore script
#
# Use this shell script to re-run the APACI configure script for
# restoring your configuration. Additional parameters can be supplied.
#

./configure
"--with-layout=Apache"
"--prefix=/usr/local/apache"
"--enable-suexec"
"--suexec-caller=nobody"
"--suexec-userdir=www"
"--suexec-docroot=/home"
"--suexec-logfile=/usr/local/apache/logs/cgi.log"
"--suexec-uidmin=99"
"--suexec-gidmin=99"
"--suexec-safepath=/usr/local/bin:/usr/bin:/bin"
"--enable-module=so"
"--enable-module=rewrite"
"--add-module=src/modules/extra/mod_gzip.c"
"--enable-module=ssl"
"$@"