Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2006 19:19:18 +0100
From:      David Raison <david@ion.lu>
To:        stan <stanb@panix.com>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: Help getting wordpress working oon 4.11
Message-ID:  <43D3CCA6.1000100@ion.lu>
In-Reply-To: <20060122174628.GA17607@teddy.fas.com>
References:  <20060122174628.GA17607@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Stan,

add the following to your httpd.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source  .phps

And index.php to the DirectoryIndex (so your index.php file gets
loaded automatically if no filename is supplied)

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

but I'm not sure if this is the same with apache 1.3 (I'm using 2.2)
you may also need to add the following:

LoadModule php5_module        libexec/apache22/libphp5.so #
php4_module if you're using php4

stan wrote:

> I'm trying to set up wordpress on a fairly current 4.11 machine.
>
> I've installed the wordpress port, and the mysql 1.41 port. I've
> created a mysql database called wordpress, and I can access it from
> the command line with mysql.
>
> I'm able to access the setup instructions from apache on that
> machine. They say to run the ~/admin/install.php script. The
> problem is that when I do that, instead of executing it, it is just
> displayed.
>
> I suspect that I need to change the apache config to _execute_ php
> code, but I can't figure out how.
>
> Any digestions?
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD08ym/sLffsMilEkRAv9tAJ9wsLppp6Y8/A7YzSNkwscv7rRtUACghMBe
m0GUE0yORXnU01z9qXxCqcc=
=I1Y2
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43D3CCA6.1000100>