PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old January 31st, 2006, 04:22 PM
Web slinger Web slinger is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Miami, Florida. Dade
Posts: 4 Web slinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Web slinger
Help me, Please!

Hello guys/gals,

I am a novice at this Php, Mysql and Apache stuff and have recently been thrown to the sharks and told to make it work. I’ve installed PHP 5.0.2, Mysql 4.0.21 and Apache 2.0.52 (running as localhost) on my Windows XP operating system. I’m able to run PHP script, my Apache seems to be working and I can logon to Mysql via mysql monitor through the command prompt. My problem is that I cannot connect to Mysql using PHP. I know that PHP five is no longer packaged with the mysql lib.dll, and I tried performing the necessary amendments to php.ini and httpd conf, but nothing seems to work. The queerest thing is that when I add a prefix to the file name (such as php.inix, so that my system cannot see it and validate that I am amending the right file) I am still able to pull up PHP script in my browser. Please help I had no sleep, no food and I’m running out of hair to pull ever since I started this endeavor.

Here is a list of some of the amendments I’ve made:

· Changed the window path to point to my php5 doc

· Amended http config with the following three scripts

#LoadFile C:/PHP5/libmysql.dll
LoadModule php5_module C:/PHP5/php5apache2.dll
#PHP.IniDir "C:/php5"

· In my php_ini I uncommented php_mysql extention, pointed doc root to my apache htdoc and changed the extention_dir to point to my “CHP5ext”.

· In my phpino() it shows that php is looking for php.ini in C:window. I checked this directory and didn’t have the file there.

P.S. I noticed that my IE browser is running kind of sluggish and there are times that I try to pull up the phpinfo() and it doesn’t come up. Can this mean that I am having a port issue and if so how can I check for and possible amend it.

Thanks,
New kid on the block

Reply With Quote
  #2  
Old January 31st, 2006, 10:57 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,720 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 20 m 53 sec
Reputation Power: 6
RE: Help me, Please!

go to your php.ini.recommended file in your php directory (forget the windows folder for now). that is the php.ini that you need to change and save as php.ini in the same place. restart your server and now see what the phpinfo page says - it should now be pointing to the correct php.ini in your php directory.

Reply With Quote
  #3  
Old February 1st, 2006, 02:19 PM
Web slinger Web slinger is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Miami, Florida. Dade
Posts: 4 Web slinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Web slinger
RE: Help me, Please!

Hello,

Thanks for the advice, I tried renaming the file in my php5 directory but it still gave me the same problem even after I rebooted. When I try to go to myconnect it spits back "Fatal error: Call to undefined function mysql_connect() in ....

If life was a game measured by this php stuff, I would be getting my butt wooped!

Thanks for the effort
BSL

Reply With Quote
  #4  
Old February 1st, 2006, 09:23 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,720 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 20 m 53 sec
Reputation Power: 6
RE: Help me, Please!

go to your phpinfo page and see if the php.ini files is still suppost to be in C:WINDOWS (I doubt it). anyway - wherever it tells you the php.ini should be - edit that file to include your mysql extension.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Help me, Please!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway