Re: [SLE] SOLVED Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1



Folks,

After looking through the log files, I found that Novell's Apparmor (using
the SubDomain package) was rejecting Apache's requests to access the
directory where php stores its shared modules. These errors showed up
in /var/log/messages, but not in the php or apache log.

kernel: SubDomain: REJECTING r access to /etc/php5/conf.d
(httpd2-prefork(7576) profile /usr/sbin/httpd2-prefork
active /usr/sbin/httpd2-prefork)
...
kernel: SubDomain: REJECTING r access to /usr/lib64/php5/extensions/pgsql.so
(httpd2-prefork(10857) profile /usr/sbin/httpd2-prefork
active /usr/sbin/httpd2-prefork)
...
kernel: SubDomain: REJECTING w access to /tmp/.s.PGSQL.5432
(httpd2-prefork(11309) profile /usr/sbin/httpd2-prefork
active /usr/sbin/httpd2-prefork)

Once I authorized the application to access those directories and files, all
worked well.

Thanks for the help,

Stuart


SOLVED On Saturday 04 March 2006 20:35, Carl Hartung wrote:
On Saturday 04 March 2006 20:22, Stuart wrote:
Can anyone help with this?

Hi Stuart,

A brief visit to Google leads me to believe that PostGreSQL support isn't
enabled in your setup.

It seems the most common response to 'What does "PHP Fatal error:  Call to
undefined function pg_connect()" mean?" is "It means your PHP doesn't have
PostgreSQL support."

Between that and the missing modules section, I'd say you're not done
installing ;-)

regards,

Carl

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: [PHP] mail() only working with php-cli
    ... Yes I also analyzed the log files from apache, but all they are telling me ... is that I am accesing the file "mail.php" with my browser. ... Since you can execute the PHP CLI binary, you have SSH access to the machine. ...
    (php.general)
  • Re: download counter?
    ... I think you can make simple php application for count the download, ... I'm trying to create a download counter for individual files on a web ... Right now I'm using Webalizer ... to just read the log files and see how many times the files I'm ...
    (comp.lang.php)
  • Re: Trouble with sending e-mail from simple php script
    ... You have to learn how to find and read the log files. ... On Linux log files are only readable by root. ... Log files are not always available, and PHP errors are often ...
    (comp.lang.php)
  • how do you track visitors? php cookies?
    ... Logfiles stats which come with every web hosting, have little metrics ... I thought to use php and cookies to track returning visitors, ... see that all pro solutions use javascript to set cookies. ... probably the best option is to read log files for server metrics such ...
    (comp.lang.php)
  • Re: problem with php function mail() on fc4
    ... > This is the first time I use mailin php to send email,but failed,my ... Look in the mail server's log files to see what happened to the mail. ... If there is nothing in the mail server log file relating to this mail, ...
    (Fedora)