04-22-2009
Apache2 PHP5 not starting
Hello all. I have a Solaris 10/Sun Ultra10 box and I am trying to build a SAMP server.
The MySQL portion is working and Apache2 seems to be working. However after installing PHP5 I get the following error:
# ./apachectl start
httpd: Syntax error on line 115 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: libmysqlclient.so.15: open failed: No such file or directory
# cd /usr/local/apache2/modules
# ls -l libphp5.so
-rwxr-xr-x 1 bin bin 7157740 Sep 28 2008 libphp5.so
The crazy thing is, the file libphp5.so is there in the /modules directory as the output shows.
Google is not very helpful. I was wondering if anyone here might have some ideas as to why I am getting this when trying to restart Apache.
I have the following two lines in my httpd.conf file to load php:
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
Thank you for your thoughts.
~Robert
2 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm trying to compile PHP5. I've installed mysql5 successfully and apache1.3 is working great, but I get the message
below when I compile PHP5. I double checked if I have libxml2 installed and I do. I installed libxml2 binary from
sunfreeware. Please see below for details:
./configure... (5 Replies)
Discussion started by: xnightcrawl
5 Replies
2. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
LEARN ABOUT OSX
apache2::filterrec
apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ApacUser:Contributed)apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::Apache2::FilterRec(3)
NAME
Apache2::FilterRec - Perl API for manipulating the Apache filter record
Synopsis
use Apache2::Filter ();
use Apache2::FilterRec ();
my $frec = $filter->frec;
print "filter name is:", $frec->name;
Description
"Apache2::FilterRec" provides an access to the filter record structure.
The "Apache2::FilterRec" object is retrieved by calling "frec()":
$frec = $filter->frec;
API
"Apache2::FilterRec" provides the following functions and/or methods:
"name"
The registered name for this filter
$name = $frec->name();
obj: $frec ( "Apache2::FilterRec object" )
ret: $name (string)
since: 2.0.00
mod_perl filters have four names:
modperl_request_output
modperl_request_input
modperl_connection_output
modperl_connection_input
You can see the names of the non-mod_perl filters as well. By calling "$filter->next->frec->name" you can get the name of the next filter
in the chain.
Example:
Let's print the name of the current and the filter that follows it:
use Apache2::Filter ();
use Apache2::FilterRec ();
for my $frec ($filter->frec, $filter->next->frec) {
print "Name: ", $frec->name;
}
See Also
mod_perl 2.0 documentation.
Copyright
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
Authors
The mod_perl development team and numerous contributors.
perl v5.16.2 2011-apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::Apache2::FilterRec(3)