Web Hosting Talk







View Full Version : php and mysql download


randomizatio
04-17-2004, 02:26 AM
Um i'm really confused as to which file i should download. Um, i use a window so...

Should i download the PHP 4.3.6 zip package or PHP 4.3.6 installer ?

And Windows 95/98/NT/2000/XP/2003 (x86) or Without installer (unzip in C:\) for mysql?

Or... HELP!!:confused:

randomizatio
04-17-2004, 02:40 AM
And where do i download perl for windows? :confused:

orbitz
04-17-2004, 02:45 AM
I setup apache on my windows XP, so I downloaded the PHP 4.3.6 zip package

orbitz
04-17-2004, 02:47 AM
...
I setup a server for practicing purpose, and here the list of files i downloaded. You may find it usefull

1 --- apache version : 1.3.29

http://www.apache.org/dist/httpd/binaries/win32/

file:
apache_1.3.29-win32-x86-no_src.exe


2--- mysql version: 4.0.18 standard

http://dev.mysql.com/downloads/mysql/4.0.html
Windows 95/98/NT/2000/XP/2003 (x86)

3 -- php version: 4.3.5

http://www.php.net/get/php-4.3.5-Win32.zip/from/a/mirror

file:
php-4.3.5-Win32.zip

4 -- phpmyadmin version: 2.5.6
http://www.phpmyadmin.net/home_page/

file: Latest stable version: 2.5.6 [zip]

5-- Pearl 5.8.3
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/Source

file: http://downloads.activestate.com/ActivePerl/src/5.8/AP809_source.zip
:)

randomizatio
04-17-2004, 02:57 AM
o THANKS SO MUCH!!

orbitz
04-17-2004, 03:04 AM
you are very welcome!

A friend of mine also told me about this program called "EasyPHP"
What it does is to install the bundle of php, mysql, phpmyadmin, apache for you.


http://www.easyphp.org/telechargements/dn.php?F=easyphp1-7

This is the direct link to the latest version of easyPHP.

Burhan
04-17-2004, 03:25 AM
This listing of steps should get you started. First, you will need to get a webserver. I would recommend apache (http://httpd.apache.org). You can download the latest version of Apache from this mirror (http://apache.mirrors.hoobly.com/httpd/binaries/win32/apache_2.0.49-win32-x86-no_ssl.msi). If that link is busy or times out, you can choose a different mirror (http://httpd.apache.org/download.cgi). The file that you are after is apache_2.0.49-win32-x86-no_ssl.msi.

Once you get the file downloaded, simply double click on it to start the Apache installation. You can accept the default values for now. Once the install script has finished, you can verify your apache install is working by pointing your browser to http://localhost or http://127.0.0.1

If everything went well, you will see the default apache start page.

Next step would be to download php. Since you are using Apache, I would recommend the .zip file (the link to which was provided by orbitz).

Once this file has downloaded, unzip it. Rename the resulting folder to php and move it to your c:\ drive. In that php folder, there is a file called php4ts.dll (it may be hidden on your system. You can enable the viewing of hidden files by going to Tools --> Folder Options, then clicking on the View tab, and selecting "Show hidden files and folders"). Once you find it, move it to c:\windows\system

There is a file called php.ini-recommended. Rename it to php.ini and also move it to c:\windows

Next, find the file called httpd.conf in your Apache install directory. If you chose the default install path, Apache is installed in C:\Program Files\Apache Group\Apache2 ... you will find httpd.conf in the conf subdirectory.

Open this file up in any text editor, then add the following lines :

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
LoadModule php4_module "c:/php/sapi/php4apache2.dll"


Save this file, and restart Apache.

You can verify your PHP install by creating a simple php file with the following line

<?php phpinfo(); ?>


Saving it with a .php extension in C:\Program Files\Apache Group\Apache2\htdocs directory, then browsing to it in your web browser. You should see a page describing your PHP settings.

The final (and easiest) step is to install MySQL.

Download the MySQL binary for Windows (link number 2 provided by orbitz).

Double click the file to start the installation, choose default options. Once the installation has finished, to to Start --> Run, type c:\mysql\bin\winmysqladmin.exe and hit enter. Since this is the first time you are running MySQL, you will be prompted to enter a login name and password. This will be your admin credentials for MySQL, so do not forget it :)

Once you have entered the information, you will see an application with details about you MySQL server. There will also be a traffic light icon in your task bar (the area next to your clock). If it is green, your MySQL server is running. To stop your MySQL server, you can right click on the traffic light icon and stop it from there.

Hopefully, this should get you started.

randomizatio
04-17-2004, 01:37 PM
Next, find the file called httpd.conf in your Apache install directory. If you chose the default install path, Apache is installed in C:\Program Files\Apache Group\Apache2 ... you will find httpd.conf in the conf subdirectory.

Open this file up in any text editor, then add the following lines :


code:--------------------------------------------------------------------------------
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
--------------------------------------------------------------------------------


Save this file, and restart Apache.

i dont see httpd.conf! but i see httpd and httpd.default.. which one do i change? they seem like the same thing.

and do i add that in the end or beggining

randomizatio
04-17-2004, 01:56 PM
ohh... n installation for mysql doesnt work :confused:

randomizatio
04-17-2004, 04:04 PM
o well, ill use the easyphp one lol

Saryooo
04-18-2004, 03:39 AM
hay, not forgot phperl. I am using it from six month and full recommend it.
please check for detail.
http://phperl2.sourceforge.net/