...
All steps below require the tarball to be copied to /tmp, extracted and then the install script (installer) run from that directory.
Code Block | ||
---|---|---|
| ||
cd /tmp
tar xf OAE-Linux-x68_64-release_1.4.tar.gz
cd Open-AudIT-1.4.0
./installer |
Apache Proxy Config on RedHat
If the installer cannot find your Apache config directory (usually only on Ubuntu), you will need to manually copy the Apache proxy config file.
...
On RedHat, your apache configuration directory
...
will likely be in /etc/httpd/conf.d
Debian based - /etc/apache2/conf.d/
Ubuntu based - /etc/apache2/conf-available/
Code Block | ||
---|---|---|
| ||
cp /usr/local/omk/install/04omk-proxy.conf <DIRECTORY> |
Ubuntu based distributions will need to create a link to this file.
/etc/httpd.conf.d/ |
Set the server name for Apache and restart.
Code Block | ||
---|---|---|
|
ln /etc/apache2/conf-available/04omk-proxy.conf /etc/apache2/conf-enabled/
Set the server name for Apache, enable mod-proxy and restart.
For RedHat based distributions,
Code Block |
---|
echo "ServerName echo "ServerName <HOSTNAME>" >> /etc/httpd/conf/httpd.conf chsh -s /bin/bash apache service httpd start |
For Debian based distributions,
Apache Proxy Config on Debian
If the installer cannot find your Apache config directory (usually only on Ubuntu), you will need to manually copy the Apache proxy config file.
On RedHat, your apache configuration directory will likely be in /etc/apache2/conf.d
Code Block | ||
---|---|---|
| ||
cp /usr/local/omk/install/04omk-proxy.conf /etc/httpd.conf.d/ |
Set the server name for Apache and restart.
Code Block | ||
---|---|---|
| ||
echo "ServerName <HOSTNAME>" >> /etc/apache2/apache2.conf
service apache2 restart |
Apache Proxy Config on Ubuntu
If the installer cannot find your Apache config directory (usually only on Ubuntu), you will need to manually copy the Apache proxy config file.
On Ubuntu, your apache configuration directory will likely be in /etc/apache2/conf-available. You will also need a symlink to conf-enabled.
Code Block | ||
---|---|---|
|
cp /usr/local/omk/install/04omk-proxy.conf /etc/apache2/conf-available ln -s /etc/apache2/ |
conf-available/04omk-proxy.conf |
For Ubuntu
/etc/apache2/conf-enabled/04omk-proxy.conf |
Set the server name for Apache, enable mod-proxy and restart.
Code Block | ||
---|---|---|
| ||
echo "ServerName <HOSTNAME>" >> /etc/apache2/apache2.conf
a2enmod proxy_http
service apache2 restart |
Configure PHP on RedHat
You will need to ensure your PHP timezone is set correctly. You can check which time zones PHP supports at http://www.php.net/manual/en/timezones.php You can find out your server's timezone by running the command:
Code Block | ||
---|---|---|
| ||
cat /etc/sysconfig/clock | grep ZONE | cut -d"\"" -f2 |
Configure PHP (substituting <TIMEZONE> from above). Set your PHP defaults:
Code Block | ||
---|---|---|
| ||
sed -i -e 's/memory_limit/;memory_limit/g' /etc/php.ini echo "memory_limit = 512M" >> /etc/php.ini sed -i -e 's/max_execution_time/;max_execution_time/g' /etc/php.ini echo "max_execution_time = 300" >> /etc/php.ini sed -i -e 's/max_input_time/;max_input_time/g' /etc/php.ini echo "max_input_time = 600" >> /etc/php.ini sed -i -e 's/error_reporting/;error_reporting/g' /etc/php.ini echo "error_reporting = E_ALL" >> /etc/php.ini sed -i -e 's/display_errors/;display_errors/g' /etc/php.ini echo "display_errors = On" >> /etc/php.ini sed -i -e 's/upload_max_filesize/;upload_max_filesize/g' /etc/php.ini echo "upload_max_filesize = 10M" >> /etc/php.ini sed -i -e 's/date.timezone/;date.timezone/g' /etc/php.ini echo "date.timezone = <TIMEZONE>" >> /etc/php.ini |
Configure PHP on Debian / Ubuntu
You will need to ensure your PHP timezone is set correctly. You can check which time zones PHP supports at http://www.php.net/manual/en/timezones.php You can find out your server's timezone by
Code Block | ||
---|---|---|
| ||
cat /etc/timezone |
Configure PHP (substituting <TIMEZONE> from above). Set your PHP defaults
Code Block | ||
---|---|---|
| ||
sed -i -e 's/memory_limit/;memory_limit/g' /etc/php5/apache2/php.ini echo "memory_limit = 512M" >> /etc/php5/apache2/php.ini sed -i -e 's/max_execution_time/;max_execution_time/g' /etc/php5/apache2/php.ini echo "max_execution_time = 300" >> /etc/php5/apache2/php.ini sed -i -e 's/max_input_time/;max_input_time/g' /etc/php5/apache2/php.ini echo "max_input_time = 600" >> /etc/php5/apache2/php.ini sed -i -e 's/error_reporting/;error_reporting/g' /etc/php5/apache2/php.ini echo "error_reporting = E_ALL" >> /etc/php5/apache2/php.ini sed -i -e 's/display_errors/;display_errors/g' /etc/php5/apache2/php.ini echo "display_errors = On" >> /etc/php5/apache2/php.ini sed -i -e 's/upload_max_filesize/;upload_max_filesize/g' /etc/php5/apache2/php.ini echo "upload_max_filesize = 10M" >> /etc/php5/apache2/php.ini sed -i -e 's/date.timezone/;date.timezone/g' /etc/php5/apache2/php.ini echo "date.timezone = <TIMEZONE>" >> /etc/php5/apache2/php.ini |
You may need to manually enable mcrypt in PHP.
Code Block | ||
---|---|---|
| ||
php5enmod mcrypt |
...