forum.netbsd.se - NetBSD Sweden

You are not logged in.

  • Index
  •  » Support
  •  » MySQL, PHP and Apache installation help.

#1 2004-07-10 13:29:26

erkan
Member
Registered: 2004-07-10
Posts: 1

MySQL, PHP and Apache installation help.

Hello,

I have been using NetBSD for some years now. At the moment I am making a web server so that I can serve my own homepages which use PHP and MySQL.

I have installed MySQL, PHP and Apache. They all work.

However I havent fully understood what else I need to install and how to configure Apache to be able to run php pages.

Offline

 

#2 2004-07-10 20:06:35

elip
Guest

Re: MySQL, PHP and Apache installation help.

did you build from source or use pkgsrc?

 

#3 2004-07-10 20:58:01

viktor
Administrator
From: Sweden, Umeå
Registered: 2004-05-10
Posts: 69
Website

Re: MySQL, PHP and Apache installation help.

You have probably forgot to install the PHP module for Apache (ap-php4)

To install ap-php4:

$ cd /usr/pkgsrc/www/ap-php4
$ make install distclean

Then read the MESSAGE file (/usr/pkgsrc/www/ap-php4/MESSAGE).

You need to write this in your httpd.conf file:

LoadModule php4_module lib/httpd/mod_php4.so
AddType application/x-httpd-php .php

Then you should change your DirectoryIndex to:

DirectoryIndex index.html index.php

I hope this would help you smile

Offline

 
  • Index
  •  » Support
  •  » MySQL, PHP and Apache installation help.

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB