Author |
Message |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Thu Apr 20, 2006 5:12 pm Post maybe stupid 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
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:
LoadModule perl_module /usr/libexec/mod_perl.so
LoadModule php5_module /usr/libexec/libphp5.so
|
AddType application/x-gzip .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
|
AddHandler cgi-script .cgi
AddHandler php-script .php
|
ls -al blah.pl or blah.php whatever
-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. _________________ Oldbie Server Help
Apache /etc/httpd.conf
httpd.conf - 13.09 KB
File downloaded or viewed 9 time(s)
|
|
Back to top |
|
 |
wEaViL Don't make me turn this forum around!

Age:45 Gender: Joined: Feb 17 2003 Posts: 829 Location: nc usa Offline
|
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Thu Apr 20, 2006 7:24 pm Post maybe stupid Post subject: |
 |
|
|
|
When running apache, did you remember to feed it -D PHP5 in the command line options?
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Thu Apr 20, 2006 8:05 pm Post maybe stupid 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 |
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Apr 20, 2006 11:36 pm Post maybe stupid Post subject: |
 |
|
|
|
I use Active Perl on my Apache to configure it automatically. :/ _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Fri Apr 21, 2006 4:44 pm Post maybe stupid 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.
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Fri Apr 21, 2006 4:52 pm Post maybe stupid 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.
|
|
Back to top |
|
 |
|