User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 402,756 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,679 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 10063 | Replies: 26
Reply
Join Date: Jul 2005
Location: Thunder Bay, Ontario, Canada
Posts: 17
Reputation: webwannabee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
webwannabee webwannabee is offline Offline
Newbie Poster

Re: can't install Apache-many tries

  #11  
Jul 7th, 2005
lol..you have patience for the noobs (boy, I'm slow lol) getting good at uninstalling, have done it like 40 times, but what I didn't do afterwards was RESTART, but have restarted just now, cause it says to for the php tut (the test page works when I turned Apache back on, through 'Programs..Apache' but the icon isn't in the systems tray at bottom of puter..oh well thanx again

update: Yay!! guess 1 third there now- have php tut done, am seeing the page I should at http://localhost(php info page)...SO exiting!! thanx Troy
Reply With Quote  
Join Date: Jul 2005
Location: Thunder Bay, Ontario, Canada
Posts: 17
Reputation: webwannabee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
webwannabee webwannabee is offline Offline
Newbie Poster

time to change the title?

  #12  
Jul 7th, 2005
Reply With Quote  
Join Date: Jul 2005
Location: Thunder Bay, Ontario, Canada
Posts: 17
Reputation: webwannabee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
webwannabee webwannabee is offline Offline
Newbie Poster

Help Re: time to change the title?

  #13  
Jul 7th, 2005
k Troy, was hoping my next post would say I'm finished, and don't need to trifle you again but....using the MySql installer, clicking all the defaults, I get as far as "Install as Windows Service, ticked, and "MySql" in the box, and "Launch the MySql Service automatically" and get pop-up "a windows service with the name MySql already exists (swear I don't have any other versions in here) "Do you want to use this servicename".. 'yes'
enter password...press execute, first two boxes tick, but no 'start service', Cannot create Windows service for MySQL. error 0...so I gess I can't play
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 344
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: time to change the title?

  #14  
Jul 7th, 2005
Your double Apache problem, and now MySQL install warning that service with name 'MySQL' already exists....you've definitely had MySQL installed (or an attempt to install) previously. Whether you did it or some product you installed put it on there for you. Depending on how MySQL was installed, you'll have MySQL in your Add/Remove Programs Controlpanel. Again, try removing everything MySQL related, then try again with MySQL install according to my HOWTO.

Good job getting Apache and PHP playing together and tested. That has to have you feeling at least somewhat better, eh?

Oh, and not to worry about not having Apache in the systray. You can just go to Start/Programs/Apache/... The service control utility is in there. It may have an option to click to put it back in the systray...I don't know about that, and I'm not on an Win/Apache computer at the moment or I'd check for you.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote  
Join Date: Jul 2005
Location: Thunder Bay, Ontario, Canada
Posts: 17
Reputation: webwannabee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
webwannabee webwannabee is offline Offline
Newbie Poster

Re: can't install Apache-many tries

  #15  
Jul 7th, 2005
Thax Troy (remembered to reboot puter this time after uninstalling everyting mysql related...hope that's what it was, crossing fingers lol) ummm- had to add this: in the box that said 'MySql' as default, I scrolled down and picked 4.1(cause that's the file I'm installing right?) and gess what? got no error message, and finished the installation ok..crossing fingers again(still don't know why it said I had another mysql, cant find it, and rebooted a few times)
Reply With Quote  
Join Date: Jul 2005
Location: Thunder Bay, Ontario, Canada
Posts: 17
Reputation: webwannabee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
webwannabee webwannabee is offline Offline
Newbie Poster

Re: can't install Apache-many tries

  #16  
Jul 7th, 2005
Followed the rest of the instructions to a T (they were simple and clear enough, but every time I get this: Fatal error: Call to undefined function mysql_connect() in C:\www\dbtest.php on line 8 when I go to http://localhost/dbtest.php to test it...now I think I will give up for a while
Reply With Quote  
Join Date: Jul 2005
Location: Thunder Bay, Ontario, Canada
Posts: 17
Reputation: webwannabee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
webwannabee webwannabee is offline Offline
Newbie Poster

Bad MySql, bad

  #17  
Jul 7th, 2005
this is what's on line 8 of the code I pasted into that dbtest.php file created for c:/www/dbtest.php: if (!$cnn = mysql_connect($db_server, $db_user, $db_pwd)) {
echo mysql_error();.. am told there is an error on line 8, when I test the MySql
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 344
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: Bad MySql, bad

  #18  
Jul 7th, 2005
There is a section in the tutorial where it tells you to enable the mysql extension in the php.ini file. It definitely sounds like you did not do that. You need to uncomment this line in your php.ini file.

extension=php_mysql.dll
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote  
Join Date: Jul 2005
Location: Thunder Bay, Ontario, Canada
Posts: 17
Reputation: webwannabee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
webwannabee webwannabee is offline Offline
Newbie Poster

Re: Bad MySql, bad

  #19  
Jul 8th, 2005
Well Troy, I did uncomment that line (ha ha, I'm picking up the lingo, and funny thing, stuff is starting to dawn on me how all this is done) with my very narrow grasp of this, all I can figure is maybe the version I downloaded has a 'corrupt' part in it, maybe the mysql line I uncommented itself, is calling some module somewhere that is giving me that error message, instead of what I should see...does that make sense to you somehow...or are you L.Y.A.O ahahhhaahhahaha (you don't know how much I appreciate your help up to now, and it's not wasted because I'm sure in a year from now I will look back on this and laugh and laugh.....)
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 344
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: can't install Apache-many tries

  #20  
Jul 8th, 2005
OK, we are gonna get this figured out. You with me?! One step at a time now.

If you followed my instructions--and I'm sure you did :rolleyes: --, you'll have a directory named php on the root of your C:\drive. In this directory, you should have an ext directory.
c:\php\ext\
Notice in your c:\php\ext directory that there are 38 (or so) DLL files. These are the PHP extension modules. One of these is php_mysql.dll. Also notice the php.ini line I had you uncomment was extension=php_mysql.dll.

Now, when Apache starts, it will process this php.ini file. It will also try to load any extensions you have enabled. The way Apache finds the extension files can be affected a number of ways, but the way I tell you to do it is this:
Originally Posted by Troy
Right-click My Computer and choose Properties. Choose the Advanced tab. Click the Environment Variables button at the bottom. In the System Variables section, click Path, then the Edit button. At the end of the path value, add ;C:\php;C:\php\ext Click OK and keep clicking OK until you exit out of the Properties. Reboot your computer.
If you had failed to do this path thing, then when you start Apache, you'd get warning messages popup telling you there were files that could not be found. Apache would go ahead and start, but you'd not have the mysql extension loaded. Not having the mysql extension loaded would produce the exact PHP error you are seeing--that is, the mysql commands don't even exist.

So are you seeing any error messages when you start Apache? You can check your Apache error log. If you did the default Apache install for Windows, it will be located at C:\Program Files\Apache Group\Apache2\logs\error.log. You can open this file in Notepad or your favorite text editor (PSPad or UltraEdit for example). If Apache cannot find the mysql extension dll, you'll see a line like this in the error log:
PHP Warning:  PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0

Check through all this slowly--take you time to make sure you crossed all the t's and dotted all the i's.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Linux Servers and Apache Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Linux Servers and Apache Forum

All times are GMT -4. The time now is 8:40 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC