Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Apache 2.x mod_perl & libphp5 configuration

 
Post new topic   Reply to topic Printable version
 View previous topic  Bye bye Spyed Post :: Post new comp specs, think i should get it?  View next topic  
Author Message
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Thu Apr 20, 2006 5:12 pm   Post maybe stupid    Post subject: Apache 2.x mod_perl & libphp5 configuration Reply to topic Reply with quote

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.
_________________
Oldbie Server Help




Apache /etc/httpd.conf

httpd.conf - 13.09 KB
File downloaded or viewed 9 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
wEaViL
Don't make me turn this forum around!


Age:45
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Thu Apr 20, 2006 6:58 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Thu Apr 20, 2006 7:24 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

When running apache, did you remember to feed it -D PHP5 in the command line options?
Back to top
View users profile Send private message Add User to Ignore List Send email
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Thu Apr 20, 2006 8:05 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Apr 20, 2006 11:36 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

I use Active Perl on my Apache to configure it automatically. :/
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Fri Apr 21, 2006 4:44 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Fri Apr 21, 2006 4:52 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 33 page(s) served in previous 5 minutes.

phpBB Created this page in 0.902040 seconds : 32 queries executed (92.5%): GZIP compression disabled