<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; apache</title> <atom:link href="http://www.ghacks.net/tag/apache/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 16:53:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Typo3 Winstaller, Windows Typo3 Environment</title><link>http://www.ghacks.net/2011/01/31/typo3-winstaller-windows-typo3-environment/</link> <comments>http://www.ghacks.net/2011/01/31/typo3-winstaller-windows-typo3-environment/#comments</comments> <pubDate>Mon, 31 Jan 2011 09:57:35 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[php]]></category> <category><![CDATA[typ3 windows]]></category> <category><![CDATA[typo3]]></category> <category><![CDATA[typo3 winstaller]]></category> <category><![CDATA[wamp]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=39448</guid> <description><![CDATA[Typo3 is a powerful Open Source content management system that runs on system that support recent versions of PHP and MySQL. Linux users usually do not have a problem installing PHP and MySQL on their systems, while Windows users may have troubles finding a solution to run them on their system. Typo3 Winstaller is a [...]]]></description> <content:encoded><![CDATA[<p>Typo3 is a powerful Open Source content management system that runs on system that support recent versions of PHP and MySQL. Linux users usually do not have a problem installing PHP and MySQL on their systems, while Windows users may have troubles finding a solution to run them on their system.</p><p>Typo3 Winstaller is a free WAMP (which means Windows, Apache, MySQL and PHP) webserver that comes preinstalled with the Typo3 content manangement system. It basically offers everything needed to get started eliminating the need to install and configure the dependencies individually.</p><p>The installer sets up a full Typo3 environment on the system that can be used immediately without configuration. This can be helpful for developers, students, employees and everyone else who wants or needs to work with Typo3.</p><p><strong>The main features of Typo3 Winstaller</strong></p><ul><li>Download and Play &#8211; no configuration and no other manually intervention is required</li><li>simple user interface</li><li>includes preconfigured Quickstart, Testsite and Dummy packages of TYPO3 (demo pages)</li><li>easy to try the full functionality of the CMS TYPO3</li><li>TYPO3Winstaller runs from portable hardware (i.e. MemorySticks) and from CD/DVD</li></ul><p>The package is offered as a zip file and executable. The executable handles the unpacking for the user, the remaining process remains the same.</p><p>The application offers a basic control panel that displays information about running services (Apache, MySQL), options, logs and the ability to start and stop the Typo3 content management system.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2011/01/typo3winstaller.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2011/01/typo3winstaller.jpg" alt="typo3winstaller" title="typo3winstaller" width="502" height="254" class="alignnone size-full wp-image-39451" /></a></p><p>Typo3 runs on the local system. The control panel launches the web interface in the default browser after installation or manual activation. This is at the same time the final test that everything is up and running.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2011/01/typo3-winstaller.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2011/01/typo3-winstaller-550x400.jpg" alt="typo3 winstaller" title="typo3 winstaller" width="550" height="400" class="alignnone size-medium wp-image-39452" /></a></p><p>The welcome page links to several Typo3 related resources which is handy for beginners who want to learn Typo3.</p><p>Interested users can download Typo3 <a
href="http://typo3winstaller.sourceforge.net/?home">Winstaller</a> from its project page over at Sourceforge.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/01/31/typo3-winstaller-windows-typo3-environment/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Add SSL to CentOS web server</title><link>http://www.ghacks.net/2010/12/05/add-ssl-to-centos-web-server/</link> <comments>http://www.ghacks.net/2010/12/05/add-ssl-to-centos-web-server/#comments</comments> <pubDate>Sun, 05 Dec 2010 20:10:02 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[ssl]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=37618</guid> <description><![CDATA[CentOS might well be one of the finest Linux distributions for a server environment. It is basically a mimic of Red Hat Enterprise Linux without the proprietary software and the price attached to it. With that in mind, it makes perfect sense to set CentOS up as your go-to Web server. It&#8217;s reliable, it&#8217;s stable, [...]]]></description> <content:encoded><![CDATA[<p>CentOS might well be one of the finest Linux distributions for a server environment. It is basically a mimic of Red Hat Enterprise Linux without the proprietary software and the price attached to it. With that in mind, it makes perfect sense to set CentOS up as your go-to Web server. It&#8217;s reliable, it&#8217;s stable, it&#8217;s extensible, and it&#8217;s secure.</p><p>But setting up a secure web server isn&#8217;t complete without the inclusion of SSL and certificates. If you are wanting to serve up sercure web pages you will certainly want your audience to be able to send them to https instead of http. So&#8230;with CentOS how do you do that? I will show you how.</p><p><span
id="more-37618"></span><strong>Installing all of the packages</strong></p><p>I will assume you already have CentOS installed as well as the Apache Web Server. Make sure you are able to go to the default Apache web page (or any web page on your CentOS web server), before you set up SSL. When you have all of that working you will need to install a couple of packages. This is done with the following steps:</p><ol><li>Open up a terminal window.</li><li>Su to the root user.</li><li>Issue the command <code>yum install mod_ssl openssl</code>.</li><li>Let the installation complete.</li></ol><p>With SSL installed and ready, it&#8217;s time to create your certificates for usage.</p><p><strong>Creating your certificate</strong></p><p>You will now have everything on your server to create CAs. You need to generate a private key, a csr, a self-signed key, and then you need to copy these files to the correct location. This is done with the following steps.</p><ol><li>Open up a terminal window.</li><li>Su to the root user.</li><li>Generate the private key with the command <code>openssl genrsa -out ca.key 1024</code>.</li><li>Generate the csr with the command <code>openssl req -new -key ca.key -out ca.csr</code>.</li><li>Generate the self-signed key with the command <code>openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt</code>.</li><li>Move the self-signed key with the command <code>cp ca.crt /etc/pki/tls/certs</code>.</li><li>Move the private key with the command <code>cp ca.key /etc/pki/tls/private/ca.key</code>.</li><li>Move the csr with the command <code>cp ca.csr /etc/pki/tls/private/ca.csr</code>.</li></ol><p><strong>Edit the Apache SSL configuration</strong></p><p>Open the file <strong>/etc/httpd/conf.d/ssl.conf </strong>and look for the section <em>SSLCertificateFile. </em>Make sure that line reads:</p><p><code>SSLCertificateFile /etc/pki/tls/certs/ca.crt</code></p><p>Now look for the <em>SSLCertificateKeyFile</em> and make sure that section reads:</p><p><code>SSLCertificateKeyFile /etc/pki/tls/private/ca.key</code></p><p>Save that file and you are ready to restart Apache.</p><p><strong>Restart and test</strong></p><p>Before you try to test Apache&#8217;s new SSL feature, you must restart the daemon. To do this issue the command <em>/etc/rc.d/init.d/httpd restart</em>. Hopefully you will see no warnings or errors. If not, then point your browser to https://ADDRESS_TO_SERVER Where ADDRESS_TO_SERVER is either the IP Address or the domain. You should then see a warning from your browser about the certificate for the site. If you see this warning congratulations, your Apache server is now ready for secure connections.</p><p>Remember, though, you created a self-signed certificate. To get the most out of SSL you might want to purchase a CA from a trusted name like <a
href="http://www.verisign.com/" target="_blank">Verisign</a> (There are, of course, plenty of other places where you can purchase those certifiacates).</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/12/05/add-ssl-to-centos-web-server/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Manage your LDAP data with phpLDAPadmin</title><link>http://www.ghacks.net/2010/08/30/manage-your-ldap-data-with-phpldapadmin/</link> <comments>http://www.ghacks.net/2010/08/30/manage-your-ldap-data-with-phpldapadmin/#comments</comments> <pubDate>Mon, 30 Aug 2010 11:07:09 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Online Services]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[LDAP]]></category> <category><![CDATA[LDAP management]]></category> <category><![CDATA[LDAP server]]></category> <category><![CDATA[php5]]></category> <category><![CDATA[phpmyadmin]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=33752</guid> <description><![CDATA[The search for the perfect LDAP management tool has brought me around to a tool that is very similar to that of phpMyAdmin (for coverage of this tool, see my article &#8220;Install phpmyadmin for easy MySQL administration&#8220;). Both of these tools are web-based administration tools for tasks that many find too complex to do via [...]]]></description> <content:encoded><![CDATA[<p>The search for the perfect LDAP management tool has brought me around to a tool that is very similar to that of <a
title="phpLDAPAdmin" href="http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page" target="_blank">phpMyAdmin</a> (for coverage of this tool, see my article &#8220;<a
title="Install phpmyadmin for easy MySQL administration" href="http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/" target="_blank">Install phpmyadmin for easy MySQL administration</a>&#8220;). Both of these tools are web-based administration tools for tasks that many find too complex to do via command line.</p><p>Naturally, what is nice about phpldapadmin is that it allows you to manage your LDAP server from anywhere you have access to a browser (so long as your LDAP server can be reached form anywhere. In this article I am going to show you how to install, configure, and begin to use the phpldapadmin tool.</p><p><span
id="more-33752"></span><strong>Installation</strong></p><p>Before you install phpLDAPAdmin (also known as PLA), you will need to have your LDAP server up and running. Once that is achieved you can then proceed with your installation of this management tool. You will also need to have a web server installed and running (it is a web-based tool after all).  If you do not already have <em>php5-ldap </em>installed, install that package now.</p><p>The first step for installation is to download the <a
title="phpLDAPAdmin source" href="http://sourceforge.net/projects/phpldapadmin/files/" target="_blank">source from Sourceforge</a>. You can install from a pre-compiled binary, but I recommend you do the installation from source.</p><p>Once you have the .tgz file downloaded move that file to your web servers&#8217; document root. In Fedora this will be <strong>/var/www/html</strong> and in Ubuntu this will be <strong>/var/www</strong>. The next step is to unpack the tar file and then rename the newly created directory. You will need administrative privileges for these tasks. Follow these steps:</p><ol><li>Open up a terminal window.</li><li>Change to your document root.</li><li>Su to root (if using Fedora or a Fedora-like distribution).</li><li>Issue the command <em>tar xvfz phpldapadmin-XXX.tgz</em> (If using a Ubuntu-like distribution you will have to add <em>sudo </em>to the beginning of that command) Where XXX is the release number.</li><li>Rename the directory with the command <em>mv phpldapadmin-XXX phpldapadmin </em>(If using Ubu﻿ntu-like distribution you will have to add <em>sudo </em>to the beginning of that command) Where XXX is the release number.</li><li>Change into the phpldapadmin/config and rename the config file with the command <em>mv config.php.sample config.php</em> (If using Ubu﻿ntu-like distribution you will have to add <em>sudo </em>to the beginning of that command).</li></ol><p><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin.png"><img
class="alignleft size-full wp-image-33753" style="margin-left: 5px;margin-right: 5px" src="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin.png" alt="" width="401" height="180" /></a>Now it&#8217;s time to fire up your web browser and head to your installation. Point your browser to <em>http://ADDRESS_TO_SERVER/phpldapadmin/</em> and you will see a page similar to that in Figure 1.</p><p>The first thing you need to do is click on the Login link (in the left navigation tree). The credentials you need will be those that were created to administer your LDAP server. But don&#8217;t think you can just log in with a username of &#8220;admin&#8221; and a password. You have to use the standard format of LDAP. So a typical administrator login username will look like <em>cn=admin,dc=wallen,dc=local</em>.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin_login.png"><img
class="alignright size-full wp-image-33754" src="http://www.ghacks.net/wp-content/uploads/2010/08/phpldapadmin_login.png" alt="" width="410" height="231" /></a>Once you have logged in, the main page will look like that shown in Figure 2. Expand the navigation tree on the left nav and you can see where you can start creating new entries.</p><p><strong>Final thoughts</strong></p><p>You are now ready to rock your LDAP server from anywhere you can access a web browser. The phpLDAPAdmin tool makes LDAP as easy as phpMyAdmin makes MySQL. This is one of the best LDAP admin tools you will find.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/08/30/manage-your-ldap-data-with-phpldapadmin/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Weezo, Remote Access And Web Server For Windows</title><link>http://www.ghacks.net/2010/07/01/weezo-remote-access-and-web-server-for-windows/</link> <comments>http://www.ghacks.net/2010/07/01/weezo-remote-access-and-web-server-for-windows/#comments</comments> <pubDate>Thu, 01 Jul 2010 17:09:33 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[local server]]></category> <category><![CDATA[php]]></category> <category><![CDATA[remote server]]></category> <category><![CDATA[remote-access]]></category> <category><![CDATA[web server]]></category> <category><![CDATA[weezo]]></category> <category><![CDATA[windows server]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=27774</guid> <description><![CDATA[Weezo is remote access made easy. The server comes as a portable version or installer for the Windows operating system. It basically allows a user to configure remote access to files on a computer system and to run scripts on a web server at the same time. Here is how it works. Weezo will run [...]]]></description> <content:encoded><![CDATA[<p>Weezo is remote access made easy. The server comes as a portable version or installer for the Windows operating system. It basically allows a user to configure remote access to files on a computer system and to run scripts on a web server at the same time.</p><p>Here is how it works. Weezo will run a configuration script on the first startup. The script will start the core services and perform connection checks to ensure that the server is accessible from a local network and the Internet.</p><p><span
id="more-27774"></span><div
id="attachment_27775" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/weezo-500x341.png" alt="weezo" title="weezo" width="500" height="341" class="size-medium wp-image-27775" /><p
class="wp-caption-text">weezo</p></div></p><p>A free Weezo account can be created during setup of the server. The account offers the advantage that a permanent url is associated with it which can be used to access the server. This is similar to a service that offers a permanent domain name for dynamic IPs. It is possible to use the program anonymously, but this means that users connected to the computer need the right IP address to do so.</p><p>The Weezo server interface is then started on the computer, providing the means to configure the the shared contents and users as well as core configuration options and an activity monitor that displays information about logged in users and server status changes.</p><p>All resorts around user groups and resources. Groups are used to allow or block access to resources. The administrator for instance has access to all resources by default while the public group does not.</p><p>Groups are protected with passwords and can be further protected by adding allowed IPs. Options to provide a distinct website theme, sounds and sticky notes are provided as well.</p><p>Resources are the core of the server. Here it is possible to enable file access and sharing, blog and websites, communication modules like chat or webcam, bookmarks, web TV, a web proxy routing traffic through the Weezo website and additional modules.</p><p>Some interesting resources are the following:</p><ul><li>Photos Album: Share photos with anyone connecting to the server.</li><li>Music and Videos: Listen to music or watch videos remotely, great for sharing music and videos with friends.</li><li>RSS Reader, bookmarks: Access and share RSS feeds and bookmarks easily wherever you are</li></ul><div
id="attachment_27777" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/share-files-500x375.jpg" alt="share files" title="share files" width="500" height="375" class="size-medium wp-image-27777" /><p
class="wp-caption-text">music player</p></div><p>One click install / download options are provided for popular web scripts such as WordPress, Joomla or phpBB even though they are not always offered in the latest version. MySQL can be installed as well as it is a requirement for several of the scripts.</p><div
id="attachment_27776" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/remote-access-server-500x395.jpg" alt="remote access server" title="remote access server" width="500" height="395" class="size-medium wp-image-27776" /><p
class="wp-caption-text">remote access server</p></div><p>Some modules were not completely translated into English, only offered in French. WordPress for instance was available in French. It was however no problem to change the configuration files on the local system to change the language to English. This is also the way to update scripts to their latest versions.</p><p>Admins have direct access to MySQL, phpMyAdmin, the Apache configuration and pretty much every other server configuration file. Helpful for instance to import a database or make modifications to the remote server.</p><p>Ports can be changed in the configuration, the default port is 80. It is furthermore possible to use a secure connection (SSL) to connect to the server.</p><p><strong>Screenshots:</strong></p><div
id="attachment_27778" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/remote-access-server1-500x395.jpg" alt="remote access server" title="remote access server" width="500" height="395" class="size-medium wp-image-27778" /><p
class="wp-caption-text">remote access server</p></div><div
id="attachment_27779" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/remote-desktop-500x375.jpg" alt="remote desktop" title="remote desktop" width="500" height="375" class="size-medium wp-image-27779" /><p
class="wp-caption-text">remote desktop</p></div><div
id="attachment_27780" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/remote-file-explorer-500x375.jpg" alt="remote file explorer" title="remote file explorer" width="500" height="375" class="size-medium wp-image-27780" /><p
class="wp-caption-text">remote file explorer</p></div><div
id="attachment_27781" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/rss-feed-sharing-500x375.jpg" alt="rss feed sharing" title="rss feed sharing" width="500" height="375" class="size-medium wp-image-27781" /><p
class="wp-caption-text">rss feed sharing</p></div><div
id="attachment_27782" class="wp-caption alignnone" style="width: 510px"><img
src="http://www.ghacks.net/wp-content/uploads/2010/07/server-login-500x375.jpg" alt="server login" title="server login" width="500" height="375" class="size-medium wp-image-27782" /><p
class="wp-caption-text">server login</p></div><p>Weezo offers a one-click installation server for web scripts, file sharing and remote file access. It provides rights management and an easy to understand admin interface that can be used to configure most, but not all, of the options of the server.</p><p>Some operations require manual configuration changes, which definitely will be a problem for inexperienced users. There is for instance no option to update WordPress to the latest version from within the admin interface.</p><p><a
href="http://www.weezo.net/content/view/45/66/lang,en/">Weezo</a> is available for download at the developer&#8217;s website.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/07/01/weezo-remote-access-and-web-server-for-windows/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>How to install eGroupware</title><link>http://www.ghacks.net/2010/04/11/how-to-install-egroupware/</link> <comments>http://www.ghacks.net/2010/04/11/how-to-install-egroupware/#comments</comments> <pubDate>Sun, 11 Apr 2010 00:30:14 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[CRM]]></category> <category><![CDATA[egroupware]]></category> <category><![CDATA[ERP]]></category> <category><![CDATA[groupware]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[Pear]]></category> <category><![CDATA[php]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24325</guid> <description><![CDATA[Quite some time ago I wrote an article that illustrated how eGroupware could serve as a legitimate Exchange replacement (see my article &#8220;eGroupware: Your Exchange replacement has arrived&#8220;). I very briefly skimmed over the process of installing this outstanding groupware tool. In this case, skimming will get you nowhere. Recently I revisited the installation of [...]]]></description> <content:encoded><![CDATA[<p>Quite some time ago I wrote an article that illustrated how eGroupware could serve as a legitimate Exchange replacement (see my article &#8220;<a
title="eGroupware: Your Exchange replacement has arrived" href="http://www.ghacks.net/2009/01/21/egroupware-your-exchange-replacement-has-arrived/" target="_blank">eGroupware: Your Exchange replacement has arrived</a>&#8220;). I very briefly skimmed over the process of installing this outstanding groupware tool. In this case, skimming will get you nowhere.</p><p>Recently I revisited the installation of eGroupware and thought I should give a bit more detail on the procedure of installing this rather challenging tool. So in this article I will walk you through the steps on installing eGroupware.</p><p><span
id="more-24325"></span><strong>Download and unpack and prerequisites<br
/> </strong></p><p>I will assume you have a working Apache and MySQL installation, on your Linux server,  ready to go. If not, go ahead and take care of that major prerequisite first. Once you have completed that task you are ready to being. Almost. There are still a few other prerequisites to get out of the way. You will want to fire up Synaptic (or whatever package manager you use) and make sure you have the following installed:</p><ul><li>PHP</li><li>php-pear</li><li>An SMTP server (Postfix is a good choice)</li><li>IMAP server (Dovecot is a good choice)</li></ul><p>There will also be a LOT of pear extensions to install &#8211; we will deal with those in a moment. Before going any further create the database you intend on using (let&#8217;s stick with the name egroupware). If you&#8217;re not sure how to create the database give my article &#8220;<a
title="MySQL Workbench" href="http://www.ghacks.net/2009/12/25/complete-database-administration-package-mysql-workbench/" target="_blank">Complete database administration with MySQL Workbench</a>&#8221; a read.</p><p>Now it&#8217;s time. move the the downloaded tar file for eGroupware into the <strong>/var/www/</strong> directory and then unpack it with the commands:</p><p><em>bunzip2 eGroupware-XXX.tar.bz2 </em></p><p>Where XXX is the release number.</p><p><em>tar xvzf eGroupware-XXX.tar</em></p><p>Where XXX is the release number.</p><p>You will now have a newly created directory <strong>/var/www/egroupware</strong>. Point your browser to <em>http://ADDRESS_TO_SERVER/egroupware</em> and you will begin the installation process. This is where it gets fun. On the first page you will have a link that allows you to run the installation tests. Click that and you will be presented with a long list of items. Each of these items will be preceded by either a green check, a yellow lightning bolt, or a red X. Anything marked with a red X MUST be resolved. Yellow lightning bolts are only warnings. Some of these you can ignore (for instance features you know you won&#8217;t use). The green checks &#8211; those are all right.</p><p>Most likely you will need to deal with some php issues and some Pear modules. Let&#8217;s examine each.</p><p><strong>PHP</strong></p><p>In the directory <strong>/etc/php5/apache2/ </strong>is the main php configuration file (<strong>php.ini</strong>). You will need to make some modifications to this file in order for the installation to work. Typically the modifications you will need to deal with are:</p><p><strong>upload_max_filesize &gt;= 8M </strong>By default PHP has a 2MB upload limit. You will need to change that.</p><p><strong>mbstring.func_overload = 7 </strong>By default this is set to 0. You will need to change this.</p><p><strong>Pear</strong></p><p>Now you will enjoy quite a few pear module installations. This is hit or miss on how many your system will have installed by default. What you need is the following:</p><ul><li>HTTP_WebDAV_Server</li><li>Net_Socket</li><li>Auth_SASL</li><li>Net_IMAP</li><li>Net_Sieve</li><li>XML_Feed_Parser</li><li>Log</li></ul><p>Some of these modules can be found in Synaptic. The best way to locate them is do a search for &#8220;pear&#8221; (No quotes) and then mark the necessary modules for installation (and then, of course, install them). Those that you do not find you will have to install from the command line, like so:</p><p><em>sudo pear install MODULE_NAME</em></p><p>Typically these install very quickly.</p><p>You should now be at the point where all of the X&#8217;s are gone and all of the necessary warnings have been replaced with green checks as well. The next step is to click Continue with the Header Admin. That we will deal with in our next article.</p><p><strong>Final thoughts</strong></p><p>It may seem like eGroupware is a pain to install. It&#8217;s not really as bad as some I have tried to work with. But it is, most certainly, worth the effort.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/04/11/how-to-install-egroupware/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Post-install configurations for osTicket</title><link>http://www.ghacks.net/2010/03/30/post-install-configurations-for-osticket/</link> <comments>http://www.ghacks.net/2010/03/30/post-install-configurations-for-osticket/#comments</comments> <pubDate>Tue, 30 Mar 2010 11:22:46 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Project]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[troubleshooting]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[help desk]]></category> <category><![CDATA[helpdesk]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[trouble tickets]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24048</guid> <description><![CDATA[Recently I showed you how to get the open source osTicket up and running (see my article &#8220;Install osTicket for a free &#8211; open source &#8211; help desk tool&#8220;). That article only got the tool installed. But now what? How do you make that tool come to life and serve as your one and only [...]]]></description> <content:encoded><![CDATA[<p>Recently I showed you how to get the open source osTicket up and running (see my article &#8220;<a
title="Install osTicket for a free (open source) help desk tool" href="http://www.ghacks.net/2010/03/30/install-osticket-for-a-free-open-source-help-desk-tool/" target="_blank">Install osTicket for a free &#8211; open source &#8211; help desk tool</a>&#8220;). That article only got the tool installed. But now what? How do you make that tool come to life and serve as your one and only help desk solution?</p><p>In this article we will take a look at the necessary configurations to get osTicket up to speed for your help desk needs. You should find, upon completion of these configurations, osTicket is quite the useful help desk tool.</p><p><span
id="more-24048"></span><strong>Assumptions</strong></p><p>This article will assume your support staff is not terribly large and that you already have the necessary tools setup to take advantage of osTicket&#8217;s features. Such tools include an SMTP server for the outgoing alerts responses and a POP or IMAP server for incoming mail. And, of course, this will assume you have osTicket up and running. Finally, I will assume you took care of the initial configurations upon installation. These configurations are handled in the Settings tab and should be completed when you bring the site online after installation. NOTE: If, after you fill out the web-based installer, you get a blank screen &#8211; most likely you do not have php5-mysql installed. Install that and re-run the web install and you should be fine.</p><p><strong>First things first</strong></p><div
id="attachment_24051" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/ost_dept.png"><img
class="size-medium wp-image-24051 " src="http://www.ghacks.net/wp-content/uploads/2010/03/ost_dept-500x310.png" alt="" width="300" height="186" /></a><p
class="wp-caption-text">Figure 1</p></div><p>The first thing you will want to do is set up your departments. By default osTicket has two departments: Billing and Support. You may find this plenty. But for some consulting firms there may be more necessary. For example, you might need Residential Support and Commercial Support. Or you might want Remote and On Site. To set these up click on the Departments tab and then click the Add New Dept link.</p><p>If this department wants to have its very own email address, you will need to first create an email address for it. That includes both on your email server and in the Emails tab in osTicket (this is why it&#8217;s important to understand the flow of configuration for osTicket).  If the department just needs to use the same email addy as another, umbrella, department you can select it here. This is, after all, just the outgoing email address (which will probably want to be something like <em>support@yourdomain.com</em>.)</p><div
id="attachment_24052" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/ost_staff.png"><img
class="size-medium wp-image-24052 " src="http://www.ghacks.net/wp-content/uploads/2010/03/ost_staff-500x198.png" alt="" width="300" height="119" /></a><p
class="wp-caption-text">Figure 2</p></div><p>Once you have finished creating all the necessary departments you will want to the Staff tab and create the necessary elements here. In the Staff tab (see Figure 2)  you can set up both groups and staff members. Again, this will depend upon your needs. You might, for example, have certain staff that only do one particular type of work (say Residential vs. Commercial). Before you create those staff members, make sure you create any (if needed) groups they would belong to.</p><p>You will also notice there are groups. By default there are three groups: Admins, Managers, and Staff. These groups determine the permissions a staff member has. Use caution when you give a staff member Admin rights. You can, of course, add a new group and give that group specific permissions. Take a look at each group to see what their permissions are before you do this.</p><p>Finally you will want to take a look at the Help Topics tab. This is a very nice feature added to osTicket. What you can do with Help Topics is create a particular topic that has a specific Priority. Say you have a few clients that always get top priority. You can create a VIP (or such) category that has Emergency priority. This will always bump them to the top of the list. Is it fair? Not really. But when you have VIP-type clients, they expect VIP-type treatment.</p><p><strong>Final thoughts</strong></p><p>I hope that, upon setting up osTicket, you come to the same conclusion that I have drawn &#8211; this tool is the equal to some Help Desk tools costing quite a bit of your IT dollars. If you find a tip or trick that takes osTicket to the next level, share it with your fellow Ghacks readers.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/30/post-install-configurations-for-osticket/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Install osTicket for a free (open source) help desk tool</title><link>http://www.ghacks.net/2010/03/30/install-osticket-for-a-free-open-source-help-desk-tool/</link> <comments>http://www.ghacks.net/2010/03/30/install-osticket-for-a-free-open-source-help-desk-tool/#comments</comments> <pubDate>Tue, 30 Mar 2010 00:52:52 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[troubleshooting]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[help desk]]></category> <category><![CDATA[ticket system]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24036</guid> <description><![CDATA[The consulting firm I work for has tasked me with finding a good help desk system for us to use. I have spent quite a bit of time trying to find a solution that both has the features we need and isn&#8217;t too costly. There are a LOT of help desk tools available. Some of [...]]]></description> <content:encoded><![CDATA[<p>The consulting firm I work for has tasked me with finding a good help desk system for us to use. I have spent quite a bit of time trying to find a solution that both has the features we need and isn&#8217;t too costly. There are a LOT of help desk tools available. Some of them simply price themselves out of the middle-market. Others just don&#8217;t have the necessary features. Still, some don&#8217;t work. So this task has become quite the chore.</p><p>But during this process I thought I would share with you some of the tools I have tried. This one in particular is an open source trouble ticket tool called <a
title="osTicket" href="http://www.osticket.com/" target="_blank">osTicket</a>. osTicket has a fair amount of features &#8211; especially for a free system. It&#8217;s not ideal, but it&#8217;s far from the bottom of the barrel. The installation is fairly simple and straight-forward. And, it requires a database, so you know your tickets will scale better than your average ticket system using a flat file.</p><p>In this article I will show you how to get osTicket up and running.</p><p><span
id="more-24036"></span><strong>Requirements</strong></p><p>osTickets has few requirements:</p><ul><li>PHP &gt;= 4.3</li><li>MySQL &gt;= 4.1</li><li>php5-mysql</li></ul><p>That&#8217;s it. Of course you will have to be able to create a database for the tool. I prefer to use MySQL Workbench (read my article &#8220;<a
title="Complete database administration with MySQL Workbench" href="http://www.ghacks.net/2009/12/25/complete-database-administration-package-mysql-workbench/" target="_blank">Complete database administration with MySQL Workbench</a>&#8221; for more information.)</p><p>Once you have all the requirements met, it&#8217;s time to <a
title="osTicket download" href="http://www.osticket.com/downloads.php" target="_blank">download the file</a> and start the installation. The beginning steps are:</p><ol><li>Move the osticket-XXX.tar.gz (Where XXX is the release number.)</li><li>Create a directory for osTicket to live (let&#8217;s call it <strong>/var/www/support</strong>) with the command <em>sudo</em> <em>mkdir /var/www/support.</em></li><li>Unpack the osticket package with the command <em>sudo tar xvzf osticket-XXX.tar.gz</em>.</li><li>Move the necessary files from the newly created <strong>/var/www/osticket-XXX/uploads </strong>into <strong>/var/www/support</strong> with the command <em>mv /var/www/osticket-XXX/uploads/* /var/www/support.</em></li><li>Change the name of the ost-config.sample.php file with the command <em>mv /var/www/support/include/ost-config.sample.php /var/www/support/include/ost-config.php.</em></li><li>Give the ost-config.php file write permissions with the command <em>chmod 777 /var/www/support/include/ost-config.php</em>.</li><li>Finally, point your browser to <em>http://ADDRESS_TO_SERVER/support/setup </em>to start the installation process.</li></ol><div
id="attachment_24037" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/install1.png"><img
class="size-medium wp-image-24037 " src="http://www.ghacks.net/wp-content/uploads/2010/03/install1-500x386.png" alt="" width="300" height="232" /></a><p
class="wp-caption-text">Figure 1</p></div><p>When you start up the web interface you will find a few simple configuration options. Fill those out and click the Install button. After this runs you will be instructed to remove write access to the ost-config.php file. Do this with the command <em>sudo chmod ugo-w /var/www/support/include/ost-config.php. </em>Now you can log into the admin panel with the username/password combination you created in the web setup.</p><div
id="attachment_24038" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/install2.png"><img
class="size-medium wp-image-24038 " src="http://www.ghacks.net/wp-content/uploads/2010/03/install2-500x169.png" alt="" width="300" height="101" /></a><p
class="wp-caption-text">Figure 2</p></div><p>By default the system is set to off-line mode. This means the interface is only accessible to admins. You will see, at the top of the interface, a small link that allows you to Enable the interface for clients (see Figure 2). When you click that link you will open up the settings panel and, at the top of that page, you can mark your osTicket installation to be online. From this same page you can also configure the rest of your osTicket installation.</p><p><strong>Final thoughts</strong></p><p>Although osTicket doesn&#8217;t have every feature needed for a consulting firm, it does offer more features than most of the free offerings. If you&#8217;re looking for a help desk system, and your budget practically demands open source, you would be remiss to neglect osTicket.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/30/install-osticket-for-a-free-open-source-help-desk-tool/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Enable mod_rewrite in a Ubuntu server</title><link>http://www.ghacks.net/2009/12/05/enable-mod_rewrite-in-a-ubuntu-server/</link> <comments>http://www.ghacks.net/2009/12/05/enable-mod_rewrite-in-a-ubuntu-server/#comments</comments> <pubDate>Sat, 05 Dec 2009 21:00:12 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[mod_rewrite]]></category> <category><![CDATA[php]]></category> <category><![CDATA[rewrite engine]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21080</guid> <description><![CDATA[If you have done much work with Apache then most likely you have experienced a need for enabling the rewrite engine. If you are unfamiliar with the rewrite engine, you can think of it as a means for your web server to literally rewrite urls so they are easier for users to remember. So instead [...]]]></description> <content:encoded><![CDATA[<p>If you have done much work with Apache then most likely you have experienced a need for enabling the rewrite engine. If you are unfamiliar with the rewrite engine, you can think of it as a means for your web server to literally rewrite urls so they are easier for users to remember. So instead of having to enter:</p><p>http://192.168.1.100/rewrite.php?link=1</p><p>Your users would only have to type:</p><p>http://192.168.1.100/link2.html</p><p>Of course the rewrite engine serves as much more than just a means for your users to more easily remember addresses. Many server softwares (such as the social networking server <a
title="Elgg" href="http://www.elgg.org" target="_blank">Elgg</a>) depending upon the rewrite engine in order to function. Because of this, the rewrite engine is almost a necessity to have working. By default Apache does not have the rewrite engine on, so you have to configure it to work. The goal of this tutorial is to show you how to enable the rewrite engine in a Ubuntu server installation. This article will assume you already have your Ubuntu server as well as Apache up and running.</p><p><span
id="more-21080"></span></p><p><strong>What this involves</strong></p><p>In order to get the rewrite engine working for your web site you will have to take care of the following steps:</p><ol><li>Instruct Apache to load the <em>mod_rewrite </em>module.</li><li>Edit the document root entry so that the rewrite engine is allowed.</li><li>Create an <em>.htaccess </em> file to rewrite urls for you.</li></ol><p><strong>Creating a simple test</strong></p><p>Before we get to the actual configuration, the first thing to do is to set up a little rewrite test. Open up a terminal window (or log into your GUI-less server) and change to the <strong>/var/www</strong> directory. In that directory create a file, named <em>rewrite.php,</em> with the <a
title="Contents of the test page" href="http://pastebin.com/f1d68c8c1" target="_blank">following contents</a>. NOTE: Code is located on pastebin.com for ease of use.</p><p>Copy and paste the contents of that file into your <em>rewrite.php<strong> </strong><span
style="font-style: normal">file. If you visit that page, in a browser, without the rewrite engine working, you will quickly see that it will not work. So, let&#8217;s get rewrite working.</span></em></p><p><em><span
style="font-style: normal">Now you will have to create an <strong>.htaccess </strong>file in the <strong>/var/www/</strong> directory with the following contents:</span></em></p><p><code>RewriteEngine On<br
/> RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]</code></p><p><em><span
style="font-style: normal"><strong>Enabling the module</strong></span></em></p><p>In order to enable the <em>mod_rewrite</em> module in the Ubuntu server issue the following command:</p><p><em>sudo a2enmod rewrite</em></p><p>The above Apache2 Enable Module command will add the correct line in the <strong>/etc/apache2/apache2.conf </strong>file. That is the only change you need to make with the <strong>apache2.conf <span
style="font-weight: normal">file. Now it&#8217;s time to make a change to the document root. </span></strong></p><p>In older versions of Apache all virtual host directory directives were managed in the <strong>/etc/apache2/apache2.conf<span
style="font-weight: normal"> file. This has changed. Now these alterations are handled within the </span>/etc/apache2/sites-enabled/<span
style="font-weight: normal"> directory. Within that directory you will find, by default, a single file called </span>000-default<span
style="font-weight: normal">. </span> </strong>If you open that file up for editing you will see, at the top, the two sections you need to edit in order to enable the rewrite engine for the document root of your Apache server.</p><p>First look in the <em>&lt;Directory /&gt; </em>section and change the line:</p><p><em>AllowOverride None</em></p><p>to</p><p><em>AllowOverride All</em></p><p>Do the same for the <em>&lt;Directory /var/www/&gt; </em>section.</p><p>Once you have the file edited, restart Apache with the command:</p><p><em>sudo /etc/init.d/apache2 restart</em></p><p>Now revisit the <em>rewrite.php</em> page in your browser and you should see that rewriting is now working. Congratulations, you have just taken on step forward in opening up an entire world for your Apache needs.</p><p><strong>Final thoughts</strong></p><p>The rewrite engine is used by so many web-based tools. Upon installation of Apache, this should be one of the first tasks you tackle.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/12/05/enable-mod_rewrite-in-a-ubuntu-server/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>Apache troubleshooting tips</title><link>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/</link> <comments>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/#comments</comments> <pubDate>Sun, 08 Nov 2009 00:21:57 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[apache log]]></category> <category><![CDATA[apache2]]></category> <category><![CDATA[apache2ctl]]></category> <category><![CDATA[log files]]></category> <category><![CDATA[php]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=18266</guid> <description><![CDATA[How many times have you installed a LAMP server only to find Apache doesn&#8217;t seem to want to run right? Or you install a new module only to see Apache try to download pages as file, instead of displaying them on screen? There are a hundred and one thousand things that can go wrong with [...]]]></description> <content:encoded><![CDATA[<p>How many times have you installed a LAMP server only to find Apache doesn&#8217;t seem to want to run right? Or you install a new module only to see Apache try to download pages as file, instead of displaying them on screen?</p><p>There are a hundred and one thousand things that can go wrong with any web server installation. From a fresh installation to an installation that has been running for a long time, you never know when something is going to cause your web server to go astray. When it does happen, it&#8217;s always nice to know that, usually, Occam&#8217;s Razor applies.</p><p>In this tutorial you will find some advice that will help you through some of the more common issues that can pop up with an Apache web server.</p><p><span
id="more-18266"></span><strong>Is your server actually running?</strong></p><p>Believe it or not, this has happened to plenty of administrators. You take the server down, do some maintenance, and when you go to check out the server you&#8217;re getting errors. The first thing you do, naturally, is check out that <strong>/etc/apache2/apache.conf</strong> file to make sure your syntax is correct. But it&#8217;s perfect! What&#8217;s up? The first thing you might want to check is to make sure the server is running. But you don&#8217;t want to just issue the command to start the server or reload the server. Instead, issue the command:</p><p><em>sudo /etc/init.d/apache2 status</em></p><p>Which should return something like:</p><p><em>* apache is running (pid 9751).</em></p><p>If not, start the server with either:</p><p><em>sudo /etc/init.d/apache2 start</em></p><p>or</p><p><em>sudo apache2ctl start</em></p><p>NOTE: If you are using a distribution like Fedora, SuSE, or Mandriva you will need to first <em>su </em>to the root user and issue the above commands WITHOUT using <em>sudo</em>.</p><p><strong>It&#8217;s not running and it won&#8217;t start</strong></p><p>Did you just make changes to your Apache configuration file? Are the changes correct? If you&#8217;re not sure, you can use the <em>apache2ctl </em>command to check the syntax of your configuration file. This is done with the command:</p><p><em>sudo apache2ctl configtext</em></p><p><em><span
style="font-style: normal">The above command should report:</span></em></p><p><em><span
style="font-style: normal">Syntax OK</span></em></p><p><em><strong><span
style="font-style: normal"><span
style="font-weight: normal">If you don&#8217;t get an OK, you will get information that points to the errors in your configuration file. </span></span></strong></em></p><p><em><strong><span
style="font-style: normal"><span
style="font-weight: normal"><strong>Apache wants to download .php files!</strong></span></span></strong></em></p><p><em><strong><span
style="font-style: normal"><span
style="font-weight: normal"><strong><span
style="font-weight: normal">This is another common issue. When you add a new tool on your web server (such as Drupal), if your configuration file is set up properly, any .php file might not be displayed. Instead any attempt to view a .php file will instead have your browser trying to download the file. Why is this? Apache must be informed that certain extensions are to be displayed, not downloaded. This is done from within the Apache configuration file. Open up that file (in the Ubuntu server it will be </span>/etc/apache2/apache2.conf<span
style="font-weight: normal">) and first look for the following line:</span></strong></span></span></strong></em></p><p><em><strong><span
style="font-weight: normal"><strong><span
style="font-weight: normal">DirectoryIndex index.html</span></strong></span></strong></em></p><p>If that file doesn&#8217;t include <em>index.php </em>nearly all sites that use php will be rendered useless.</p><p>The second line to look for is:</p><p><em>AddHandler application/x-httpd-php .php</em></p><p>If you find this line, and it is commented out, make sure you uncomment it by removing the &#8220;#&#8221; character. If it is not there add it to the bottom of the configuration file.</p><p>And, as always, when you make a change to the configuration file, restart Apache.</p><p><strong>Know where to look for problems</strong></p><p>Finally, it is crucial that you know where to first turn when the above doesn&#8217;t help you out. Any time I have an issue with Apache where Occam&#8217;s Razor does not apply, the first place I turn is the log files.</p><p>If you look in <strong>/var/log/apache2</strong> you will find, at least, the following files:</p><ul><li><span
style="background-color: #ffffff">access.log: This keeps track of any connection made to your server.</span></li><li><span
style="background-color: #ffffff">error.log: This keeps track of any errors that occur with Apache.</span></li><li><span
style="background-color: #ffffff">other_vhosts_access.log: This is where virtual hosts will log when the virtual host has not been prescribed its own log file.</span></li></ul><p>Of course, as your site evolves so will your available log files. Regardless of what you find in <strong>/var/log/apache2</strong>, that is where you should always first turn when you have problems. Even before you google.</p><p><strong>Final thoughts</strong></p><p>Now you should be able to handle some of the more common issues with the Apache server. And if your problem isn&#8217;t common, you also know where to turn to find clues that will lead you down the right path to correction.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Local Apache Web Server Wampserver</title><link>http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/</link> <comments>http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/#comments</comments> <pubDate>Thu, 17 Sep 2009 09:08:17 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[apache server]]></category> <category><![CDATA[apache web server]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[php]]></category> <category><![CDATA[wampserver]]></category> <category><![CDATA[webmaster]]></category> <category><![CDATA[xampp]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16430</guid> <description><![CDATA[Running a local Apache web server is essential for many webmasters. It is always a good idea to test code locally before publishing it on the Internet. Professional webmasters usually test their code in a local web server before it gets published. Mainly to avoid possible downtimes in the live environment but also to avoid [...]]]></description> <content:encoded><![CDATA[<p>Running a local Apache web server is essential for many webmasters. It is always a good idea to test code locally before publishing it on the Internet. Professional webmasters usually test their code in a local web server before it gets published. Mainly to avoid possible downtimes in the live environment but also to avoid the hassle of having to upload and edit code on the Internet or network. It&#8217;s simply faster to test everything locally.</p><p>Wampserver is an Apache web server for the Windows operating system. It provides in many regards the same functionality of other web server solutions like <a
href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/">XAMPP</a> or <a
href="http://www.ghacks.net/2009/03/28/home-web-server/">Home Web Server</a> which we have reviewed in the past. The latest version of the local web server package will install Apache 2.2.11, MySQL 5.1.36 and PHP 5.3.0 on the local computer system.</p><p><span
id="more-16430"></span>One interesting unique feature is the ability to add different versions of Apache, MySQL and PHP to the installation in the form of add-ons. This can be very handy to test a website locally under multiple different Apache, MySQL or PHP release versions.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/09/apache_web_server.gif" alt="apache web server" title="apache web server" width="281" height="289" class="alignnone size-full wp-image-16431" /></p><p>The installation of Wampserver will always install the latest versions of Apache, MySQL and PHP. One interesting security feature is the ability to limit access to the web server to localhost. It is required to click on the &#8220;put online&#8221; option to make it available to other computer systems as well.</p><p>Additional Apache, MySQL and PHP versions can be installed from the Wamp add-ons <a
href="http://www.wampserver.com/en/add-ons.php">page</a>. All add-ons are provided as executables that can be installed easily on the operating system.</p><p>Webmasters who need to test code offline can use Wampserver to do so. It is especially useful to test code against multiple versions of Apache, MySQL and PHP. Something that the other home server solutions do not provide.</p><p><a
href="http://www.wampserver.com/en/">Wampserver</a> is Open Source and can be downloaded from the developer&#8217;s website.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to: Install a LAMP server</title><link>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/</link> <comments>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/#comments</comments> <pubDate>Thu, 23 Jul 2009 17:43:55 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[LAMP]]></category> <category><![CDATA[lamp server]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[php]]></category> <category><![CDATA[tasksel]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14678</guid> <description><![CDATA[If you&#8217;ve read enough of my Ghacks tutorials you have most likely come across mention of a LAMP server. If you are not sure what a LAMP server is: Linux Apache MySQL P (can mean PHP or PERL &#8211; depends upon your needs) LAMP servers are very popular, cheap, effective, flexible, and reliable servers. But [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve read enough of my Ghacks tutorials you have most likely come across mention of a LAMP server. If you are not sure what a LAMP server is:</p><ul><li>Linux</li><li>Apache</li><li>MySQL</li><li>P (can mean PHP or PERL &#8211; depends upon your needs)</li></ul><p>LAMP servers are very popular, cheap, effective, flexible, and reliable servers. But how are they installed? Actually, it&#8217;s not that hard. In this tutorial I am going to show you how to install a LAMP in two different ways: From the command line (using separate tools) and using the <em>tasksel</em> tool.</p><p><span
id="more-14678"></span><strong>Hardware needed</strong></p><p>Fortunately a LAMP server can be installed on lower-end hardware and still serve as a fairly efficient server. Naturally if you are going to be using your LAMP server for high traffic, you will want to select your hardware wisely.</p><p><strong>Install prerequisite</strong></p><p>Before you begin the installation of your server you will need to have your operating system installed. This is the &#8220;L&#8221; of LAMP. So find your favorite Linux distribution and install the operating system. For the purposes of this installation I am going to be installing on a Ubuntu 9.04 server installation. This will be a console only server (no GUI desktop) which is fine because the installation is done via command line only.</p><p>Once you have your operating system installed you are ready to install your server.</p><p><strong>Apache</strong></p><p>This is the easiest portion to install. Either log in to your console or open up a terminal window (if you are working from a GUI desktop) and enter the following command:<br
/> <code>sudo apt-get install apache2</code></p><p>You will have to enter your sudo user password for this installation to continue. Once this installation is complete check it by pointing a browser to that server IP address. You should instantly know if Apache is up and running.</p><p><strong>PHP</strong></p><p>For the purposes of this article we will assume the &#8220;P&#8221; stands for PHP. To install PHP (and all of its requirements) issue the command:</p><p><code>sudo apt-get install php5 libapache2-mod-php5</code></p><p>Once this installation is complete restart Apache with the command:</p><p><code>sudo /etc/init.d/apache2 restart</code></p><p>Let&#8217;s make sure this portion works properly. To test this create a file in the Apache document root (for this install it will be <strong>/var/www</strong>) called test.php. The contents of this file will be:<br
/> <code>&lt; ?php phpinfo(); ?&gt;</code></p><p>Save that file and then point your browser to http://IP_ADDRESS/test.php</p><p>Where IP_ADDRESS is the actual IP address of your server.</p><p>You should see &#8220;Test PHP Page&#8221; written on your browsers page. If so, you&#8217;re good to go.</p><p><strong>MySQL</strong></p><p>Now to install MySQL. To do this issue the command:</p><p><code>sudo apt-get install mysql-server</code></p><p>Once this is done you then need to set a password for MySQL. To do this issue the command:</p><p><code>mysql -u root</code></p><p>which will put you in the MySQL prompt. From this prompt (which looks like <em>mysql&gt; </em>) enter the command:<br
/> <code>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');</code></p><p>Where YOURPASSWORD is the password you want to use for the mysql user.</p><p>Now start your MySQL server with the command:</p><p><code>/etc/init.d/mysql start</code></p><p>That&#8217;s it. Your LAMP server is up and running.</p><p><strong>The quick version</strong></p><p>You can actually install a full-on LAMP server on a (Ubuntu server install) with a single command:</p><p><code>sudo tasksel</code></p><p>You will need to select LAMP from the list and you will eventually be prompted for a MySQL password. That&#8217;s it.</p><p><strong>Final thoughts</strong></p><p>Getting a powerful, flexible web server up and running will take you less time and effort than you think. LAMP servers are an outstanding choice for your web servers&#8217; needs.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>Install mod_security for better Apache security</title><link>http://www.ghacks.net/2009/07/15/install-mod_security-for-better-apache-security/</link> <comments>http://www.ghacks.net/2009/07/15/install-mod_security-for-better-apache-security/#comments</comments> <pubDate>Wed, 15 Jul 2009 01:09:31 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[apache security]]></category> <category><![CDATA[httpd.conf]]></category> <category><![CDATA[mod_security]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14396</guid> <description><![CDATA[Recently I wrote an article to help you secure your Linux Apache Installation (see &#8220;Five ways to help secure Apache on Linux&#8221;). In that article I mentioned using Apache&#8217;s mod_security, but didn&#8217;t have the room for a tutorial on its installation. Well, here&#8217;s the how to on installing this outstanding helper for Apache security. What [...]]]></description> <content:encoded><![CDATA[<p>Recently I wrote an article to help you secure your Linux Apache Installation (see &#8220;<a
title="Five ways to secure Apache on Linux" href="http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/" target="_blank">Five ways to help secure Apache on Linu</a>x&#8221;). In that article I mentioned using Apache&#8217;s mod_security, but didn&#8217;t have the room for a tutorial on its installation. Well, here&#8217;s the how to on installing this outstanding helper for Apache security.</p><p><strong>What is mod_security?</strong></p><p>The mod_security addition to Apache is a modular way to add or remove various security features to your Apache server. You can add or remove these modules by simply adding or removing (or commenting out) lines to your <strong>httpd.conf</strong> file and restarting the httpd daemon. And installing mod_rewrite is as easy as it is to install.</p><p><span
id="more-14396"></span><strong>Getting and installing</strong></p><p>I am going to take you through the installation of mod_security on a CentOS distribution. There will be a combination of using yum and installing from source. I will assume Apache is already installed.</p><p>There are a few ways to install this package. You can install from source, but that will require you install numerous dependencies just for the compilation alone. Since we&#8217;re looking at CentOS (and this will apply to Red Hat and Fedora as well) you can use Yum for easy installation. But if you fire Yum up you will find that mod_security is not in the standard repositories. Fortunately there is an easy way to add a repo for this installation. The command to add the repostority is:<br
/> <code>su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'</code></p><p>You will have to answer &#8216;Y&#8217; to a couple of questions to finish the installation. Once you have added the repository issue the command:</p><p><em>yum install mod_security</em></p><p>to install the system. You will have to accept any dependencies needed for your system to complete the installation. Once mod_security is installed you are ready to get it up and running on your Apache server.</p><p><strong>Basic configuration</strong></p><p>Issue the command:</p><p><em>grep -n security2_module httpd.conf<br
/> </em></p><p>from within the <strong>/etc/httpd/conf/ </strong>directory. If you do not see any output that means you have to add the directive to your <strong>httpd.conf</strong> file. This is simple. At the end of your module loading section add the following line:</p><p><em>LoadModule security2_module modules/mod_security2.so<br
/> </em></p><p>Now save the file and restart Apache with the command:</p><p><em>/etc/rc.d/init.d/httpd restart</em></p><p>You should not receive any errors at this point.</p><p>The most difficult aspect of using mod_security is the the IfModule section in the <strong>httpd.conf</strong> file. The reason this section is so complex is because there are so many possible options. The best chance you have of getting familar with this is by taking a glance at the <a
title="Configuration Directives" href="http://modsecurity.org/documentation/modsecurity-apache/2.5.9/html-multipage/configuration-directives.html" target="_blank">Configuration Directives</a> page on the mod_security web site. To give you an example of a configuration directive section take a look at the following sample in Figure 1.</p><div
id="attachment_14398" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/07/mod_sec1.png"><img
class="size-medium wp-image-14398" src="http://www.ghacks.net/wp-content/uploads/2009/07/mod_sec1-500x310.png" alt="Figure 1" width="300" height="186" /></a><p
class="wp-caption-text">Figure 1</p></div><p>As you can see this section seems fairly complex. But this is mostly a basic sample of what mod_security can do. In this sample we do the following:</p><ul><li>SecFilterEngine On: Start the engine</li><li>SecFilterDefaultAction: Set the default action for the module. Notice in the sample code i have the default action set to &#8220;allow&#8221;. For higher security you will want to set this to &#8220;deny&#8221;.</li><li>SecFilterScanPOST: Tell mod_security to scan Payloads as well as Get requests.</li><li>SecFilterCheckURLEncoding: Check for valid hex values in requests.</li><li>SecFilterCheckUnicoding: Set this to off if your web site does not use unicoding.</li><li>SecFilterForceByteRange: Set allowable ascii values in GET request and in FORM data posts.</li><li>SecUploadDir: Set the upload directory.</li><li>SecUploadKeepFiles: This must be set to On for the above to be used. For security&#8217;s sake you want to set it to  Off so upload files are not saved.</li><li>SecAuditEngine: Enables the logging facility. This value is set to either RelevantOnly or DynamicOrRelevant.</li><li>SecAuditLog: The location of the log file.</li><li>SecFilterDebugLog: Set the debug log file.</li><li>SecFilterDebugLevel: Set the debug level.</li></ul><p>That is the minimum directives I would employ for your mod_security configuration.</p><p>Once you finish this section, restart Apache again and enjoy a much more secure Apache server.</p><p><strong>Final thoughts</strong></p><p>Of course this just scratches the surface of mod_security. To really get the most of this powerful feature you will want to really comb through the directives section on the mod_security site.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/07/15/install-mod_security-for-better-apache-security/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Five ways to help secure Apache on Linux</title><link>http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/</link> <comments>http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/#comments</comments> <pubDate>Mon, 13 Jul 2009 20:09:06 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[document root]]></category> <category><![CDATA[mod_security]]></category> <category><![CDATA[securing apache]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14373</guid> <description><![CDATA[Apache is one of the most popular web servers available. And most Apache installations are running on Linux servers. Anyone running Linux will tell you that the operating system (be it on a server or desktop) enjoys a level of security many operating systems do not enjoy. But does that mean you can just install [...]]]></description> <content:encoded><![CDATA[<p>Apache is one of the most popular web servers available. And most Apache installations are running on Linux servers. Anyone running Linux will tell you that the operating system (be it on a server or desktop) enjoys a level of security many operating systems do not enjoy. But does that mean you can just install Apache and assume it 100% safe? No. There are always ways to improve your security on just about every level.</p><p>In this article I will show you five simple ways to make your Linux Apache installation more secure. And of course you should always know that even with five new means of making your install more secure, that doesn&#8217;t mean it is perfectly safe from attack. Even after securing your installation, you should always keep watch over your server by checking log files and using standard security tools.</p><p>With that said, let&#8217;s get our Apache security on!</p><p><span
id="more-14373"></span>1. Update, update, update! One of the biggest no nos Linux administrators make is to &#8220;set it and forget it&#8221;. This should not be your standard policy. There are always updates that close new holes and patch security flaws. This holds true for Apache as much as it does any other system or application. Keep watch, using your normal means of update, for any security update for Apache or any constituent component you have installed. By doing this you will ensure your web server is safe from any new known issues.</p><p>2. Disable modules you do not use. If you check the Apache configuration file. Most often this file is called <strong>httpd.conf</strong> and its location will depend upon what distribution you are running (For example CentOS has this file in <strong>/etc/httpd/conf/</strong> whereas Ubuntu locates it in <strong>/etc/apache2</strong>). If you examine that file you will see quite a few modules listed. These modules will look like:</p><p><code>LoadModule auth_basic_module modules/mod_auth_basic.so<br
/> LoadModule auth_digest_module modules/mod_auth_digest.so<br
/> LoadModule authn_file_module modules/mod_authn_file.so<br
/> LoadModule authn_alias_module modules/mod_authn_alias.so<br
/> LoadModule authn_anon_module modules/mod_authn_anon.so</code></p><p>You might have to look up what some of these modules do to know if you need them or not. But there is no reason to load a module if you are not going to use it. To keep a module from loading place a comment in front of the line. You will have to restart Apache for this change to take effect.</p><p>3. Limit the request sizes allowed. Denial of Service attacks remain one of the most popular attacks on web sites because they are the easiest to pull off. One way to protect your site from DoS attacks is to use the following directives wisely: LimitRequestBody, LimitRequestFields, LimitRequestFieldSize, LimitRequestLine, and LimitXMLRequestBody within a Directory tag (the document root is probably the best place for this). By default Apache sets these directives to unlimited which means any size of request can be made. You will want to investigate these directives and configure them to suit your web sites needs. Unless it is absolutely necessary, do not set them to unlimited.</p><p>4. Use mod_security. This is the most important module you can use. This one module handles such tasks as: Simple filtering, regular expression filtering, server identity masking, and URL encoding validation. It is likely you will have to install mod_security, because the default Apache install does not include this module. Once installed you will want to make sure you at least add the &#8220;unique_id&#8221; and &#8220;security2&#8243; directives in your Apache module section and then restart Apache. I will deal with this module in its own tutorial coming up very soon.</p><div
id="attachment_14375" class="wp-caption alignleft" style="width: 205px"><img
class="size-full wp-image-14375" src="http://www.ghacks.net/wp-content/uploads/2009/07/apache.png" alt="Figure 1" width="195" height="125" /><p
class="wp-caption-text">Figure 1</p></div><p>5. Restrict browsing to your document root. The last thing you want is to allow browser to peek outside of the Apache document root (Such as <strong>/var/www/html </strong>or <strong>/var/www/</strong>). To do this you will want to configure your document root directory entry as shown in Figure 1. This will</p><p>Of course if you want to add options to any directory inside of the document root you will have to give that directory its own Directory entry.</p><p><strong>Final thoughts</strong></p><p>There are plenty more ways to secure your Apache installation, but these will get you started. Can you think of other ways to secure an Apache installation? If so, share them with your fellow ghacks readers.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Create Interactive Classroom Pages with CourseForum</title><link>http://www.ghacks.net/2009/03/23/create-interactive-classroom-pages-with-courseforum/</link> <comments>http://www.ghacks.net/2009/03/23/create-interactive-classroom-pages-with-courseforum/#comments</comments> <pubDate>Mon, 23 Mar 2009 14:06:13 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Project]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[classroom]]></category> <category><![CDATA[classroom software]]></category> <category><![CDATA[courseforum]]></category> <category><![CDATA[courses]]></category> <category><![CDATA[wiki]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=11405</guid> <description><![CDATA[If you are a teacher or have any need for a classroom-based Wiki project, I have the perfect solution for you. I discovered CourseForum a few years back when I was looking for a web-based software that could help a peer create a web site for her class that could help students stay organized. There [...]]]></description> <content:encoded><![CDATA[<p>If you are a teacher or have any need for a classroom-based Wiki project, I have the perfect solution for you. I discovered <a
title="CourseForum" href="http://www.projectforum.com/cf/index.html" target="_blank">CourseForum</a> a few years back when I was looking for a web-based software that could help a peer create a web site for her class that could help students stay organized. There were a number of possibilities, but none of them as simple to use as CourseForum. With this web-based software students could:</p><ul><li>Get course information</li><li>Contact the instructor</li><li>Read or download lecture notes</li><li>Get assignments</li><li>Ask questions and get answers</li><li>Communicate with other students</li></ul><p>CourseForum is incredibly easy to &#8220;install&#8221; on Linux, Windows, Mac,? FreeBSD, or Solaris and can be accessed from any web browser. Let&#8217;s take a look at this classroom software from the Linux point of view.</p><p><span
id="more-11405"></span><strong>Getting and Install</strong>ing</p><p>Since CourseForum even has its own server built in you can install CourseForum anywhere on a Linux machine. CourseForum comes in a single executable binary that starts and runs CourseForum on port 3455. So after you download the demo follow these steps (as either the root user or using sudo):</p><p>Untar the package into your servers&#8217; document root (i.e. <strong>/var/www/html</strong> for Fedora <strong>/var/www </strong>in Ubuntu)</p><p>Change into the newly created directory (<strong>courseforum-linux</strong>) and issue the command:</p><p><em>./courseforum &amp;</em></p><p>The CourseForum daemon will start and you can now point your browser to:</p><p>http://IP_OR_DOMAIN:3445</p><p>Where IP_OR_DOMAIN is either the IP address or domain the server is on.</p><div
id="attachment_11404" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/courseforum_admin.png"><img
class="size-medium wp-image-11404" src="http://www.ghacks.net/wp-content/uploads/2009/03/courseforum_admin-500x275.png" alt="CourseForum Admin Page" width="300" height="165" /></a><p
class="wp-caption-text">CourseForum Admin Page</p></div><p>This address will take you to the front page of CourseForum. The first thing you will need to do (before you can do anything else) is set an administrative password. Once you do that you can access the administration page and start building your course. NOTE: The demo is restricted to only a single course. If you purchase the full version you can create unlimited courses.</p><p>As you can see (in the image to the left) all administration tasks are taken care of in one window. There isn&#8217;t a lot of admin work to do with this software which makes it an even better solution for busy instructors.</p><p>Some of the more important tasks your instructors will want to do are:</p><ul><li>Messages: This is really just the welcome message displayed on the front page of CourseForum.</li><li>Custom Links: This isn&#8217;t really what it sounds like. What this feature does is allow you to create custom? commands that can do any number of things like formatting or integrating third-party content. There is a good <a
title="CourseForum Custom Links Howto" href="http://www.courseforum.com/howto_customlinks.html" target="_blank">how-to page</a> on the CourseForum site to illustrate how these are created.</li><li>RSS/Email Notification: If you want to enable RSS feeds and/or email notification on your CourseForum site you will have to enter the information for your SMTP server here.</li><li>Web Views: This allows you to create a read-only version of the CourseForum. Since the basis of CourseForum is a wiki, any registered user will be able to edit pages, so you will want to be ablel to serve up versions of pages (such as Syllaubus, lectures, etc) that are read-only for the public to view.</li></ul><p>There is one administrative task I would highly recommend. When you create a new course you will have to administer that course independently of the site administration (In other words it has its own admin page). Within the course administration page you will want to take care of at least two things:</p><ul><li>Check the &#8220;Only course administrator can create projects&#8221; check box.</li><li>Under the Require Password dropdown select &#8220;To edit pages&#8221; otherwise any registered user can edit your course pages.</li></ul><p>And that&#8217;s pretty much it. The rest of the tool works like a standard Wiki page.</p><p><strong>Final Thoughts</strong></p><p>If you have been looking for a tool to allow students (of any type) to not only stay current in your classroom but also be able to interact, CourseForum might very well be the solution for you. I have deployed it for a few teachers who have been very pleased with the results. It&#8217;s remarkably seasy to install, simple to use, reliable, and it&#8217;s a fairly cheap solution ($119.00 USD).</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/03/23/create-interactive-classroom-pages-with-courseforum/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Adding a Name-Based Virtual Host in Apache</title><link>http://www.ghacks.net/2009/03/17/adding-a-name-based-virtual-host-in-apache/</link> <comments>http://www.ghacks.net/2009/03/17/adding-a-name-based-virtual-host-in-apache/#comments</comments> <pubDate>Tue, 17 Mar 2009 15:27:52 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[virtual hosts]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=11288</guid> <description><![CDATA[If you are an Apache user for the hosting of either internal or external web sites then you know how flexible this web server can be. But did you know you can host more than one site on that server? You can thanks to Virtual sites. You can host virtual sites based on either IP [...]]]></description> <content:encoded><![CDATA[<p>If you are an Apache user for the hosting of either internal or external web sites then you know how flexible this web server can be. But did you know you can host more than one site on that server? You can thanks to Virtual sites. You can host virtual sites based on either IP address or Name. If IP addresses are in short supply the best choice, of course, is name-based virtual hosting.</p><p>In this article I will show you how to add name-based virtual hosts in your Apache web server. This will require you to edit the <strong>/etc/httpd/conf/httpd.conf</strong> file so be prepared for some command-line action. NOTE: This file can be located in various locations</p><p><span
id="more-11288"></span></p><p>If you&#8217;ve never edited your <strong>httpd.conf</strong> file don&#8217;t worry, it&#8217;s not that difficult. Just make sure you use good comments so you know what you did and where you did it. Otherwise your virtual host section could get lost in the other sections.</p><p>The section of Apache where your virtual hosts will go is called, aptly, Virtual Hosts. The format of an entry looks like this:</p><p><code>&lt;VirtualHost *:80&gt;<br
/> ServerAdmin admin@dummy-host.example.com<br
/> DocumentRoot /www/docs/dummy-host.example.com<br
/> ServerName dummy-host.example.com<br
/> ErrorLog logs/dummy-host.example.com-error_log<br
/> CustomLog logs/dummy-host.example.com-access_log common<br
/> &lt;/VirtualHost&gt;</code></p><p>Before you actually start configuring your virtual host you need to make sure you have the NameVirtualHosts line uncommented out. The line will look like:</p><p>NameVirtualHosts *</p><p>You can find the line by using the <em>grep </em>command like so:</p><p><em>grep -n NameVirtualHosts /etc/httpd/conf/httpd.conf</em></p><p>(NOTE: Edit the path to your httpd.conf file to reflect your setup.)</p><p>The <em>grep</em> command will return to you which line the NameVirtualHost entry is on. Now open up the Nano editor and scroll down a bit. You can hit the key combination Ctrl-c to find out what line you are on. Once you find the line you will remove the &#8220;#&#8221; character (no quotes).</p><p>With that out of the way you are ready.</p><p>To illustrate how this is done I will show you how to create a virtual server for mail. The following assumes the doc root is <strong>/var/www/. </strong>Add the following entries to your <strong>httpd.conf</strong> file:</p><p><code>&lt;VirtualHost *:80&gt;<br
/> <span
class="indent"> DocumentRoot /www/yourcompany<br
/> ServerName www.yourcompany.com<br
/> # Other directives here<br
/> </span>&lt;/VirtualHost&gt;</code></p><p><code>&lt;VirtualHost *:80&gt;<br
/> <span
class="indent"> DocumentRoot /www/mail<br
/> ServerName mail.yourcompany.com<br
/> # Other directives here<br
/> </span>&lt;/VirtualHost&gt;</code></p><p>NOTE: Where <em>yourcompany.com</em> is the actual FQDN you use.</p><p>NOTE: If you need to change your port you can change it to suit your needs from the default port 80.</p><p>The above is the bare minimum configuration for your virtual servers. There are a LOT of possible directives you can use. For example, you might want to add error logging to these virtual hosts for debugging purposes. To add error logs to your virtual mail host? you would add the lines:</p><p><code>ErrorLog /var/log/httpd/mail-error_log common<br
/> CustomLog /var/log/httpd/mail-access_log common</code></p><p>To your mail virtual host entry (above the &lt;/VirtualHost&gt; line.)</p><p>Once you have these entries complete you will need to save the <strong>httpd.conf</strong> file and restart Apache. To restart Apache issue one of the following commands:</p><p><em>/etc/rc.d/ini</em>t.d/httpd restart</p><p>or</p><p><em>/etc/init.d/apache2 restart</em></p><p>You&#8217;re done. You should now be able to hit the new virtual hosts.</p><p><strong>Final Thoughts</strong></p><p>Creating virtual hosts is a quick way to expand the capabilities of your Apache server, cut costs, and save IP addreses. Have you ever deployed virtual hosts with Apache? If so, share your experiences.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/03/17/adding-a-name-based-virtual-host-in-apache/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Portable Web Server</title><link>http://www.ghacks.net/2008/12/28/portable-web-server/</link> <comments>http://www.ghacks.net/2008/12/28/portable-web-server/#comments</comments> <pubDate>Sun, 28 Dec 2008 15:28:53 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[apache portable]]></category> <category><![CDATA[apache server]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[pearl]]></category> <category><![CDATA[php]]></category> <category><![CDATA[portable web server]]></category> <category><![CDATA[server2go]]></category> <category><![CDATA[sqlite]]></category> <category><![CDATA[web server]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9407</guid> <description><![CDATA[Server2Go is a portable web server that can be run from any storage space in a Windows environment. It can be placed on USB devices, removable devices, CDs, DVDs or the hard drive of the computer. It requires no installation at all and can be run right from the location where it has been placed [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.server2go-web.de/download/download.html">Server2Go</a> is a portable web server that can be run from any storage space in a Windows environment. It can be placed on USB devices, removable devices, CDs, DVDs or the hard drive of the computer. It requires no installation at all and can be run right from the location where it has been placed it.</p><p>The web server can be downloaded in various configurations. The various configurations range from a bare-bone Apache web server to a web server supporting MySQL, SQLite, Pearl and PHP. The configuration only has an effect on the type of applications that can be run on the web server. Most users will probably need at least MySQL and PHP support to run their websites locally.</p><p>The web server can be started by double-clicking on the Server2Go.exe executable file in the root directory of the server. This will load the various web server modules and display a start page in the web browser. The pms_config.ini file can be used to change various settings of the web server including the default web browser, the port and whether the modules like MySQL or PHP should be started as well.</p><p><span
id="more-9407"></span><img
src="http://www.ghacks.net/wp-content/uploads/2008/12/server2go-500x253.jpg" alt="server2go" title="server2go" width="500" height="253" class="alignnone size-medium wp-image-9408" /></p><p>The actual files of a website are placed in the htdocs directory of the web server. Loading them can be as easy as pointing your browser to 127.0.0.1:4001 or some subdirectory of it depending on the type of site.</p><p>MySQL comes with phpMyAdmin which is accessible from the main interface of the web server. Server2Go offers an uncomplicated way to run a web server, it is especially helpful in environments where software installations are restricted.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/12/28/portable-web-server/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Secure your server with htaccess</title><link>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/</link> <comments>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/#comments</comments> <pubDate>Mon, 31 Mar 2008 17:08:47 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Security]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[basic auth]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[htpasswd]]></category> <category><![CDATA[password protection]]></category> <category><![CDATA[website]]></category> <category><![CDATA[website security]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=3672</guid> <description><![CDATA[I apologize if this topic drifts a bit away from the usual ones you find here at ghacks but I thought it would be extremely useful for everyone who has a server or webspace that supports htaccess and htpasswd. Htaccess files can do much more than just secure a directory on your server or website but I want to concentrate on this topic because it is something that I have been using on some of my websites for a very long time to increase security.]]></description> <content:encoded><![CDATA[<p>I apologize if this topic drifts a bit away from the usual ones you find here at ghacks but I thought it would be extremely useful for everyone who has a server or webspace that supports htaccess and htpasswd. Htaccess files can do much more than just secure a directory on your server or website but I want to concentrate on this topic because it is something that I have been using on some of my websites for a very long time to increase security.</p><p>I use it mainly to secure certain directories on my websites from being accessed without the proper authorization. This is the admin directory in the case of WordPress for instance but could also be used to secure a directory that hosts some valuable files.</p><p>I would like to point out two possibilities that secure a directory with .htacess. The first is to protect the directory by only allowing users with a certain IP or IP range access to it. Everyone else would receive an access denied error message.</p><p><span
id="more-3672"></span>The second possibility would be to create usernames and passwords that have to be supplied before accessing the content.</p><p><strong>IP Protection:</strong></p><p>Create a .htaccess file and add the following code to it:</p><p><code>AuthName "Protected Content"<br
/> AuthType Basic<br
/> <Limit
GET POST><br
/> order deny,allow<br
/> deny from all<br
/> #Comment<br
/> allow from 255.255.255.255<br
/> </Limit></code></p><p>Change the IP address in the last line to the one used by the user / users. You can use wildcards * if the user is receiving dynamic IPs from his ISP. It is possible to add as many allow from lines to the .htaccess file as you want. Place that htaccess file in the directory that you want to protect. (all subdirectories are affected as well.</p><p>The problem with this kind of protection is twofold. If your IP changes, say you are on holiday or accessing from a different location, you need to add or change the IPs in the htaccess code. Users who happen to have a IP of that range can access the content without problems. This is usually a user from the same ISP.</p><p>A more secure protection is the basic auth protection.</p><p><strong>Password Protection:</strong></p><p>Whenever a user tries to access a directory or file a popup will appear asking the user for a username and password. This method requires two files, a htaccess file and a htpasswd file. The htpasswd file stores the usernames and encrypted passwords and should be placed outside of the root directory of the website.</p><p><code>AuthName "Restricted Area"<br
/> AuthType Basic<br
/> AuthUserFile /path/to/.htpasswd<br
/> AuthGroupFile /dev/null<br
/> require valid-user</code></p><p>Since the passwords are encrypted you need to use a script to do that. A working one is the <a
href="http://www.htaccesstools.com/htpasswd-generator/">htpasswd</a> Content Generator. Just enter a username and password and click on encrypt. Paste the line on the results page into the htpasswd file and place it exactly in the path that you specified in AuthUserFile.</p><p>It is possible to combine both protections for added security. I would begin by evaluating if your webhost is allowing those kind of files.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Install Wikipedia Locally</title><link>http://www.ghacks.net/2008/01/06/install-wikipedia-locally/</link> <comments>http://www.ghacks.net/2008/01/06/install-wikipedia-locally/#comments</comments> <pubDate>Sun, 06 Jan 2008 15:18:20 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[database]]></category> <category><![CDATA[encyclopedia]]></category> <category><![CDATA[wikipedia]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2008/01/06/install-wikipedia-locally/</guid> <description><![CDATA[I theoretically mentioned the fact that it was possible, and in fact quite easy, to install Wikipedia locally which has several advantages but also one disadvantage. Advantages should be clear; You do not need a net connection to access the Wikipedia contents, you can distribute the solution to as many computers as you want and you can make it available in a local area network.]]></description> <content:encoded><![CDATA[<p>I theoretically mentioned the fact that it was possible, and in fact quite easy, to install Wikipedia locally which has several advantages but also one disadvantage. Advantages should be clear; You do not need a net connection to access the Wikipedia contents, you can distribute the solution to as many computers as you want and you can make it available in a local area network.</p><p>The only disadvantage that I can think of is that you will not use the latest version on their website and that you have to update the database to keep up to date. The English database file has a size of more than 3 Gigabytes &#8211; packed that is &#8211; and it can take some time to download it depending on your Internet connection.</p><p>I did use a download manager to make sure that the download does not get interrupted and I have to start over again. Here is the list of files that you do need, I walk you through the installation afterwards:</p><p><span
id="more-2762"></span><ul><li>Wikipedia Database Snapshot &#8211; the file needed is currently called enwiki-latest-pages-articles.xml.bz2</li><li>An Apache server. I did use the free <a
href="http://www.apachefriends.org/en/xampp-windows.html#641">XAMPP</a> to install it on my Windows system.</li><li><a
href="http://wikifilter.sourceforge.net/">Wikifilter</a> &#8211; the script that makes Wikipedia available in the Apache server.</li></ul><p>I suggest you start by downloading the files needed. The Wikipedia database download will naturally take longer than the other two downloads which is excellent for our purpose. Once XAMPP has been downloaded install it. You are asked if you want to add services to your system during installation, this is not needed. Make sure you start the XAMPP control panel afterwards.</p><p><img
src='http://www.ghacks.net/wp-content/uploads/2008/01/apache_server.jpg' alt='apache server' /></p><p>Keep this open and wait for the downloads to finish. Now unpack the file that contains the Wikipedia articles and wait for it to finish. The unpacked file has a size of more than 13 Gigabytes so make sure you have enough free hard drive space on that drive.<br
/> Now add the date of the release in the format YYYYMMDD to the file name. I added it at the end before the .xml.</p><p><img
src='http://www.ghacks.net/wp-content/uploads/2008/01/wikiindex.jpg' alt='wiki index' /></p><p>Now run WikiIndex.exe and drag and drop the XML file in the program window. It starts indexing the database file which should take a while as well (5 minutes on my system). We are almost done now.</p><p>You need to locate the httpd.conf file in the XAMPP directory and add an entry to it. The file is located in xampp\apache\conf. Just open it with a normal text editor and add the following line at the end:</p><p><em>LoadModule WikiFilter_module &#8220;C:/Program Files/WikiFilter/WikiFilter.so&#8221;</em></p><p>Please replace the path to the WikiFilter.so file with the path on your system. You should also note that the file path uses &#8220;/&#8221; instead of the usual &#8220;\&#8221; to separate directories.</p><p>Start Apache using the XAMPP control panel and point your browser to the url <em>http://localhost/wiki/</em>.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/01/06/install-wikipedia-locally/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Host your own webserver</title><link>http://www.ghacks.net/2007/01/31/host-your-own-webserver/</link> <comments>http://www.ghacks.net/2007/01/31/host-your-own-webserver/#comments</comments> <pubDate>Wed, 31 Jan 2007 21:03:31 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Knowledge]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[php]]></category> <category><![CDATA[server]]></category> <category><![CDATA[web server]]></category> <category><![CDATA[webserver]]></category> <category><![CDATA[website]]></category> <category><![CDATA[xampp]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/01/31/host-your-own-webserver/</guid> <description><![CDATA[It is relatively easy to use your home computer running Windows to become a webserver that is accessible from anywhere. The following method is highly flexible and makes it possible to host websites, documents and files on that server and protect the contents with passwords if so desired. All you need is a software called XAMP which installs the Apache server environment on your computer.]]></description> <content:encoded><![CDATA[<p>It is relatively easy to use your home computer running Windows to become a webserver that is accessible from anywhere. The following method is highly flexible and makes it possible to host websites, documents and files on that server and protect the contents with passwords if so desired. All you need is a software called <a
href="http://www.apachefriends.org/de/index.html" title="xampp" target="_blank">XAMPP</a> which installs the Apache server environment on your computer.</p><p>Download <a
href="http://www.apachefriends.org/de/xampp-windows.html" title="xampp for windows" target="_blank">Xampp for Windows</a> and install it on your system. It does not matter if you install the modules as services, you can activate them as well by opening the control panel. (start apache) Once installed the webserver should be accessible by typing in <a
href="http://localhost" class="linkification-ext" title="Linkification: http://localhost">http://localhost</a> or http://yourdynamicip; You can look up your dynamic ip using my <a
href="http://www.ghacks.net/ip/" title="ip lookup" target="_blank">ip lookup script</a>. Hosting files is as easy, just upload all the files that you want to share into the subfolder htdocs or create a subfolder and add the files to it.</p><p><span
id="more-1157"></span> Access the subfolder by appending /subfolder/ to the url that you want to access. You can add html and php files as well and those can be accessed as well similar to those files on other websites. It is easy to secure folders or the complete server using so called .htaccess files. Use the <a
href="http://tools.dynamicdrive.com/password/" title="htaccess generator" target="_blank">htaccess generator</a> and add the generated files to your directories that you want to protect.</p><p>There is one last thing that can be optimized. It is difficulty for others to access your webserver if you have dynamic IPs. To counter this you could use a free service like <a
href="http://www.dyndns.com/" title="dyndns" target="_blank">DynDNS</a> which adds a static dns to your IP. Friends and everyone else who should access the webserver can then use the dynamic dns which looks something like subdomain.dyndns.bz instead of the dynamic IP address.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/01/31/host-your-own-webserver/feed/</wfw:commentRss> <slash:comments>23</slash:comments> </item> <item><title>Unsuggester and some Apache .htaccess tips</title><link>http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/</link> <comments>http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/#comments</comments> <pubDate>Tue, 05 Dec 2006 01:39:56 +0000</pubDate> <dc:creator>Dearon</dc:creator> <category><![CDATA[Browsing]]></category> <category><![CDATA[Funny]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[bad-suggestions]]></category> <category><![CDATA[books]]></category> <category><![CDATA[htacces]]></category> <category><![CDATA[library]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/</guid> <description><![CDATA[If you read allot of books, it's always nice to know if there are others books that you might like based on a list of books you like.
Well Unsuggester is kinda like that, but then the other way around.
You type in a title of a book you like, and the site servers you a list of books you will probably not like.
It is not very useful, but who knows maybe you'll find a nice book even though the system says you will probably not like it.]]></description> <content:encoded><![CDATA[<p>If you read a lot of books, it&#8217;s always nice to know if there are others books that you might like based on a list of books you like. Well <a
title="Unsuggester homepage" href="http://www.librarything.com/unsuggester">Unsuggester</a> is kinda like that, but then the other way around. You type in a title of a book you like, and the site servers you a list of books you will probably not like. It is not very useful, but who knows maybe you&#8217;ll find a nice book even though the system says you will probably not like it.</p><p>Now i don&#8217;t know how many readers work with websites, but maybe some of you can use <a
title="Speed up sites with htaccess caching" href="http://www.askapache.com/htaccess/htaccess.html">this link</a>. It&#8217;s an article on how to speed up sites using .htaccess file. It is quite a read but it looks promising, and the comment discussion there can also prove to be quite useful.</p><p><span
id="more-974"></span></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
