You are here: PHP Setup « PHP Programming Language « IT news, forums, messages
PHP Setup

Posted by jm on 05/31/07 03:32

I am setting up Apache 2.0, PHP5, and PostgreSQL 8.2 on Windows XP. I
have setup everything correctly in the past but recently had to do a
reformat and have to do the installs all over again.

First, I installed Apache with no problems what so ever.

Next, PHP. Again smooth install. With a little tweaking of the
httpd.conf file, Apache was working with PHP.

Next was PostgreSQL. Again, the install went fine and I could use
pgAdmin to connect to the databases.

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.

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.
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.

Lastly, when I do a restart of the computer, try to pull up localhost,
instead of showing any PHP errors, it just shows the PHP source code
in plain text like it has no idea what PHP is, and suddenly the
phpinfo() page that I created is just blank.

If anyone has some ideas to help me out, it would be much appreciated,
I don't want to have to pull out any more of my hair. :)

j

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация