Current location: Hot Scripts Forums » Programming Languages » PHP » Installing PHP on Windows 2003 server


Installing PHP on Windows 2003 server

Reply
  #1 (permalink)  
Old 01-07-06, 03:16 PM
NoMercy's Avatar
NoMercy NoMercy is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Installing PHP on Windows 2003 server

I need a little bit of help. I'm not very experienced in installing PHP on servers, I just know how to write in php. I wrote a program and tested it on my webhost that I use for the sites. The program works fine. I've writen the program for my Uncle's Company. His site is hosted on his server. I've supposedly installed PHP on his server and I can view the PHP files and the phpinfo() works fine. I've also just installed MySQL 5.0 and it works great. But when I run my program I can't seem to get any of the $_GET, $_POST, $_REQUEST functions to work. Before I used to get an "Undefined index" Error, but I reinstalled PHP and no longer get this error, but some of my pages like 'modules.php?name=view_page&id=1' it won't display the things from id=1 because it doesn't pick up the $_GET function. I believe I haven't installed PHP correctly on my server. Can someone help?
Reply With Quote
  #2 (permalink)  
Old 01-07-06, 04:22 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
I have not specifically seen the problems you are describing, but here are some things you can check that come to mind -

1) Use your phpinfo(); test script and look near the top of the listing to see if and where PHP is looking for the php.ini file. Make sure that this matches where you placed the php.ini as part of the installation, otherwise it is not using any php.ini. Also check further down in the listing to see if the mysql extension is shown.

2) There is a path listed within the php.ini for the extensions .dll folder (which is typically a folder within the PHP folder or where ever you installed PHP.) Make sure that the path for the extensions folder is set correctly.

3) The problems don't seem to be related to mysql, but the default php.ini does not enable the mysql.dll. If mysql does not show up in the phpinfo(); listing, find this line in php.ini - extension=php_mysql.dll and remove any semicolon at the start of the line to uncomment it. Restart the web server and/or reboot the server to cause the change to take effect.

4) There is also a doc_root path in the php.ini that must be set correctly.

You might re-download PHP, your copy might be corrupted or might be missing files. Also, all the files might not have been copied onto the server.

Last edited by mab; 01-07-06 at 04:24 PM.
Reply With Quote
  #3 (permalink)  
Old 01-07-06, 10:49 PM
NoMercy's Avatar
NoMercy NoMercy is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, I'll try that when I get a chance Tomorrow.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
php with Apache in windows eDevil PHP 3 08-08-04 12:03 AM
Does Zend Optimizer version 2.5.0 support windows server 2003? szarts PHP 1 02-29-04 11:15 PM
Proven PHP Script not working on Windows 2000 server – any ideas? chimchim PHP 5 11-13-03 09:16 PM
Matrix Reseller - Windows 2003 and FreeBSD vortech General Advertisements 0 11-02-03 10:06 PM


All times are GMT -5. The time now is 06:27 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.