Re: PHP Setup
- From: Lammi <Lorenz.Lammersdorf@xxxxxxxxx>
- Date: 30 May 2007 23:55:18 -0700
On 31 Mai, 05:32, jm <mister5...@xxxxxxxxx> wrote:
ok, first of all: why don't you use xampp (www.apachefriends.org)? as
long as you're not on a live-box, there no better way to install
apache and php on a windows-system.
When I run a PHP file that uses pg_connect() for example, it fails and
says that it is an unrecognized function. I know that the PostgreSQL
extension is in the extension directory.
there must be a dll called php_pgsql.dll. look at your php.ini for
"extension=php_pgsql.dll". this line is disabled by default. remove
the ; at the beginning of the line, restart apache.
To start the troubleshooting process, I create a file with phpinfo()
to see what is going on. It says that the php.ini file can be found
in C:\WINDOWS when there is no php.ini file in that directory. I can
do a search on the hard drive for 'php.ini' and the only php.ini file
that is listed is the one in C:\PHP.
have you compiled php by yourself?
in your httpd.conf should be an entry like this one:
PHPIniDir "C:/php"
LoadFile "C:/php/php5ts.dll"
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php
My Apache httpd.conf has: PHPIniDir "C:\PHP\"
Also the phpinfo() says that the extension_dir is C:\php5 when it is
not. In C:\PHP\php.ini the extension directory is listed as C:\PHP
\ext.
again, have you compiled php by yourself?
regards
.
- References:
- PHP Setup
- From: jm
- PHP Setup
- Prev by Date: Re: Php webservice extensions on IIS, IIS returns 404 on php
- Next by Date: Japanese character problem in mail subject line
- Previous by thread: PHP Setup
- Next by thread: Re: PHP Setup
- Index(es):
Relevant Pages
|