Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php package confusion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
DaleNixon
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 91

PostPosted: Thu Jul 18, 2002 9:51 pm    Post subject: php package confusion Reply with quote

I'm setting up a test web server on an old beige G3. I've gotten apache up and running. I emerged mod_ssl and mod_php, ran the configure scripts as listed at the end of the emerge process, and neither one works. Php is a bit more important to me than ssl. lynx http://localhost/ works fine. lynx https://localhost/ gives me the unable to connect to remote host error. lynx http://localhost/test.php just prints out the <? phpinfo(); ?> (so php is not working). Do I also need dev-php/php? Is there something I'm missing?

my use flags: "-gnome -kde -arts mysql ssl"

I searched the forums and didn't come up with much help on this. It may be more of a network forum topic, but this is running on a ppc. If there is some FM I didn't RT please let me know politely. By the way, all the includes are in the apache.conf file for php and ssl. Also, /etc/init.d/apache contains the line "APACHE_OPTS="-D SSL -D PHP4"". I'm stumped...
_________________
$umount /mnt/brain
umount: /mnt/brain is not mounted (according to mtab)
Back to top
View user's profile Send private message
PimpNasty
n00b
n00b


Joined: 05 Jun 2002
Posts: 36

PostPosted: Fri Jul 19, 2002 2:50 am    Post subject: Reply with quote

try 'emerge php'
Back to top
View user's profile Send private message
DaleNixon
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 91

PostPosted: Fri Jul 19, 2002 4:51 am    Post subject: Reply with quote

I did an "emerge php" it installed dev-php/php. Restarted apache. No dice.
_________________
$umount /mnt/brain
umount: /mnt/brain is not mounted (according to mtab)
Back to top
View user's profile Send private message
tsigo
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 122

PostPosted: Fri Jul 19, 2002 5:16 am    Post subject: Reply with quote

Did the PHP ebuild ... config complete successfully?

Check the file /etc/conf.d/apache
Uncomment or add this line:
Code:

APACHE_OPTS="-D SSL -D PHP4"


Then restart. That should do it.
Back to top
View user's profile Send private message
DaleNixon
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 91

PostPosted: Fri Jul 19, 2002 5:23 am    Post subject: Reply with quote

The line was already uncommented. Restarted apache several times. I think I'm gonna unmerge apache mod_ssl php mod_php etc. and just try again...
_________________
$umount /mnt/brain
umount: /mnt/brain is not mounted (according to mtab)
Back to top
View user's profile Send private message
cwcowell
n00b
n00b


Joined: 05 Jun 2002
Posts: 8
Location: Sacramento

PostPosted: Fri Jul 19, 2002 5:58 am    Post subject: Reply with quote

I'm having the same problem as DaleNixon, but on an i686 build. All my USE flags are left as default. Apache, PHP, and SSL all emerge properly, but when I try:
Code:
ebuild /var/db/pkg/dev-php/php-4.2.1-r3/php-4.2.1-r3.ebuild config

as recommended in the Gentoo Linux Desktop Configuration Guide, I get:
Code:
/usr/sbin/ebuild.sh: pkg_config: command not found

After restarting the machine, Apache comes up fine (with SSL), but no php. The APACHE_OPTS line has been uncommented in /etc/conf.d/apache, and php4 is listed in that line.

Has the "config" target (or whatever it's called) been removed from the php ebuild script? Is there a way to manually do whatever config steps need to be done?
Back to top
View user's profile Send private message
rphillips
Retired Dev
Retired Dev


Joined: 18 Apr 2002
Posts: 92

PostPosted: Fri Jul 19, 2002 4:04 pm    Post subject: Reply with quote

dev-php/php will install the shell interpreter version of php
dev-php/mod_php will install the apache mod...

the latter is what you probably want.
Back to top
View user's profile Send private message
Gerk
Retired Dev
Retired Dev


Joined: 07 May 2002
Posts: 435

PostPosted: Fri Jul 19, 2002 4:48 pm    Post subject: Reply with quote

There are several configuration changes you have to make, not sure if the builds do it for you, but this page is a good starting point to make sure you have everything you need setup...

http://linuxguruz.org/z.php?id=31
Back to top
View user's profile Send private message
cwcowell
n00b
n00b


Joined: 05 Jun 2002
Posts: 8
Location: Sacramento

PostPosted: Sat Jul 20, 2002 1:19 pm    Post subject: Reply with quote

Yep, as suggested, emerging mod_php instead of php solved my problem; php works fine with apache now.

The reason I got this wrong is that the Gentoo Desktop Guide is out-of-date: it uses the pre-dev-php names for packages, so it tells you to install php reather than mod_php. I'm not sure whom to tell about this...

Thanks.
Back to top
View user's profile Send private message
DaleNixon
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 91

PostPosted: Sat Jul 20, 2002 1:33 pm    Post subject: Reply with quote

Emerging mod_php (which is what I did the first time) didn't work at all for me. My Apache config files were told to use it and everything. I'm going to remerge everything today.
_________________
$umount /mnt/brain
umount: /mnt/brain is not mounted (according to mtab)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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