Saturday, December 27, 2014

Apache2 tips and file locations

The last post mentioned that the HP2000 notebook has Apache2 web server running and that more information and added details were to be added at a future time.

This weekend thought to put pen to paper and put some of the necessary log file and directory locations.

Apache2 log file location:
/var/log/apache2/access.log
/var/log/apache2/error.log

Apache2 config file location (this is unique to Ubuntu):
 /etc/apache2/

Apache2 file location:
/usr/lib/cgi-bin

This directory will contain you .html, .cgi. pl, .sh files (perl, bash, cgi). Note that a perl script in this directory can have a .cgi extension. 

Starting, stopping restarting Apache2:
>apache2 start
>apache2 stop
>apache2 restart

Friday, December 26, 2014

Installing Bugzilla, JAMWiki, and phpmyadmin installation

This post was going to go into detail about the installation process for JAMWiki, then bugzilla, then phpmyadmin. Details were going to explain the difficulties, prerequisites, outline any configuration file changes that were needed and other steps along the way.

Well, the post is not turning out this way. This is a very high level summary.

Tomcat Web Server:
The tomcat web server is needed for JAMWiki. A coworker installed JAMWiki and has it running pretty well, so I thought this would be a decent project to undertake. Surprisingly it was fairly straight forward and not too hard.

JAMWiki:
Next came a JAMWiki down load. I guess this is in the form of a .war file the lives in a particular directory on the file system. I chose to put in in my home directory structure. Once tomcat and JAMWiki are installed, I point my web browser to:

http://localhost:8080/jamwiki-1.3.2/en/StartingPoints

Based on the success on JAMWiki, I had always been interested in Bugzilla. It needs the apache2 web server. So apache2 was downloaded and installed. Next came the bugzilla down and install. Both of these download and installs were per the instructions. Difficulty came when configuring bugzilla into the apache2 web server. The configuration file was tricky. This is where documenting the process would have been good, but it did not happen, no documentation. After trial and error, bugzilla is working. I point my web browser to:

http://localhost/bugzilla/

Finally, the last is the phpmyadmin. A coworker is running this, and with the MySql database that is installed, figure phpmyadmin is a good thing to have on board and running. The install was simple and assistance on the ubuntu forum's made the necessary soft link (ln -s) from one file (with full path) to another file and directory (full path). I point my browser to:

http://localhost/phpmyadmin/

Both bugzilla and phpmyadmin use MySql as the database.

This pretty much concludes the post. I'd suppose some action on my part would be to study up on apache2 and tomcat web servers. When you hear web server, first thing that comes to my mind is a full on high powered server and not a simple HP-2000 Notebook Computer running Ubuntu 14.04.