Disable selinux

--
Jeremy McSpadden

On Sep 2, 2013, at 9:46 AM, "Norman" 
<[email protected]<mailto:[email protected]>> wrote:

Hi Jeremy,

After a hands-free installation thanks to your script, httpd refuses to start. 
Is there anything that needs to be changed?
[root@vsd2 ~]# service httpd start
Starting httpd: httpd: Syntax error on line 236 of /etc/httpd/conf/httpd.conf: 
Could not open configuration file /etc/httpd/conf.d/baruwa.conf: Permission 
denied
                                                           [FAILED]

These are the permissions:
[root@vsd2 ~]# ll /etc/httpd/conf.d/baruwa.conf
-rw-r--r--. 1 root root 1313 Sep  2 14:34 /etc/httpd/conf.d/baruwa.conf
[root@vsd2 ~]# ll /home/baruwa
total 24
-rw-r--r--. 1 root root  501 Sep  2 13:53 admin-functions.sql
drwxr-xr-x. 7 root root 4096 Sep  2 14:18 px
-rw-r--r--. 1 root root  918 Sep  2 13:42 requirements.txt

[root@vsd2 ~]# cat /etc/httpd/conf.d/baruwa.conf
# -*- coding: utf-8 -*-
# Baruwa - Web 2.0 MailScanner front-end.
# Copyright (C) 2010-2012  Andrew Colin Kissa 
<[email protected]><mailto:[email protected]>
# vim: ai ts=4 sts=4 et sw=4

WSGIPythonWarnings ignore::DeprecationWarning::
WSGISocketPrefix /var/run/httpd
#WSGIPythonHome /home/baruwa/px
WSGIPythonPath /home/baruwa/px/lib/python2.6/site-packages
<VirtualHost *:80>
        Alias /favicon.ico 
/home/baruwa/px/lib/python2.6/site-packages/baruwa/public/imgs/favicon.ico
        Alias /imgs/ 
/home/baruwa/px/lib/python2.6/site-packages/baruwa/public/imgs/
        Alias /js/ /home/baruwa/px/lib/python2.6/site-packages/baruwa/public/js/
        Alias /css/ 
/home/baruwa/px/lib/python2.6/site-packages/baruwa/public/css/

        # Make all the static content accessible
        <Directory /home/baruwa/px/lib/python2.6/baruwa/public/*>
            Order allow,deny
            Allow from all
            Options -Indexes
        </Directory>
        WSGIScriptAlias / 
/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi

    # change to your hostname
    ServerName vsd2.xxxxxxxxxxxxxx.ccc

    <Directory /home/baruwa/px/lib/python2.6/site-packages/baruwa>
        Order deny,allow
        Allow from all
    </Directory>
    ErrorLog logs/baruwa-error_log
    CustomLog logs/baruwa-access_log common
</VirtualHost>

Thanks.

Norman


On 10/08/2013 22:53, Jeremy McSpadden wrote:
Hey Peeps,

I know its been a while since i've posted an update to the installer.
I have updated the code and added a few things. Now Bayes & Auto White Lists 
work out of the box.
I've also updated the SA & RabbitMQ versions.

It is as automated as I can make it, less the perl modules install.
If you edit the top part of the file it will auto-install everything but the 
perl modules. (Few Yes/Enter to get)

The updated version is at 
https://raw.github.com/fluxlabs/baruwa/master/2.0/cent6/install.sh

How to install:

1. Make sure your hostname is in the hosts file. This is a MAJOR break point on 
the install.
Example : 192.132.53.21 mx01.domain.com<http://mx01.domain.com> mx01
Add both FQDN and Shortname to /etc/hosts

2. This installer was tested on a standard kernel with iptables/selinux 
disabled.
You will have issues on a GRSEC or with SELinux enabled. That is up to you to 
work through if you decide to keep them.

3. I would recommend installing the script over a screen session if it is 
remote. It can take upwards of 30 minutes depending on the servers specs.
---------------------------------------
yum install screen -y
screen
curl -O https://raw.github.com/fluxlabs/baruwa/master/2.0/cent6/install.sh
nano -w install.sh
---------------------------------------
Once you've edited the required fields.
--------------------------
sh install.sh
--------------------------
Option A

Let me know if you have any issues. I've tested it on OVH (standard 
kernel)/Digital Ocean & Rackspace.
If you know of a provider which this script works on, or does not work on; 
please let me know.

I highly recommend a minimum of 2GB for this install. Baruwa has quite a few 
deps which eat up some memory.

I will add nginx soon.

--
Jeremy McSpadden
Flux Labs, Inc | http://www.fluxlabs.net | Endless Solutions
Office : 850-250-5590x101 | Cell : 850-890-2543 | Fax : 850-254-2955


_______________________________________________
http://pledgie.com/campaigns/12056
_______________________________________________
http://pledgie.com/campaigns/12056

Reply via email to