[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Apache & PHP setup
On Tue, Sep 04, 2001 at 01:46:32AM -0400, Jan-Erik Bullett wrote:
> Hi,
>
> I had similar problems (not quite straight yet). Are you working from src or
> rpm. Use kpackage to install from rpms, or the source dist's come with INSTALL
> files.
> If you manage to complete the PHP install, let me know. I've got as far as the
> PHP make install step (almost the final one)
On PHP and apache, some general notes (presumably someone
answered these already):
- apache is configured with files httpd.conf and srm.conf. In debian,
they sit in /etc/apache. I seem to remember that early Mandrakes had
it in /etc/httpd. As a general point, httd.conf does the main config
bit (virtual servers, directories and all that) and srm.conf does MIME
file types.
- apache is usually started at boot time. If you work from a
pre-compiled package, that should fire it up automatically.
- php is usually installed as an apache module. To do this, you need to
specifically call it in httpd.conf. One line should read:
LoadModule php3_module /usr/lib/apache/1.3/libphp3.so (if using php3)
Note that the path to your libphp might be different.
You then make sure that the server recognizes the php extensions in
srm.conf:
AddType application/x-httpd-php3 .phtml .php .php3
AddType application/x-httpd-php3-source .phps
(the second line is useful for colorising the source code :D)
After that, you just restart the server (i.e., you call the init
script, in my case /etc/init.d/apache restart) and off you go.
Anyway, loadsa debianisms and php3-isms in the previous explanation.
And it was a looooong time ago since I last installed php :-)
Once you get the hang of it, it's rather painless. Just wait
till you install phplib >:-}
Regards
José
--
José L Gómez Dans PhD student
Tel: +44 114 222 5582 Radar & Communications Group
FAX; +44 870 132 2990 Department of Electronic Engineering
University of Sheffield UK
___________________________________________________________________
Sheffield Linux User's Group - http://www.sheflug.co.uk .
To unsubscribe from this list send mail to
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.