Re: [PHP] Re: Php installation



On Sat, 30 Aug 2008, It flance wrote:
Hi,

Apache was already installed in my computer. Anyway now i can run php
scripts without any problem. The problem is just that if a script
contains database statements like connection to the database server,
those statements are ignored while run in the browser but they are
procesed if run from terminal. So i guess this is a configuration
problem but i have no idea how to fix it.

Thanks

--- On Sat, 8/30/08, David Robley <robleyd@xxxxxxxxxxx> wrote:
From: David Robley <robleyd@xxxxxxxxxxx>
Subject: [PHP] Re: Php installation
To: php-general@xxxxxxxxxxxxx
Date: Saturday, August 30, 2008, 7:03 AM

It flance wrote:
Hi all,

I'm using Fedora 8. I installed php, mysql and

apache. Now i can run a

script connecting to a database from terminal but not

from browser.

Any suggestion?

Have you configured apache to process php scripts?

See item 14 at
http://php.net/manual/en/install.unix.apache2.php

I apologise; I misread your question as not being able to use php through
apache.

I wonder if your php is configured to log errors to a file, rather than
displaying them on the screen when you connect via apache? Check your
apache log files and see if there is something in there that is related.





Cheers
--
David Robley

"Yes, I have read Gulliver's Travels," said Tom swiftly.
Today is Pungenday, the 24th day of Bureaucracy in the YOLD 3174.
.



Relevant Pages

  • Re: Installing PHP on MacOS X
    ... I've installed php a few times on OSX Macs, ... php runs under the Apache web server, so you need to have Apache ... part of OSX, but it is switched off by default for security reasons. ... The test.php file referred to in the Entropy installation ...
    (alt.php)
  • Re: Apache2 & php5 Problem
    ... The file contains a test message between header tags and below ... message from the php script line. ... This gives you all the information about your PHP installation. ... You might need to add an AddHandler directive to your Apache config file if there isn't one already and a ScriptAlias ...
    (Debian-User)
  • Re: PHP5 Stability issues?
    ... > even scripts that do anything fancy or special. ... > assigning a string value to a variable, and php5 segfaults. ... libraries and O/s that PHP piggybacks onto. ... Rumour has it that setting up Apache to use mpm modules thus avoiding ...
    (comp.lang.php)
  • Re: Need help configuring php 4.3.10 with Apache 2.0.53
    ... Due to the difficulties with SuSE's setup of Apache, I was unable to get SSL to work with the distro's installation of Apache so uninstalled, reinstalling 2.0.53 from Apache's site. ... I restarted Apache over and over without php working. ...
    (alt.php)
  • Re: Permissions
    ... It turns out that some scripts required higher ... permissions that others, but I can't figure out what the difference is. ... PHP exec or from shell commands need execute privilege. ... Apache with suexec: your CGIs run as the same user as the ...
    (comp.lang.php)