Posts Tagged ‘Apache’

PostHeaderIcon Setting Up Apache Mod Python (PSP) on Windows

setting-up-apache-mod-python-psp-on-windows

Step 1# Download and install Apache

Download Apache for windows from here http://apache.mirror.rafal.ca/httpd/binaries/win32/apache_2.2.11-win32-x86-openssl-0.9.8i.msi latest version is 2.2.11 you can find a mirror closer to you if you like from here (http://httpd.apache.org/download.cg)

Install it to C:\Apache2\
when you install it you will get a prompt for server information enter these

Network Domain: localhost
Server Name: localhost
Admin Email: (your any email)

Step 2# Configure Apache

Open up the Apache configuration file generally found in your start menu Find the line DocumentRoot and change it to a directory such as C:\public_html\

So DocumentRoot = “C:\public_html”

A few lines down you will find another line to change change this to

Now find the line DirectoryIndex and add index.psp at the end

Step 3# Mod Python

Download Mod Python from http://apache.sunsite.ualberta.ca/httpd/modpython/win/3.3.1/

Install it. It should find your Python install you may need to also give it the directory for Apache when it prompts you

Step 4# Configure Apache for Mod Python

Open up your Apache Configuration file once again and add these lines at the bottom (the very end of the file)

LoadModule python_module modules/mod_python.so
AddHandler mod_python .psp .psp_
PythonHandler mod_python.psp
PythonDebug On

Reboot Apache (troubleshoot)

PostHeaderIcon Apache – 4 Files

Apache Webserver – German

Apache Server 2 Bible

Beginning PHP Apache MySQL Web Development 2004

Beginning PHP 5, Apache, And MySQL Web Development 2005

PostHeaderIcon Installing Apache – PHP – MySQL – phpmyAdmin – Ubuntu 7.10 Gutsy Gibbon – LAMP

installing-apache-php-mysql-phpmyadmin-ubuntu-7-10-gutsy-gibbon-lamp

So you’ve just installed Ubuntu 7.10 (Gutsy Gibbon) and you want to setup a testing server on your machine. This is incredibly more easy to do and configure than installing on a win32 machine. Since Ubuntu is based on Debian in many ways, using APT-GET and understanding package management makes the process so much more efficient. So how do you setup a testing server on your Ubuntu Linux box? Just follow these simple steps:

Open the command line (terminal):

Installing Apache Web Server:

sudo apt-get install apache2

yup that easy! Now your going to want to test the installation to make sure all went well, to do this we are going to make some custom launch buttons that will initiate Apache, stop it or restart it.

Right click a launch panel and choose ‘+Add to panel’ to bring up the ‘Add to Panel’ dialog

Next choose the ‘Custom Application Laucher’ button at the top.

In this dialog I chose ‘Application in Terminal’ as the type, name as the command to be used (ex. Apache Start) and the command to be executed. The commands for each button are as follows:


sudo /etc/init.d/apache2 start : this is to start the Webserver
sudo /etc/init.d/apache2 restart : to restart the server

sudo /etc/init.d/apache2 stop : to stop the server

(Note: you can also choose an icon to be used by clicking the icon in the dialog ;) )

To test the webserver…start it, open your favorite browser and goto http://localhost or http://127.0.0.1

you should get a directory listing, simply click the directory listed and you should get a page that says “It Works!” Your default document directory is located at /var/www

Installing PHP

Read the rest of this entry »

PostHeaderIcon Diving into Apache Tomcat and Nutch

When it comes to being an administrator and webmaster your always looking for the best solutions to achieve a better look with rich features and content for your users. But some of the major factors in achieving such results is, I believe, functionality, automation, and research. Let me explain further.

Automation applies to the underlying strings of your website. Cron jobs for example get executed at a set and configured interval in time, with no other influence by a person. This allows ‘ease of use’ for administrators, time consuming tasks get automated to allow the administrator to concentrate on other matters. Good functionality of a site is essential for your users to get access to the content your providing, without mucking around, getting errors, or having to study a Linux pocket guide just to find your content. Researching is a great way to allow users to easily recognize where to find the things their looking for. It also allows you, an administrator, to know exactly just how organized your website is, along with tuning your own knowledge on what you’re contributing to the web.

I run and maintain a vertical search engine called Flynina.net. It’s main focus is to crawl and index websites/material from the web that can be classified/profiled as underground. Flyninja.net not only provides a valuable service, but also provides content to go along with it. As of right now Flyninja.net functions by a PHP script that crawls websites, indexes, and displays the results primitively. The load I’m working with, since its inception as a search engine has outgrown the script. Needless to say, I need something more.

Let me introduce you to Apache Tomcat and Nutch.

Apache Tomcat is a Java servlet container and can be used as a standalone server. I wouldnt do it this way however, because Tomcat and Apache can be easily (oops, did i just say easily outloud) connected together using a module known as mod_jk(there are others, but my experience lies with this one).

Apache Nutch is an open source internet search engine. It goes beyond the scope of indexing and crawling intranets and just websites, but extends out into the net allowing you to index anything damn near, such as the likes of Google, Yahoo! or Lycos. Nutch still has some ways to catch up with the powers that be, yet, it is free, and, it is still powerful.

Tomcat requires Java to run, and depending on the version of Tomcat you want to install also depends on what Java your running. The same goes with Nutch also, yet you have to be aware of the version of Tomcat and Java your running. As of this article the current versions for Tomcat, Java, and Nutch and compatibilities are as follows:

Tomcat – 6.0.13 and requires Java Runtime Environment(JRE) 1.5.x
Java – version 1.6.x
Nutch – 0.9 and requires JDK 1.5 or higher and Tomcat 4.x or higher

You would also want a command-line interpreter like Cygwin for shell support if your using Windows, this is because Nutch doesn’t have native support for Win32 command-line functions, and we all know why moving along…

Installation of any of these applications is time consuming as anyone who has installed them before knows. If it’s your first time installing them, your likely to run into problems you have to troubleshoot. In the end its worth the effort. I suggest researching Tomcat and Nutch follow the resource links at the bottom of this article and you will see what kind of shit you’ll be getting into. By my next article I will assume you have the Apache Web server installed and running. Stay Tuned

Search
Awesome Links
Subscribe
Vote for Flyninja
Random Reading