Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-28-2013, 08:01 PM   #1
LQ Newbie
Registered: Jun 2011
Posts: 24

Rep: Reputation: Disabled
Installing OpenCA - Server is not online or does not accept requests

Hello CentOS forum users ! This is my first thread and i need your help. I will explain you how i installed OpenCA to CentOS 5.9 (Final) step by step. [VirtualBox] box ip
dhcppc2 box hostname

useradd openca

yum -y update
yum install -y gcc gpg ftp links make unzip openssl-devel expat-devel httpd mod_ssl mysql-server db4-devel mysql-devel

perl -MCPAN -e shell
install CGI::Session Convert::ASN1 Digest::MD5 Digest::SHA1 Encode::Unicode IO::Socket::SSL IO::Stringy MIME::Base64 MIME::Lite MIME::Tools MailTool Net::Server URI XML::Twig XML::SAX::Base Digest::HMAC Authen::SASL Net::SSLeay
install G/GU/GUIDO/libintl-perl-1.20.tar.gz
install G/GB/GBARR/perl-ldap-0.4001.tar.gz

nano /etc/hosts ( added dhcppc2 ra)

nano /etc/httpd/conf/httpd.conf (added ServerName dhcppc2)


nano /etc/my.cnf (added skip-bdb at [mysqld] section)

service mysqld start
mysqladmin -u root password 'password'
mysqladmin -u root -h dhcppc2 password 'password'
mysql -p
create database openca;
GRANT create,drop,select,delete,insert,update ON openca.* TO 'openca_u'@'localhost' IDENTIFIED by 'database_password';
GRANT create,drop,select,delete,insert,update ON openca.* TO 'openca_u'@'dhcppc2' IDENTIFIED by 'database_password';
FLUSH privileges;
service mysqld restart

cd /home/openca
mkdir downloads
cd downloads
tar xvzf openca-tools-1.3.0.tar.gz
cd openca-tools-1.3.0
./configure –-prefix=/opt/openca –-exec-prefix=/opt/openca –-with-openca-prefix=/opt/openca –-with-openca-user=openca –-with-openca-group=openca
make install
cd ..
tar xvzf openca-base-1.1.1.tar.gz
cd openca-base-1.1.1
./configure –-prefix=/opt/openca –-exec-prefix=/opt/openca –-with-openca-prefix=/opt/openca –-with-openca-user=openca –-with-openca-group=openca -–with-module-prefix=/opt/openca/modules –with-web-host=dhcppc2 --with-httpd-user=apache –-with-httpd-group=apache -–with-openca-tools-prefix=/opt/openca
make install-offline

cd src/scripts
make install

chown -R apache:apache /opt/openca/var/openca/log/

nano /opt/openca/etc/openca/config.xml

changed <name>db_host</name> ,  <name>db_user</name> , <name>db_passwd</name> , with box host , openca_u and database password which was set above

also comment the "no dataexchange configuration" and uncomment the "acts as CA only" section.

cd /opt/openca/etc/openca

nano /opt/openca/modules/perl5/OpenCA/ (added use constant ERR_USER_STATUS_UNKNOWN => [ 3100, "Could not determine user status" ]; )

nano /opt/openca/lib/openca/functions/initServer (replaced our (%AUTOCONF, $common_libs, $config, $users, $loginUser); with our (%AUTOCONF, $common_libs, $config, $curr_user, $users, $loginUser); and i18nGettext ( "OpenCA::User init error!" ); with i18nGettext ( "OpenCA::User init error!" ) )

service iptables save
service iptables stop
chkconfig iptables off

cd /opt/openca/etc/openca

and when trying to open it gives me error !

OpenCA Error: Server is not online or does not accept requests (/opt/openca/var/openca/tmp/openca_socket - /opt/openca/var/openca/tmp/openca_socket). 0

log file stderr.log at /opt/openca/var/openca/log

Process Backgrounded
2013/03/01-01:51:08 OpenCA::Server (type Net::Server::Fork) starting! pid(4144)
Binding to UNIX socket file /opt/openca/var/openca/tmp/openca_socket using SOCK_STREAM
Setting gid to "48 48"
Setting uid to "48"

bash-3.2$ id 
uid=48(apache) gid=48(apache) groups=48(apache) context=root:system_r:unconfined_t:SystemLow-SystemHigh
Can someone help me ? Thanks !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCA and various distros jdpond Member Intro 0 08-07-2011 10:07 PM
openca and openocsp gadtzucky Linux - General 1 03-30-2011 07:38 PM
Would like to forward requests received on Server in one subnet to server on another scheidel21 Linux - Networking 3 08-16-2009 10:20 AM
How to Accept SMTP Requests for Subnet Only nytcrwlr70 Linux - Security 4 07-07-2007 02:21 AM
Server goes online when started and stays online ... joepl Linux - Networking 1 08-18-2005 03:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration