Installing unxsApache with yum for CentOS 5

  1. Prepare your yum configuration for using our repository
    # wget http://unixservice.com/rpm/i386/unxsyum-1.0-1.i386.rpm
    # rpm -i unxsyum-1.0-1.i386.rpm
    
  2. Install unxsApache, it will also install all the required dependencies if they are not present in your system.
    # yum install unxsapache
    
  3. If you can't get the latest update run yum clean all. Then repeat the above step again.
  4. Restart your Apache server:
    # /etc/init.d/httpd restart
    
  5. If everything went out OK, you should see that the port 9333 is open and listening, that port will be used for accessing the unxsBind backend and interfaces via HTTPs:
    # netstat -tnl
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State
    tcp        0      0 :::80                       :::*                        LISTEN
    tcp        0      0 :::9333                     :::*                        LISTEN
    tcp        0      0 :::22                       :::*                        LISTEN
    tcp        0      0 :::443                      :::*                        LISTEN
    
  6. Don't forget to open the 9333, 80 and 443 ports in your firewall, edit /etc/sysconfig/iptables and add the following lines before the last lines in the file
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9333 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
    
  7. The bottom of your /etc/sysconfig/iptables file should look like this:
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9333 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
    -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
    COMMIT
    
  8. Then restart iptables:
    # /etc/init.d/iptables
    
  9. Start your MySQL server:
    # /etc/init.d/mysqld start
    
  10. Set your MySQL root user password:
    # /usr/bin/mysqladmin -u root password 'ultrasecret'
    
  11. Initialize the database:
    # export ISMROOT=/usr/local/share
    # /var/www/unxs/cgi-bin/unxsApache.cgi Initialize ultrasecret
    
  12. Now you would be able to access the backend at http://yourhost:9333/cgi-bin/unxsApache.cgi. Login with Root/wsxedc. Also your apache server will listen at the standard ports.
  13. Setup your root crontab
    # crontab -e
    
  14. Then place this in your crontab:
    #
    #unxsApache job queue processing
    #
    #Dual master configuration
    * * * * * /var/www/unxs/cgi-bin/unxsApache.cgi ProcessJobQueue webfarm1>> /var/log/unxsapache-cron.log 2>&1
    

Back