Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Guide for apache and php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ladynik0n
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2004
Posts: 75

PostPosted: Fri Mar 04, 2005 9:01 pm    Post subject: Guide for apache and php Reply with quote

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
View user's profile Send private message
mssanchu
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 112

PostPosted: Fri Mar 04, 2005 10:03 pm    Post subject: i too have the same prob.... Reply with quote

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
View user's profile Send private message
ugus
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 213
Location: Darmstadt, Germany

PostPosted: Fri Mar 04, 2005 11:31 pm    Post subject: Re: Guide for apache and php Reply with quote

Ladynik0n wrote:
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?


maybe this http://community.asiaosc.org/~azmi/gentoo_2004.1/apache_php_pgsql.html helps you
_________________
while(!sleep())
{
sheep++;
}
My Desktop
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Fri Mar 04, 2005 11:33 pm    Post subject: Re: i too have the same prob.... Reply with quote

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
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Sat Mar 05, 2005 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Phonics3k
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 111
Location: Wales, UK

PostPosted: Sat Mar 05, 2005 12:42 pm    Post subject: Reply with quote

try http://www.gentoo-wiki.com

I believe that you will find a how to on there about apache and php
_________________
http://www.phonics3k.com | http://www.phonics3k.co.uk

## Epox EP-8RDA | Athlon 2800 XP | 2 X DDR400 512MB RAM | Radeon 9600 256MB ##

Need to contact me? ICQ: 213027578
Back to top
View user's profile Send private message
mssanchu
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 112

PostPosted: Sat Mar 05, 2005 6:34 pm    Post subject: thanks fellas!... Reply with quote

hi ppl .
i t sure did work ....... thanks.....
_________________
registered linux user 370421
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum