Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2007, 11:36 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 290
Thanks: 24
Thanked 0 Times in 0 Posts
Default PHP SETUP PROBLEM

Hi,

I am trying to run a PHP 5 application but am having lots of problems trying to configure it to run on Windows XP and IIS.

I have installed Apache2.2 and PHP php-5.2.3-win32-installer.msi

I have made some changes and the last error message I got yesterday was this:

No input file specified.

I have tried to set the doc_root path in the .ini file to C:inetpub/wwwroot/finance/www and also delete it as I saw in some forums but to no avail.

I have set my IIS alias to the "www" folder since it contains the index.php file. It also contains another file I do not know what it is used for (.htaccess) and I left it alone.

http::/localhost/www

Today, when I tried to open the file again in IE,

http://localhost/www/index.php

I got the following error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I would appreciate very much if someone could help me to sort this problem out. What do I have to do to get the server back and running and get it to work with this PHP application?

Cheers
 
Old July 5th, 2007, 01:04 AM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:I have installed Apache2.2 and PHP php-5.2.3-win32-installer.msi
you should run PHP either under IIS or apache these both do the same. If you allready have IIS running you can run both PHP and ASP files on it if you want to run PHP under IIS you should select the IIS option einstead of the Apache option when you install PHP

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.
 
Old July 6th, 2007, 02:36 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 290
Thanks: 24
Thanked 0 Times in 0 Posts
Default

Thanks for your reply.
 
Old July 7th, 2007, 06:03 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 290
Thanks: 24
Thanked 0 Times in 0 Posts
Default

Hi,

This is the error I am getting now:

Error connecting to the database: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

How can I fix this error? Does it mean that the database might be missing?

Cheers
 
Old July 8th, 2007, 06:19 AM
Authorized User
 
Join Date: Feb 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi pallone,

This eror means that the Database(whichever u r using) and the php are not connected. So the SQL queries that u have written in our script are not able to be executed.

Please check the database connectivity with php.....If u r using MySQL Database then i can tell u how to connect it to the php engine.

 
Old July 8th, 2007, 09:55 PM
Authorized User
 
Join Date: Mar 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to cyber_kaley20 Send a message via AIM to cyber_kaley20 Send a message via Yahoo to cyber_kaley20
Default

Install the XAMPP or WAMP, to easly running PHP program
http://www.apachefriends.org/en/xampp.html

Escaler





Similar Threads
Thread Thread Starter Forum Replies Last Post
setup for php application for client viztech PHP How-To 0 October 10th, 2007 12:38 AM
setup database connection include file in PHP crmpicco PHP Databases 2 September 30th, 2007 04:18 PM
php setup issue a1m1m25 Beginning PHP 3 March 27th, 2005 01:10 PM
Setup problem Martyn BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 24th, 2004 02:57 PM
setup and deployment problem wwwdirzala Classic ASP Basics 2 April 15th, 2004 08:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.