Guide to installing Apache web server v 1.3.12, MySQL v 3.22.21, PHP v 3.0.16 and Microsoft's 'FrontPage2000 Server Extensions' on an Indy running IRIX 6.5.8

bann01.gif (2203 bytes)

 This page was written by Christopher Spry. This is a guide to installing the Apache web server v 1.3.12, MySQL v 3.22.21, PHP v 3.0.16 and Microsoft's 'FrontPage2000 Server Extensions' on an Indy running IRIX 6.5.8.

Index:

Background
Installing MySQL
Installing Apache
Apache's configuration file
Stopping and starting Apache
Apache's access and error logs
Password protecting a directory on a web site, using Apache
Installing PHP
Obtaining and installing 'FrontPage2000 Server Extensions'

Background

'Apache' is the most widely used web (http) server. SGI provide the software in 'tardist' format and on the 'August 2000 freeware' CD. (I thank Steve Crockett for a pre-release version of Apache 1.3.12 for IRIX). Binaries for IRIX are als Arial;mso-bidi-font-weight:bold">You can add additional names to the file by repeating the command without the '-c' switch.
 
If you wish to add several users in a 'group', create another file called '.htgroup', with entries in it like:

group: user1 anotheruser myusername

Next create a file called '.htaccess' using a text processor and place it in the web directory to be protected.

To allow just one username/password to access the directory and files in it, use the following entries:

AuthUserFile /usr/freeware/apache/share/passwd/.htpasswd
AuthGroupFile /dev/null
AuthName JustMe
AuthType Basic
require user me

The 'AuthName' is the word that will appear on the authentication dialog. 'AuthType' must be 'Basic', since no other authentication schemes are supported at this time.

To allow only members of 'groupname' to access it, enter in the file:

AuthUserFile /usr/freeware/apache/share/passwd/passwd/.htpasswd
AuthGroupFile /
usr/freeware/apache/share/passwd/.htgroup
AuthName Protected
AuthType Basic
require group groupname

To find out more, see the Apache Core Documentation page which contains information on how to use the many 'directives' or lines in '.ht*' files, which control who has access and how it is to be checked.  This is available on the Apache server that has just been setup at /usr/freeware/apache/share/htdocs/manual/mod/directives.html and at the Apache web site.

Installing PHP

I downloaded and installed the 10.8-MB *tardist version of PHP using Netscape's 'Navigator'. (I thank Vince Levey for a pre-release version of PHP for Apache). I selected the components that use MySQL and Apache. Note that, if you install a version which says that there are 'errors in the exit commands', then edit '/usr/freeware/apache/etc/httpd.conf' and move the lines

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3 .phtml

after the "LoadModule php3_module" line to a position after the line 'AddType application/x-tar .tgz' in the section titled <IfModule mod_mime.c>.

After making any changes to '/usr/freeware/apache/etc/httpd.conf', restart the httpd server, as shown above.

The documents about php are in /usr/freeware/doc/php'. Files with the extension *.phtml and *.php3 will now be now be processed by 'php'.

Obtaining and installing 'FrontPage2000 Server Extensions'

I suggest that you first print out Microsoft's information and instructions on downloading and installing FrontPage2000 server extension under IRIX. Download from Microsoft (a) the installation script 'fp_install.sh' (b) the IRIX installation file 'fp40.sgi.tar.Z' and (c) the Apache patch, if you need it, to the /tmp directory. People in the UK can get the installation file and script locally. 

Before you run the script 'fp_install.sh', which installs the distribution 'fp40.sgi.tar.Z', there are several important steps to take.
- Make the installation script executable.
- Make a backup copy of '/usr/freeware/apache/etc/httpd.conf'.
- Edit '/usr/freeware/apache/etc/httpd.conf': Alter the line 'AllowOverride None' to 'AllowOverride All'; remove the double quotes ("") around the path names in the lines for 'DocumentRoot' and 'UserDir' and copy the lines for 'DocumentRoot' and 'UserDir' into the file '/usr/freeware/apache/etc/srm.conf'. Leave the double quotes on other lines in '/usr/freeware/apache/etc/httpd.conf'.
- I already had a web in my own login area ~cspry/public_html, so I  copied this web to a backup resource, leaving ~cspry/public_html as an empty directory.  

The following steps list the places where you type or respond (shown in red), as the server extensions software is installed.

In a UNIX shell and as 'Superuser':

At one stage, it complained that it was not able to alter the permissions on any of the files or directories in '/usr/freeware/apache/share/htdocs'. I suggest that you set these manually to be owned by user.group 'nobody.nobody' with the command

cd /usr/freeware/apache/share; chown -r nobody.nobody ./htdocs

Please notify me mailto:cspry@sghms.ac.uk of errors, omissions and improvements to this little guide. 

bann01.gif (2203 bytes)

Return to the 'home page'

Return to the `Computing index page'

Return to the 'Indy administration index'

© cspry@sghms.ac.uk. Department of Biochemistry & Immunology, St. George's Hospital Medical School, London SW17 0RE, UK. Phone +44 20-8725 5819; fax +44 20-8725 5821. This page was last updated on 10 December 2001 11:27:05. This page was written by Christopher Spry.

e: 9.5pt;mso-bidi-font-family:Arial;mso-bidi-font-weight:bold">usr/freeware/apache/share/passwd/.htpasswd
AuthGroupFile /dev/null
AuthName JustMe
AuthType Basic
require user me

The 'AuthName' is the word that will appear on the authentication dialog. 'AuthType' must be 'Basic', since no other authentication schemes are supported at this time.

To allow only members of 'groupname' to access it, enter in the file:

AuthUserFile /usr/freeware/apache/share/passwd/passwd/.htpasswd
AuthGroupFile /
usr/freeware/apache/share/passwd/.htgroup
AuthName Protected
AuthType Basic
require group groupname

To find out more, see the Apache Core Documentation page which contains information on how to use the many 'directives' or lines in '.ht*' files, which control who has access and how it is to be checked.  This is available on the Apache server that has just been setup at /usr/freeware/apache/share/htdocs/manual/mod/directives.html and at the Apache web site.

Installing PHP

I downloaded and installed the 10.8-MB *tardist version of PHP using Netscape's 'Navigator'. (I thank Vince Levey for a pre-release version of PHP for Apache). I selected the components that use MySQL and Apache. Note that, if you install a version which says that there are 'errors in the exit commands', then edit '/usr/freeware/apache/etc/httpd.conf' and move the lines

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3 .phtml

after the "LoadModule php3_module" line to a position after the line 'AddType application/x-tar .tgz' in the section titled <IfModule mod_mime.c>.

After making any changes to '/usr/freeware/apache/etc/httpd.conf', restart the httpd server, as shown above.

The documents about php are in /usr/freeware/doc/php'. Files with the extension *.phtml and *.php3 will now be now be processed by 'php'.

Obtaining and installing 'FrontPage2000 Server Extensions'

I suggest that you first print out Microsoft's information and instructions on downloading and installing FrontPage2000 server extension under IRIX. Download from Microsoft (a) the installation script 'fp_install.sh' (b) the IRIX installation file 'fp40.sgi.tar.Z' and (c) the Apache patch, if you need it, to the /tmp directory. People in the UK can get the installation file and script locally. 

Before you run the script 'fp_install.sh', which installs the distribution 'fp40.sgi.tar.Z', there are several important steps to take.
- Make the installation script executable.
- Make a backup copy of '/usr/freeware/apache/etc/httpd.conf'.
- Edit '/usr/freeware/apache/etc/httpd.conf': Alter the line 'AllowOverride None' to 'AllowOverride All'; remove the double quotes ("") around the path names in the lines for 'DocumentRoot' and 'UserDir' and copy the lines for 'DocumentRoot' and 'UserDir' into the file '/usr/freeware/apache/etc/srm.conf'. Leave the double quotes on other lines in '/usr/freeware/apache/etc/httpd.conf'.
- I already had a web in my own login area ~cspry/public_html, so I  copied this web to a backup resource, leaving ~cspry/public_html as an empty directory.  

The following steps list the places where you type or respond (shown in red), as the server extensions software is installed.

In a UNIX shell and as 'Superuser':

At one stage, it complained that it was not able to alter the permissions on any of the files or directories in '/usr/freeware/apache/share/htdocs'. I suggest that you set these manually to be owned by user.group 'nobody.nobody' with the command

cd /usr/freeware/apache/share; chown -r nobody.nobody ./htdocs

Please notify me mailto:cspry@sghms.ac.uk of errors, omissions and improvements to this little guide. 

bann01.gif (2203 bytes)

Return to the 'home page'

Return to the `Computing index page'

Return to the 'Indy administration index'

© cspry@sghms.ac.uk. Department of Biochemistry & Immunology, St. George's Hospital Medical School, London SW17 0RE, UK. Phone +44 20-8725 5819; fax +44 20-8725 5821. This page was last updated on 10 December 2001 11:27:05. This page was written by Christopher Spry.