View previous topic :: View next topic |
Author |
Message |
DaleNixon Tux's lil' helper
Joined: 13 Jul 2002 Posts: 91
|
Posted: Thu Jul 18, 2002 9:51 pm Post subject: php package confusion |
|
|
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 |
|
|
PimpNasty n00b
Joined: 05 Jun 2002 Posts: 36
|
Posted: Fri Jul 19, 2002 2:50 am Post subject: |
|
|
try 'emerge php' |
|
Back to top |
|
|
DaleNixon Tux's lil' helper
Joined: 13 Jul 2002 Posts: 91
|
Posted: Fri Jul 19, 2002 4:51 am Post subject: |
|
|
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 |
|
|
tsigo Tux's lil' helper
Joined: 09 Jul 2002 Posts: 122
|
Posted: Fri Jul 19, 2002 5:16 am Post subject: |
|
|
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 |
|
|
DaleNixon Tux's lil' helper
Joined: 13 Jul 2002 Posts: 91
|
Posted: Fri Jul 19, 2002 5:23 am Post subject: |
|
|
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 |
|
|
cwcowell n00b
Joined: 05 Jun 2002 Posts: 8 Location: Sacramento
|
Posted: Fri Jul 19, 2002 5:58 am Post subject: |
|
|
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 |
|
|
rphillips Retired Dev
Joined: 18 Apr 2002 Posts: 92
|
Posted: Fri Jul 19, 2002 4:04 pm Post subject: |
|
|
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 |
|
|
Gerk Retired Dev
Joined: 07 May 2002 Posts: 435
|
Posted: Fri Jul 19, 2002 4:48 pm Post subject: |
|
|
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 |
|
|
cwcowell n00b
Joined: 05 Jun 2002 Posts: 8 Location: Sacramento
|
Posted: Sat Jul 20, 2002 1:19 pm Post subject: |
|
|
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 |
|
|
DaleNixon Tux's lil' helper
Joined: 13 Jul 2002 Posts: 91
|
Posted: Sat Jul 20, 2002 1:33 pm Post subject: |
|
|
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 |
|
|
|