View previous topic :: View next topic |
Author |
Message |
Ladynik0n Tux's lil' helper
Joined: 12 Apr 2004 Posts: 75
|
Posted: Fri Mar 04, 2005 9:01 pm Post subject: Guide for apache and php |
|
|
There used to be a guide on here to get apache and php up and running. I have searched for it but cant find it. Can anyone link me to them please? |
|
Back to top |
|
|
mssanchu Tux's lil' helper
Joined: 28 Sep 2004 Posts: 112
|
Posted: Fri Mar 04, 2005 10:03 pm Post subject: i too have the same prob.... |
|
|
hi,
i have successfully emerged apache2 and php.... i get the testpage when i start apache... now i how can i load the php module in apache?..(tired of searching...) also when i click on the link documentation in the test page i get the page with the text...
The document you requested has not been installed on your system.
how can i get the manuals working...?.. _________________ registered linux user 370421 |
|
Back to top |
|
|
ugus Apprentice
Joined: 23 Jul 2004 Posts: 213 Location: Darmstadt, Germany
|
|
Back to top |
|
|
hw-tph l33t
Joined: 08 Jan 2004 Posts: 768 Location: Uppsala, Sweden
|
Posted: Fri Mar 04, 2005 11:33 pm Post subject: Re: i too have the same prob.... |
|
|
mssanchu wrote: | (tired of searching...) |
...and expecting to be spoon-fed, I assume?
At any rate, add "-D PHP4" to your $APACHE2_OPTS in /etc/conf.d/apache2:
Code: | APACHE2_OPTS="-D PHP4" |
Then restart apache.
As for getting the documentation installed...did you try USE="doc" emerge apache ?
Håkan |
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Sat Mar 05, 2005 12:16 pm Post subject: |
|
|
If the apache doc still doesn't work after USE="doc", you may try running this script
Code: | #!/bin/sh
HTDOCS=/var/www/localhost/htdocs
MAN=$HTDOCS/manual
d=$(echo /usr/share/doc/apache-2.*/manual) # expand it
if ! [ -d $MAN ]; then
echo apache manual stale
if [ -d $d ]; then
echo manual found
rm $MAN
ln -s $d $MAN
fi
fi
conf=/etc/apache2/conf/modules.d/00_apache_manual.conf
if [ -r $conf ] && ! grep $d $conf; then
echo fixing a config file
sed -i -e "s:/usr/share/doc/apache-2.*/manual:$d:" $conf
fi
MAN=$HTDOCS/php-manual
if ! [ -d $MAN ]; then
echo apache manual stale
if [ -d /usr/share/doc/php-docs-*/html ]; then
echo manual found
rm $MAN
ln -s /usr/share/doc/php-docs-*/html $MAN
fi
fi
|
yes the coding style is bad, using copy'n'paste instead of a function |
|
Back to top |
|
|
Phonics3k Tux's lil' helper
Joined: 18 Dec 2004 Posts: 111 Location: Wales, UK
|
|
Back to top |
|
|
mssanchu Tux's lil' helper
Joined: 28 Sep 2004 Posts: 112
|
Posted: Sat Mar 05, 2005 6:34 pm Post subject: thanks fellas!... |
|
|
hi ppl .
i t sure did work ....... thanks..... _________________ registered linux user 370421 |
|
Back to top |
|
|
|