Jump to content

Recommended Posts

[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.

Link to comment
https://forums.phpfreaks.com/topic/71116-i-really-need-help-with-everything/
Share on other sites

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.

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.