AndyDS Posted September 29, 2007 Share Posted September 29, 2007 [q]I want to learn PHP, and I know I need three things: * PHP * A Server (Apache). * MySQL. Downloading MySQL is a pain. I have downloaded three different files already, and all of them are corrupted. I tried the first Windows ones (in a ZIP file and the installer) and also the one that would work with my computer (for Windows x86)(the ZIP file). ALL of them are corrupted, and it is starting to get the hell out of. Any help? This is the site from where I am trying to download MySQL: http://www.mysql.com/downloads/index.html Also, if someone helps me to set up the Apacher server, I will be very grateful. I know I will not use it much, just to test my PHP files. [/q] I asked that on other place, and I didn't get much help at all, so people recomended me this place. Technically, my Apacher server works fine now, however, when I want to test a PHP file, the only thing I see on my screen is the code of my PHP, not what I have created: Screenshot. Quote Link to comment https://forums.phpfreaks.com/topic/71116-i-really-need-help-with-everything/ Share on other sites More sharing options...
wildteen88 Posted September 29, 2007 Share Posted September 29, 2007 When downloading mysql you should download the Windows ZIP/Setup.EXE (x86) option here. Once downloaded extract the zip and run setup.exe to install mysql. Follow the onscreen instructions for installation. NOTE: When you download mysql make sure you pick a mirror that is closest to you. For configuring Apache with PHP. Go to php.net and download the zipped binaries package (not the installer). Once downloaded extract the contents of the zip to C:\php. Open up Apache's configuration file (httpd.conf) and add the following lines at the end of the httpd.conf: LoadModule php5_module "C:/php/php5apache2_2.dll" PHPIniDir "C:/php/" AddType application/x-httpd-php .php Save the httpd.conf and restart Apache. Go to http://localhost/ and run a test php script with the following code in it: <?php phpinfo(); ?> You should see a page generated full of information about php and the servers setup. PHP is installed and Apache is configured correctly. Now go to C:\php and rename a file called php.ini-recommended to just php.ini. You can now configure PHP. Note: With PHP5 you must enable the mysql extension manually. Please read this FAQ thread. Only apply this step once you have MySQL setup. Quote Link to comment https://forums.phpfreaks.com/topic/71116-i-really-need-help-with-everything/#findComment-357790 Share on other sites More sharing options...
AndyDS Posted September 30, 2007 Author Share Posted September 30, 2007 Well, I downloaded that file like 5 times already, and it is always corrupted o_O. Any other ideas? Quote Link to comment https://forums.phpfreaks.com/topic/71116-i-really-need-help-with-everything/#findComment-358167 Share on other sites More sharing options...
wildteen88 Posted September 30, 2007 Share Posted September 30, 2007 Well, I downloaded that file like 5 times already, and it is always corrupted o_O. Any other ideas? How is it corrupt? I don't understand. What are you doing? Have you any archive extracting software installed? Such as WinZip or WinRAR? Quote Link to comment https://forums.phpfreaks.com/topic/71116-i-really-need-help-with-everything/#findComment-358347 Share on other sites More sharing options...
AndyDS Posted September 30, 2007 Author Share Posted September 30, 2007 I have Windows XP, and it can open ZIP Files. Should I try using WinRar? Quote Link to comment https://forums.phpfreaks.com/topic/71116-i-really-need-help-with-everything/#findComment-358544 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.