firefly2442 Posted February 1, 2003 Share Posted February 1, 2003 I was just wondering if anyone has succesfully installed MySQL (www.mysql.com) on their computer. I tried doing it once but got completely confused. Anyone have any suggestions or websites that have good easy to understand tutorials for a complete newbie? Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted February 2, 2003 Author Share Posted February 2, 2003 Nevermind, I got it to work. Wohoo! Quote Link to comment Share on other sites More sharing options...
RooK Posted February 2, 2003 Share Posted February 2, 2003 Would you mind posting the steps you took? I'd like to get Apache2 and mysql running on my machine for testing later. Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted February 2, 2003 Author Share Posted February 2, 2003 Download Mysql and extract to C:\mysql\ or wherever you wanna install it. Go into the "bin" folder and run winmysqladmin.exe Create the .ini file that's needed. You will need to create a username and password for the admin account. I think that was it for mysql. For php download the latest from php.net Extract the zip to C:\php\ or wherever and copy the php-ini-dist to C:\Windows and rename to php3.ini Now copy the php4ts.dll file to C:\Windows\System32 If you read the install.txt it shows you what to edit in the php3.ini file. Basically just paths to different directories. Then edit the httpd.conf file for apache and add this: #PHP MODULE####################################### LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php ################################################# to the end of the modules. Make sure apache is NOT running. I would NOT install php as an executable. It says in the installer that it's a big security risk. Make sure the path above is correct to the .dll I think that's it. I might have missed something but that should get you started. Quote Link to comment Share on other sites More sharing options...
RooK Posted February 2, 2003 Share Posted February 2, 2003 I'm running Apache1 and an older version of PHP, but I tried to install Mysql (actually, followed those steps but I never tested to see if it worked!). Thought there was more to a Mysql installation than that Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted February 2, 2003 Author Share Posted February 2, 2003 I just know mine works because the forum that's on my website needs Mysql. I think you can put in like "shell> mysql -version" or something to that effect to see if it's installed. Quote Link to comment Share on other sites More sharing options...
the.ronin Posted February 2, 2003 Share Posted February 2, 2003 (edited) installing php locally is one of the bigger pains in life. i HIGHLY HIGHLY recommend (for lazy people like me who just like pushing one button) the packaged suite called "php triad" -- it may be under a different name now (php geek?) so just google it. its a windows app that includes apache, mysql and php and installs all of it for you. it may sometimes have a deprecated version of one of the components which you'll need to upgrade, but otherwise, if its only a security upgrade, you wont need it since your only using it to test server-side locally and not as an actual server. ------------------------------- to test, just have a real simple php document with some simple echo command <? echo "hey this works" ?> and save it as doc.php in your directory, open your browser (must be opened from your browser -- all php must be opened from browser) and point to it and see if the screen says "hey this works" or some message about a parsing error. Edited February 2, 2003 by the.ronin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.