Thanks a lot. I really don't know how to appreciate your time and effort. It really helped me a lot and now it is working. The other problem I found was that the perl and cgi scripts were not executed on the browser and it led to other problems. Using this command,
all the cgi and perl scripts start executing on the browser and now it is working. I really appreciate once more and hope that I can return your favor.
________________________________ From: Jack D. Pond <jack.pond@psit...> To: 'Users' Help and Suggestions' <openca-users@list...>; 'Mohammad khodaei' <m_khodaii@yaho...> Cc: 'Mohammad Khodaei' <khodaei@kth....> Sent: Thursday, May 31, 2012 9:22 PM Subject: RE: [Openca-Users] Problem with OpenCA Web Interface - with OpenCA service start instructions.
I apologize in advance for the length of this, but I don't have access to the wiki to write something more comprehensive and understandable - this time including how to initiate the OpenCA services.
Mohammed, I spent 3 full days and countless mistakes trying to install this on Ubuntu 12.04, Apache, MySql (all updated to current) using the OpencCA 1.3.0 versions of both the tools and the base. Here are my notes.
As raw as they are, they may give you some ideas because I know how frustrating this has been for you. Note, there is a quick guide to scrape the field and start over again at the bottom - if I wrote this out, you can guess how many times I screwed up and had to "green field" over again.
Jack D. Pond
"State facts, offer opinions; understand and respect the difference." -- Jack Pond
# test the config before you throw the switch sudo apache2ctl configtest sudo service apache2 restart </pre>
Now start the actual installation
 Database Creation In order for OpenCA to be able to store data into the database you need to create a database and a user to manage the database. Following there's an example for MySQL. Connect to the DBMS:
mysql -u root -p -h localhost Then, create the database:
mysql> CREATE DATABASE opencadb; mysql> use opencadb; mysql> GRANT ALL ON *.* TO 'opencadbuser'@'%' IDENTIFIED BY '[YourSuperSecretPassword]'; mysql> GRANT ALL ON *.* TO 'opencadbuser'@'localhost' IDENTIFIED BY '[YourSuperSecretPassword]'; mysql> flush privileges; mysql> exit;
# Test it: sudo mysql -u opencadbuser -p opencadb
If you manage to login into the DB, you correctly setup the database. NOTE: You should use different names for the db and the username. However, the have to match the ones configured in PREFIX/etc/openca/config.xml
Finally, to make sure the service comes up at reboot add the following:
Different systems have different ways to add the scripts to the boot sequence, in general linking the openca script in your /etc/init.d/ is a good start. You can do this by executing the following command:
cd /etc/init.d/ ln -s /usr/local/etc/init.d/openca .
Problems Encountered (I did get errors), but don't do this until you're sure. You shouldn't have to reconfigure if you're getting them in the openca configure_etc
Missing XML::Parser Missing perl modules. I don't know why they didn't compile (but the following didn't): XML::Parser