View previous topic :: View next topic |
Author |
Message |
clam2000 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2503931253f27ee3fb9709.gif)
Joined: 27 Jul 2003 Posts: 4
|
Posted: Sun Jul 27, 2003 11:07 pm Post subject: apache won't load php |
|
|
I'm running apache2 (2.0.47) and having problems with php (mod_php version 4.3.2)... when i try to start apache it gives the two [!!] and exits, in the logs i find:
Code: |
Syntax error on line 3 of /etc/apache2/conf/modules.d/70_mod_php.conf:
Cannot load /etc/apache2/extramodules/libphp4.so into server:/etc/apache2/extramodules/libphp4.so: R_PPC_REL24 relocation at 0x0ccfafb0 for symbol `_get_element_by_id' out of range
|
my conf.d/apache2:
Code: |
APACHE2_OPTS="-D SSL -D DAV -D PHP4 -D LDAP -D PHP"
|
(if i take away the -D php it loads but without php support, this is because of the 70_mod_php.conf)
70_mod_php.conf:
Code: |
<IfDefine PHP>
<IfModule !mod_php4.c>
LoadModule php4_module extramodules/libphp4.so
</IfModule>
</IfDefine>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
|
this is called by apache2.conf:
Code: |
Include conf/modules.d/*.conf
|
other information if it helps:
make.conf:
Code: |
USE="apache2 X gtk cjk crypt curl ethereal gd gif imlib jpeg kerberos
lcms ldap libwww mbox mpeg mysql ncurses oggvorbis pdflib perl png
python qt pop imap quicktime samba snmp spell ssl -swf tcltk tcpd tiff
truetype xml xml2 zlib -flash"
|
this is a first generation iMac (ppc)
help would be appreciated
thanks,
--will |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
wrynn n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Mar 2003 Posts: 47 Location: Waterloo, ON, Canada
|
Posted: Mon Jul 28, 2003 2:08 am Post subject: Re: apache won't load php |
|
|
I have php and apache2 working together.
/etc/conf.d/apache2
Code: | # a bunch of comments
...
APACHE2_OPTS="-D SSL -D PHP4" |
check that your /etc/apache2/conf/apache2.conf contains the following (I had to modify this...if I remember correctly).
Code: | ...
LoadModule php4_module extramodules/libphp4.so
AddType application/x-httpd-php .php
... |
and for the record my 70_mod_php.conf
Code: | <IfDefine PHP4>
# Load the module first
<IfModule !mod_php4.c>
LoadModule php4_module extramodules/libphp4.so
</IfModule>
# Set it to handle the files
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
... |
_________________ Wrynn
UW's Gentoo guy...no one has told me otherwise :P
"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
clam2000 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2503931253f27ee3fb9709.gif)
Joined: 27 Jul 2003 Posts: 4
|
Posted: Mon Jul 28, 2003 2:32 am Post subject: |
|
|
yep, i have all that, i think the error is in the php module (is there some extention besides flash that won't work on ppc) because it gives an error on loading
--will |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
wrynn n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Mar 2003 Posts: 47 Location: Waterloo, ON, Canada
|
Posted: Mon Jul 28, 2003 3:11 am Post subject: |
|
|
That I do not know. I'm running on an AMD Duron. _________________ Wrynn
UW's Gentoo guy...no one has told me otherwise :P
"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|