Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache won't load 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
clam2000
n00b
n00b


Joined: 27 Jul 2003
Posts: 4

PostPosted: Sun Jul 27, 2003 11:07 pm    Post subject: apache won't load php Reply with quote

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


Joined: 09 Mar 2003
Posts: 47
Location: Waterloo, ON, Canada

PostPosted: Mon Jul 28, 2003 2:08 am    Post subject: Re: apache won't load php Reply with quote

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


Joined: 27 Jul 2003
Posts: 4

PostPosted: Mon Jul 28, 2003 2:32 am    Post subject: Reply with quote

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


Joined: 09 Mar 2003
Posts: 47
Location: Waterloo, ON, Canada

PostPosted: Mon Jul 28, 2003 3:11 am    Post subject: Reply with quote

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
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