Server Help

Trash Talk - Apache 2.x mod_perl & libphp5 configuration

i88gerbils - Thu Apr 20, 2006 5:12 pm
Post subject: Apache 2.x mod_perl & libphp5 configuration
I've been trying to figure out what I've done wrong to not get php scripts to run. I followed the directions to compile apache, php w/ apxs support, and setup the httpd.conf file like I had it before. However there must be something I'm missing.

Any help would be appreciated. Here's what I've got for ya:

apachectl -t -D DUMP_MODULES
Code: Show/Hide

Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
log_config_module (static)
env_module (static)
setenvif_module (static)
ssl_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
cgi_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
so_module (static)
perl_module (shared)
php5_module (shared)
Syntax OK


applicable parts of the httpd.conf if you don't feel like downloading it below:
Code: Show/Hide

LoadModule perl_module /usr/libexec/mod_perl.so
LoadModule php5_module /usr/libexec/libphp5.so


Code: Show/Hide

    AddType application/x-gzip .tgz

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps


Code: Show/Hide

    AddHandler cgi-script .cgi
    AddHandler php-script .php


ls -al blah.pl or blah.php whatever
Code: Show/Hide

-rwxr-xr-x  1 nobody nobody 72 2006-04-19 16:38 /home/www/blah.pl


besides all this it still tries to save or open perl & php scripts. I thought I had just copied my old httpd.conf that worked to the new one :|. Yeah I know the paths are wierd, but I'm wierd. sbins in /usr and sysconfs in /etc.
wEaViL - Thu Apr 20, 2006 6:58 pm
Post subject:
I kept having problems getting apache 2 and php5 with mysql working then I found this

http://www.apache2triad.net/

This might do everything your wanting... heres a contents listing of what it already has built in.

http://www.apache2triad.net/info.php
Mine GO BOOM - Thu Apr 20, 2006 7:24 pm
Post subject:
When running apache, did you remember to feed it -D PHP5 in the command line options?
i88gerbils - Thu Apr 20, 2006 8:05 pm
Post subject:
No I didn't feed it the -D PHP5 option. I tried that, but got the same results.

I forgot to mention, apache does output that

Quote:
[Thu Apr 20 20:03:15 2006] [notice] Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7g PHP/5.1.2 mod_perl/2.0.2 Perl/v5.8.8 configured

CypherJF - Thu Apr 20, 2006 11:36 pm
Post subject:
I use Active Perl on my Apache to configure it automatically. :/
i88gerbils - Fri Apr 21, 2006 4:44 pm
Post subject:
Okay, this is odd. On a hunch I compiled php4, installed it, and php works fine loading up libphp4 instead of libphp5. That's all that I changed in the config file. Wtf?

There must be something wrong with the 5 times i built php5.
i88gerbils - Fri Apr 21, 2006 4:52 pm
Post subject:
Built php5 one more time, and then it worked. must have been some configure option that I missed.

Oh fuck nevermind. Stupid fucking cache file. It's definetely something wonky in php5. Fuck it. I don't use OO stuff in php anyways.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group