How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP
I’ve had lots of people ask my in the past, how to install PHP, MySQL and Apache for Windows XP. I recently formated my computer, and since I was going to do it, I thought I’d write out how to do this, for anyone who wants to know. My computer has SP2 installed.
Apache Web Server
Download Apache HTTP Server. I downloaded the current stable release, in this case: Apache 2.0.54. So download the Win32 Binary (MSI Installer), double click it, let it install.
PHP Run-time
Download PHP. I downloaded PHP 4.4.0. I could have downloaded PHP 5.0, but as long as PHP < 5.0 gives me what I need, I won’t change. PHP 5 is the way to go. The tutorial below is pretty much the same, see the comments if you have problems. Unzip the contents, and put it all in the folder C:\php.
Copy the following files into your Apache2 installation directory. In my case it was C:\Program Files\Apache Group\Apache2.
php4ts.dll
php4apache2.dll
php.ini-recommended
Rename php.ini-recommened to php.ini. Open the php.ini in your favorite editor. Mine is EditPlus.
Search for ‘doc_root’ until you find the line:
doc_root =
Change this line to (in my case):
doc_root = C:\\Program Files\\Apache Group\\Apache2\\htdocs
Go to the directory: C:\Program Files\Apache Group\Apache2\conf\;
Add the following lines to the end of the file httpd.conf:
LoadModule php4_module php4apache2.dll
AddType application/x-httpd-php .php
In the same file, add index.php to DirectoryIndex — this will make sure index.php will be picked up by the server automatically:
DirectoryIndex index.html index.html.var index.php
PEAR Extension
PEAR is an extension for PHP. These days PEAR is included with PHP, but you need to install it yourself. I use PEAR on all my PHP developments.
Ok.. Installing PEAR isn’t bad, here is what you do:
Open a command line window (i.e. Start->Run->cmd)
Go to the PHP directory, in my case C:\php. Type go-pear.bat. Follow the instructions.
The PEAR extension get installed in C:\php\PEAR directory.
Once PEAR is installed, go to the php.ini file in your Apache2 directory. Find the
;include_path = ".;c:\\php\\includes"
Remove the semi-colon (to un-comment it), and then add C:\php\PEAR to it
include_path = ".;c:\\php\\includes;C:\\php\\PEAR"
MySQL DataBase
Download MySQL (runtime) and MySQL Administrator (Admin program). I used MySQL 4.1 Generally Available (GA) release. Download, unzip, and install both.
Testing it all – you really don’t need to, but before testing, restart your computer.
Test Apache Web Server
Once Apache is installed, you should be able to go to your favorite browser, type the following URL: http://localhost/ and have a test page load.
Test PHP
Go to the htdocs folder in Apache2 folder
Create a file called index.php, inside of that file put (be sure to remove the space between the < and the ?php):
<?php
echo "php installed ok";
?>
Go to your browser, type the following URL: http://localhost/index.php
If everything worked OK, “php installed ok” will appear on the screen.
Test MySQL and PHP using phpMyAdmin
Download phpMyAdmin.
This is the best web based MySQL Administration Tool (vital, trust me).
Unzip the contents into a folder phpMyAdmin in your htdocs folder.
Were going to use phpMyAdmin to control MySQL instead of the command line.
In the phpMyAdmin folder open the config.inc.php and type in the your root password for MySQL:
$cfg['Servers'][$i]['password'] = 'xxxxx';
Try and run phpMyAdmin in your browser: http://localhost/phpMyAdmin/
You’ll most likely get the error:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
To fix this, do the following:
- Start the MySql Administrator, select “Startup Variables” from the menu, select the “Security” Tab. Check ‘Use old passwords’.
- Select “User Administration” from the menu, select the root user account and change the password for root user (other than null)
- Select “Service Control” from the menu, press “Stop Service” button and then press “Restart Service”.
Go back to config.inc.php and type in the your new root password for MySQL:
$cfg['Servers'][$i]['password'] = 'yyyyyy';
Try and run phpMyAdmin: http://localhost/phpMyAdmin/ — this should work now.
Test PEAR
Using phpMyAdmin to create a database
In your htdocs folder create a file called testpear.php, in the file put the following (be sure to remove the space between the < and the ?php):
<?php
require_once 'DB.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$db_host = 'localhost';
$db_user = 'root';
$db_pass = 'password';
$db_name = 'dataBase_name';
$dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name";
$db = DB::connect($dsn);
$db->setFetchMode(DB_FETCHMODE_OBJECT);
?>
This will use the PEAR DB Extension to create a connection to your database. Before running this file make sure your database details are correct (i.e. name, user, password). Run this file in your browser, if no errors are listed, then your good to go.
————————
http://forums.mysql.com/read.php?11,6400,38314#msg-38314
http://www.devarticles.com/c/a/Apache/Installing-PHP-under-Windows/
Have a second? Check out this great Canadian Health & Living Store based in Toronto


October 19th, 2005 at 8:53 am
Thank you for publishing the instructions; very useful. I have had trouble when I get to installation of the PEAR extension using the command line. When I get to the instruction to type “go-pear.bat”, I get a response that’ “go-pear.bat” is not recognized as an internal or external command, operable program or batch file.’
October 19th, 2005 at 10:56 am
Hi Paul,
Thanks for the kind words. I just re-downloaded php-4.4.0-Win32 and php-5.0.5-Win32 and both had the go-pear.bat file. Be sure to check that you tried to run go-pear.bat in the PHP directory you unzipped.
Give me a bit more details if it still doesn’t work..
Here is the go-pear.bat file:
@ECHO OFF
set PHP_BIN=cli\php.exe
%PHP_BIN% -d output_buffering=0 PEAR\go-pear.php %1
pause
Good luck,
George
November 8th, 2005 at 11:14 am
Do you have any cheat sheets that will help me if I wish to run under Tomcat 5? Any pointers greatly appreciated. Thanks.
November 8th, 2005 at 1:33 pm
Hi,
I’ve never done this before, but you can try this link — it explains how to install PHP 5 on Windows using Tomcat 4.x or 5.x
Good luck,
George
December 8th, 2005 at 10:32 pm
I have pretty much installed everything. but i dont know how i get the server to show up on my DNS IP. how do i do that? so like when i got to type into my browser my computers IP xxx.xxx.xxx.xxx that it brings up the same test page? help!
December 8th, 2005 at 10:41 pm
Hi Nate,
All you have to do, is go into your routers configuration and forward port 80 and 8080 to your computer router ip. So when use your IP URL in FireFox, your router will forward the HTTP requests for port 80 and 8080 to your local router IP. Reply back or Google it if your having any trouble.
Good luck,
George
December 12th, 2005 at 10:34 am
Hi, what if I want to use python instead of php, how should I set that up? Thanks.
December 12th, 2005 at 12:36 pm
Sorry Steve, never tried.
I’ll probably give it a try over the holidays, but as of now, can’t help.
George
December 17th, 2005 at 7:17 am
Thanks a lot for the intructions u provided, george. much appreciated. but i’ve some problems here..hope you can provide some solutions.
- if my test.php includes header.php and footer.php, why the browser doesnt load header.php and footer.php when i load test.php?
December 17th, 2005 at 1:08 pm
Hi Justin,
No problem — I’m not sure exactly why the include isn’t working, but here is an example I made quickly: include example — Run the test.php.
All the best,
George
January 5th, 2006 at 12:00 am
George,
Thanks for these instructions.
Only place I got stuck for a while was in phpMyAdmin.
The file config.inc.php didn’t exist. The phpMyAdmin web site talks about a script (scripts/setup.php) to create it, but that script wasn’t present in my download either.
Finally after looking at config.default.php (which was present), I just created my own config.inc.php and put in the password line.
All is working well.
I also use Eclipse with the PHPEclipse plugin so as a further step I made the Apache DocumentRoot point to my Eclipse workspace (and I imported phpMyAdmin into the workspace).
So now I can edit in Eclipse and either hit save, and load the file via my browser, or I can right-click the file within Eclipse an see the results in an Eclipse window (using the PHPEclipse integrated browser).
My next step is to figure out how to use PHP debugger from within Eclipse (but I understand from the PHPEclipse site that there may be an issue right now with PHP 4.4.1, so this may have to wait some).
Anyway, thanks again.
January 12th, 2006 at 2:51 pm
Hi Dave,
Good to hear things are going well in your PHP development. Its good your finding a development environment that you enjoy. I’ve only tried PHPEclipse once while at IBM last summer, it seemed good. I use EditPlus now, I’ve associated PHP files with that program, and it starts within a couple seconds. In any case, all the matters is what works for you. Good luck with your developments!
George
January 14th, 2006 at 12:19 am
[...] I’m blown away how simple it is to get Apache/PHP/MySQL up and going. In Windows I wrote a fairly extensive tutorial on getting started. Using the Debian apt-get command in Ubuntu, I literally had the server running in less than 5 minutes. [...]
January 18th, 2006 at 2:30 pm
Hi George,
First, thank you for taking the time to set this site up. Second, I am a Noobie. I am completely lost, I have no idea how to set up a file in Apache. Since I cant seem to make it past PHP, I have no idea how easy it will go from there but any help you could give would be greatly appreciated.
Thanks In Advance,
Shaun
January 18th, 2006 at 3:30 pm
Sorry to bother you again…
I must really be a Noob but I really need things spelled out for me. My Apache promt screen show an error when I run a test… and I not sure how to get to the directory files that you speek of:
Copy the following files into your Apache2 installation directory. In my case it was C:\Program Files\Apache Group\Apache2.
C:\php\php4ts.dll
C:\php\sapi\php4apache2.dll
C:\php\php.ini-recommended
Where is the c:\programfiles\apache group\apache2… are we talking about in the “black box” or are they located in read me files…
I am so sorry but I really am a Noobie at this, I just learned to write HTML a few days ago…
Perhaps you could give me more descriptive directions via email?
Again Thanks In Advance,
Shaun
January 24th, 2006 at 6:59 pm
Hey George,
Thanks a lot for your clear instructions. Got everything up and running, except phpMyAdmin.
I got stuck in the same place as Dave.
The file config.inc.php didn’t exist. The file config.default.php said in one of it’s first lines not to edit it, but to edit config.inc.php instead.
So I copied config.default.php, renamed it to config.inc.php, and put in the password for the root account.
I kept getting the same error:
phpMyAdmin – Error
Cannot load mysql extension. Please check your PHP configuration. – Documentation
Then I thought that maybe the file config.default.php might be conflicting, so I put it in a temp folder.
First I got a page full of warnings, amongst which warnings that the config.default.php could not be found. I put the file back and experimented some more, but I can’t get it to work.
I’m using:
MySQL 5.0.18
PHP 5.1.2
phpMyAdmin 2.7.0pl2
Any advice?
Thanks,
Gen
January 26th, 2006 at 3:01 pm
Oops,
I left the wrong e-mailaddress
Gen
January 29th, 2006 at 2:48 pm
Hi everyone,
I’ll try my best to reply back in the comments or email you back in time. Sorry if it takes longer than most would like. Consider posting a question at DevShed Forums or PHPBuilder forums. Both these sites have helped me out in the past.
Good luck,
George
January 31st, 2006 at 11:53 pm
How to install PEAR on Windows 2000 Pro?
What version of Apache, MySQL, PHP and PEAR is compatible for windows 2000 pro?
February 1st, 2006 at 7:59 am
@gen
i have the exact same versions of mysql,php and phpmyadmin
i had the ‘Cannot load mysql extension’ prob too
to fix it, in your php.ini file uncomment the line: extension=php_mysql.dll
and also be sure to copy the dll (it’s in php\ext) to a folder where it will be included.
for me it was the apache2 folder (C:\Program Files\Apache Group\Apache2)
hope that helps :)
as for my problem.. i installed pear but “require_once ‘DB.php’;” doesn’t work
because the file cannot be found. i search my whole hard drive(!) and it doesn’t exist..
could it be because of php 5? is there any way to get around it?
February 1st, 2006 at 11:46 am
Hi Eric,
Thanks for the reply, thats the exact same thing I emailedd Gen last week.
As for your problem, you need to install the package.
You have 2 options:
1) Go to c:\php
2) type: pear install db
If that doesn’t work, then go to pear.php.net and download the package.
Good luck,
George
February 8th, 2006 at 12:12 am
… or use Apachefriends.
February 12th, 2006 at 9:15 am
Hi George,
Thanks for the instruction that’s were very useful but in your insturction you don’t instruct that how to configure iis.
I want to learn php programming for develop Dynamic web pages, so I need your help. My computer configuration
is Windowns XP sp2 and I use IIS (Internet Information Services). My friend told me that go to http://www.php.net downloads it but
I don’t find which link. In the following link which link should I go. How to configure my iis
** PHP 5.1.2
Complete Source Code
1 PHP 5.1.2 (tar.bz2) [6,172Kb] – 12 Jan 2006
md5: 79cee17e9db85be878000a2a4198378e
2 PHP 5.1.2 (tar.gz) [7,875Kb] – 12 Jan 2006
md5: b5b6564e8c6a0d5bc1d2b4787480d792
Windows Binaries
1 PHP 5.1.2 zip package [8,926Kb] – 12 Jan 2006
md5: d2c3440e40c697e62a0b6f23514d03dc
2 Collection of PECL modules for PHP 5.1.2 [1,669Kb] – 12 Jan 2006
md5: 09571722fd44bec411a64eca8ca383ae
3 PHP 5.1.2 installer [2,585Kb] – 12 Jan 2006
(CGI only, packaged as Windows installer to install and configure PHP, and automatically configure IIS,
PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included)
md5: f4e47bda69ddc081fb44068cd9237b85
We have a PHP 5 / Zend Engine 2 page explaining the language level changes introduced in PHP 5.
The PHP 5 ChangeLog details all the other changes.
In the case of Mysql which link should i go.
Mysql 5.0.18
1. Windows Essentials (x86) 5.0.18 16.9M Download
2. Windows (x86) 5.0.18 34.9M Download
3. Without installer (unzip in C:\) 5.0.18 36.6M Download
Buy!!
February 12th, 2006 at 6:10 pm
Hi George,
Thanks a lot for your reply, also by e-mail. (and thanks Eric, for your reply as well)
Sorry it took a while for me to answer back. I have been quite busy, and it took me a while to test different configs and installs of php and MySQL.
Unfortunately uncommenting extension=php_mysql.dll didn’t solve the problem with phpmyadmin. Also I put the dll in every dir I could think of where it might be picked up, as well as configuring the extension dir in the PHP.ini file.
The strange thing is that I could get Mambo up and running fine (should be needing a MySQL connection as well), but CMSmadesimple gives me a connection failure for the database, just like phpmyadmin.
I tried the PHP 4 install, because it’s supposed to come with MySQL already configured in, as opposed to PHP 5, but it gave me the same connection error in phpmyadmin. I think the fault might be somewhere else, but I’ve checked quite some information sources and helpfiles, and haven’t found the solution yet.
I’ll keep checking the forums as well, and keep trying to see if I can find it. (it’ll probably end up being something very silly…;-)
If I find the answer, I’ll definitely let you know.
Gen
February 17th, 2006 at 12:53 pm
Have you folks tried out XAMPP from apachefriends?
It makes a W/LAMP installation a 5 minute affair and php, perl, py are ready to go in no time. There are a few security things you need to fix but that’s easy too
February 17th, 2006 at 5:05 pm
You don’t have to copy the PHP dlls to make this all work on windows, in fact, it will cause headaches when you upgrade php. Just follow the PHP documentation for your server and OS and be sure and add your PHP directory in the Windows path. You’ll be adding the MySQL directory in the path as well. The rest of the directory changes can be made in the configuration files and ini files.
February 21st, 2006 at 6:39 am
Thanks very much for the tutorial. I have book marked this for future use.
I do have one question regarding adding and verifying packages to PEAR. I am using the CLI and when I type c:\ \pear list, I get a list of the installed packages. However when I try to run :c:\pear package-validate on say DB it says that it cannot be found even though I can see it in the list.
any light you could shed would be much appreciated..
February 21st, 2006 at 11:23 pm
@ Steve
package-validate is used to validate downloaded packages (not installed ones). So in linux I could do the following:
——————————————————————————————————-
root@server0:/tmp/test# wget http://pear.php.net/get/DB-1.7.6.tgz
–01:12:03– http://pear.php.net/get/DB-1.7.6.tgz
=> `DB-1.7.6.tgz’
Resolving pear.php.net… 216.92.131.66
Connecting to pear.php.net|216.92.131.66|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 124,807 (122K) [application/octet-stream]
100%[=================================================================================>] 124,807 294.10K/s
01:12:08 (293.45 KB/s) – `DB-1.7.6.tgz’ saved [124807/124807]
root@server0:/tmp/test# ls
DB-1.7.6.tgz
root@server0:/tmp/test# pear package-validate DB-1.7.6.tgz
Validation: 0 error(s), 0 warning(s)
root@server0:/tmp/test#
———————————————————————————————–
As you can see, I validated the DB package. Good luck with your projects.
@ Anyone who loves Apachefriends
If your looking for a quick install, etc. then I hear that Apachefriends is the way to go. Personally though, I prefer to go through the installation. You learn more by fighting through problems then getting a quick fix.
On a side note, I know people that compile everything from source. That a bit too hardcore, but its what they like. I would definitly recommend people to fight through the installation of PHP, Apache, etc. rather than using Apachefriends. You’ll learn in the process, and have a somewhat better understanding how things work together.
@ Chanchal
Sorry I’ve never installed PHP with IIS. Happy Googl’ing…
@ corexian
I’m not sure how it would give you headaches upgrading, but whatever you like.
@ Rogel
I’ve never installed PHP with Windows 2000, but I imagine it should work all the same. Just check the download packes for the respective binaries. Download the most recent release that supports your OS.
March 2nd, 2006 at 5:42 pm
@ Gen,
I’m having the same problem as you – any fix yet?
Matt
March 4th, 2006 at 12:38 am
When I try to run testpear.php in my browser, I get this :
Parse error: syntax error, unexpected ‘:’ in C:\wamp\www\testpear.php on line 9
Also was wondering what I should put in the place of “unix” if I’m running windows. Would it be “win”?
Thanks, Sully
George, I really like your tutorial.
March 6th, 2006 at 3:20 pm
Thanks for your excellent and informative site.
March 7th, 2006 at 2:08 pm
I’m planning to install just PHP and MYSQL so that i can build an web database application but im kinda confuse which version of PHP to download. I dont which windows binaries to install. im using windows xp, can u give me some advice?
Thanks!
March 10th, 2006 at 9:15 am
@Sully
The example above is made for windows..
@Lee
We’ll follow the full tutorial above. It will tell you which binaries to install. I’ve moved to PHP5 now in Ubuntu, but PHP 4.x is still good though. Everything you’ll need for your project is above. Use PEAR.
March 11th, 2006 at 11:53 am
Okay, enabled mysql extension (extension=/ext/php_mysql.dll) in php.ini and all’s working perfectly, including phpMyAdmin.
@ George: What does PEAR do that can’t be done with either phpMyAdmin or a php script from a web page? Like, I can do all the usual stuff with the database now, so am I missing anything by not installing PEAR? What does PEAR do?
Matt
March 11th, 2006 at 2:44 pm
[...] A comment was posted on a tutorial I wrote How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP. The comment said: [...]
March 11th, 2006 at 2:47 pm
@ Matt
Thats a good question and hard to answer. I posted this: http://www.sematopia.com/?p=64
Good luck,
George
March 11th, 2006 at 4:50 pm
@ George:
Cheers George, very informative. Will investigate further :cD
All the best,
Matt
March 21st, 2006 at 7:58 pm
George –
Great site. I’m a newbie… struggling with ‘include_path’ with PHP. Is there a way to dynamically add the path for subdirectories? As the structure changes over time, it’s painful to have to go back and update hardcoded paths, and maintaining a ‘path’ file is tedious also.
Thanks for the great site!
R
March 23rd, 2006 at 9:32 am
Hi, Interesting notes here.
I’m running WinXP Pro, I have IIS installed on my local machine and do most of my development work under IIS using ASP server side scripting.
I’d like to get into PHP and MySQL, but with a single machine, need to keek IIS as a webserver for my ASP applications.
Your instructions do seem to be clear and concise but, I’m not whether PHP/MySQL and IIS/ASP are mutually exlusive. Can I install PHP/MySQL on my system in ADDITION to IIS/ASP? Or, is definitely a case of one or the other?
Regards
TS
March 27th, 2006 at 2:32 pm
When I download php 4.4.2 and extract på zip file, there is no such file as:
C:\php\php4ts.dll
and
C:\php\sapi\php4apache2.dll
What did I do wrong?
March 29th, 2006 at 3:51 pm
I love you!
I have been trying to set this up for 2 days solid. And finally I have cracked it with your walkthrough. Thank you.
I too had trouble as mentioned earlier with the config.inc.php file being missing. But a default version is to be found under the libraries folder in myadmin that can saved with the required name.
Cheers
April 4th, 2006 at 5:29 pm
Hi,
I’m New to PHP. You all seem to know what your talking about so hope this is an appropriate place for this query.
I’m using Win XP Pro and IIS 5 and have successfully installed MySQL 5.x and PHP 5.x, and they work. However, I installed PHP using the recommended windows installer package, which was fine. After installation, I also downloaded the corresponding .zip file as this contains a large number of classes/extensions not included in the windows installer.
My Question is… How do I make use of all these extras? Is it a case of just copying them, maintaining directory structure, to my PHP installation folder, c:\php, or is their some other installation step needed? In particular, I was looking to install PEAR classes, not included in the windows PHP installer, but are in the PHP .zip download – Instructions I’ve found on the web about installing PEAR on XP/IIS refer to a batch file go-pear.bat, which was not installed by original windows installer, but is in the .zip
Any advice would be helpful
Regards
TS
April 5th, 2006 at 8:44 am
Thanks for your wonderful clear and concise web site. My configuration: Apache2 on Windows 2000 sp 2, MySQL, PHP 5 and Pear. Everything works except PEAR:Mail. PEAR:DB works fine.
I have checked the install and the Mail, Net_SMTP packages are installed. I have checked the PHP.ini file. I have even checked my firewall to make sure that port 25 is open. I have checked the host, the username and password and everything is correct.
The following program will not execute, will not give any errors, and gets hung up at the require_once “Mail.php”. I have overwritten certain data fields for security reasons.
Please Help, I am stuck.
Thanks
Greg
“;
$to = “yyyyyy “;
$subject = “Hi!”;
$body = “Hi,\n\nThis is a test?”;
$host = “smtp.xxxx.com”;
$username = “———–”;
$password = “——–”;
$headers = array (‘From’ => $from,
‘To’ => $to,
‘Subject’ => $subject);
$smtp = Mail::factory(‘smtp’,
array (‘host’ => $host,
‘auth’ => true,
‘username’ => $username,
‘password’ => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo(“” . $mail->getMessage() . “”);
} else {
echo(“Message successfully sent!”);
}
?>
April 29th, 2006 at 12:54 am
i am using php 4.1 and mysql 3.23 and phpmyadmin 2.7 my pc is having windows xp and when i type in my url localhost/phpmyadmin/index.php it gives the following error
Apache.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
I want to create new database, give password to them etc through phpmyadmin
please help me out
my email address is [email protected]
Thanks
saumitra p
May 2nd, 2006 at 1:12 pm
Thanks so much for a simple and comprehensive tutorial! I find that so much of this PHP and MySQL stuff requires a high level of education just to start (looking at the apache and php websites is terrifyingly confusing for a non codey like me). Thanks for bringing it down to the level that a mere designer can understand.
~Arley
May 17th, 2006 at 12:55 am
PEAR not working….need help
tried everything…..(go-pear.bat and also i tried c:\php\>php pear\go-pear.php)…. pear installation works fine….
everything got installed….no warning….looks fine
but when i tried ur DB connect sample
it says -
Fatal error: Class db_common: Cannot inherit from undefined class pear in C:\php\PEAR\DB\common.php on line 48
what to do…….situation is frustrated
if possible….please mail me at [email protected]
June 10th, 2006 at 10:29 am
i would to upload to mySQL files to the web server, how? i am using Cpanel (Linux). i can easily upload my php and html files using “File Manager” and http://FTP.. but i was not able to upload existing mySQL files.. Please help dilemma
June 15th, 2006 at 7:55 am
Hi!
I have installed apache2.2, php5.1.4, MySQL – 3.23.58-nt, (phpMyAdmin – 2.8.1) on a Win2003 server. I’m using it as a local web server and everything is working fine except for PEAR. I have installed it and thought it worked (didn’t get anny errors). But when I started to set up the invetory and resource manager, hinventory (php), I got a notice that i didn’t have PEAR, neither anny of the required packages (DB, DB_Pager, Config….). Anny idea of what this may depend on? I’m stuck and have searched for half a week for a solution.
Best regards //Robban
June 15th, 2006 at 7:04 pm
Hi,
your info is most helpfull…
When I run go-pear.bat on winxpsp2 with php/apache running (is that safe?) I get…
***START
C:\PHP5>go-pear
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type ‘all’ to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : C:\PHP5
2. Binaries directory : C:\PHP5
3. PHP code directory ($php_dir) : C:\PHP5\pear
4. Documentation directory : C:\PHP5\pear\docs
5. Data directory : C:\PHP5\pear\data
6. Tests directory : C:\PHP5\pear\tests
7. Name of configuration file : C:\PHP5\pear.ini
8. Path to CLI php.exe : C:\PHP5\.
1-8, ‘all’ or Enter to continue:
Beginning install…
PHP Notice: unserialize(): Error at offset 88 of 332 bytes in phar://go-pear.ph
ar/PEAR/Config.php on line 971
PHP Fatal error: Call to undefined method PEAR_Error::set() in phar://go-pear.p
har/PEAR/Start.php on line 263
Press any key to continue . . .
***END
… it just ends like that no ‘its complete….’ or anything.
Thus its failed?
I try the testpear.php (from your source above) and get no error and no message… just a boring old blank screen (IE of course!) …
Any idea(s) on what I am doing wrong..?
thanks
Colin
June 17th, 2006 at 7:19 pm
why does the phpinfo file comes up after installing PHP 5.0 on Apache 2.0 .58 instead of te PHP menu list. I have been struggling with this for three weeks, I followed the installation instructions as closely as possible, however, the apache server fails to show the PHP menu list , instead I have the phpinfo file created in notepad displayed on the screen. What could I do to change this result.
System used: Windows Xp Service Pack 2
Apache 2.0.58
PHP 5.1.4
June 19th, 2006 at 11:11 am
I am not able to install go-pear.bat, can u explain how to Install ?
I am doing this:
in CMD
CD C:\php\pear
C:\php\pear go-pear.bat (press enter)
Nothing ???
July 17th, 2006 at 3:23 pm
Thanks, everything is up and working with php. Although i can’t get my perl scripts to run on apache but once again
cheers
July 28th, 2006 at 9:14 pm
I have Installed Apache 2.2.2 and PHP 5.1.4 in WindowsXP SP2.
I copied three files to apache root directory- php5ts.dll,php5apache2.dll,php.ini
To configure I added the following lines to httpd.conf at apache:
LoadModule php5_module php5apache2.dll
AddType application/x-httpd-php .php
But adding the line “LoadModule php5_module php5apache2.dll” makes Apache out of service(service do not start anymore).
Kindly help pls….anyone???
August 1st, 2006 at 12:30 pm
Download php5apache2_2.dll, put it in your php root
and hange the load module
LoadModule php5_module PHP/php5apache2_2.dll
Apache will start up now :)
August 3rd, 2006 at 9:15 pm
Sully says:
March 4th, 2006 at 12:38 am
When I try to run testpear.php in my browser, I get this :
Parse error: syntax error, unexpected ‘:’ in C:\wamp\www\testpear.php on line 9
Also was wondering what I should put in the place of “unix” if I’m running windows. Would it be “win”?
Thanks, Sully
George, I really like your tutorial.
=============
I also faced the same problem but I have solved it. What I did is to retype the syntax ” and ‘ … tq for this tutorial ;)
August 4th, 2006 at 7:01 pm
Thanks for the tutorial, it helped a lot. But I also found it’s not complete in the section on intalling Pear DB. Below is what I did when installing Php5.1.4 + Apache 2.0.59 + mySQL5.0.
1. Install Apache 2.0.59 (cause PHP5.1.* not compatible with latest Apache 2.2.3)
2. INstall PHP5.1.4
configure PHP
– add c:\php to path
– copy php.ini-recommended to php.ini
3. configure apache
# For PHP 5 do something like this:
LoadModule php5_module “c:/php/php5apache2.dll”
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir “C:/php”
4. install pear: (refer to http://pear.php.net)
– run gopear.bat under c:\php
– run pearenv.reg (to register the path)
– download the DB***.tgz from http://pear.php.net
– run shell command: pear install .tgz
– change the line as below in php.ini
include_path = “.;c:\php\includes;c:\php\PEAR”
5. enable mysql extension in php.ini by adding 2 lines below, (or uncomment them if already existing)
extension_dir = “./ext”
extension=php_mysql.dll
August 14th, 2006 at 1:15 pm
Hi ppl, It is really a site where active ppl are involving.
I am still with the problem. I tried to install phpMyadmin, I spent 2 solid days, but no solution. I tried all the sugestions given here and on other sites, the same message is annoying me:Cannot load mysql extension. Please check your PHP configuration. – Documentation
can any body say something pls
thanks
My email is [email protected]
August 15th, 2006 at 9:05 pm
I’ve been having the same problem as Yibeltal. I’ve read everything I can find on the applicable configuration issues, but I cannot get the MySQL or MySQLi extensions to load. The DBase extension loads with no problem. I thought it was a problem with the LibMySQL.dll, but…
Please send any tips to [email protected]. Thanks!
August 24th, 2006 at 10:44 pm
Hello,
I have only one machine.But I have to develop my PHP,MYSQL application immediately. Can you help me how can I do that. Its Urgent.I do not have server. I have internet connection and I also have a web database wich I cannot be able to connect though PHPMyAdmin. Can you help me?
Thanks
Amrita
August 31st, 2006 at 6:00 pm
The MySQL Problem will be resolved when you copy libmysql.dll to \system32
wolfie
August 31st, 2006 at 6:03 pm
PEAR package install under Windows XP
How is this done?
The instruccions found so far are specific for Linux.
Please help.
wolfie
September 1st, 2006 at 11:03 pm
Hello,
I have another problem. I have to use PDF function in my PHP.But I cannot able to configure PDFlib in my winXP . I could not understand how I compile PDFlib in PHP. Can you help me?
September 11th, 2006 at 6:33 pm
Good day,
I’m having this error when I tried to run the service of Apache! “The Apache2.2 service terminated with service-specific error 1 (0×1)”. I’m using Windows XP SP2 as OS.
September 20th, 2006 at 1:23 pm
Very good tutorial. I recommend using the 32bit install file for the apache server. However i have some changes to include.
Check out this site for your errors when installing the PHP extension as 4.4 and 5.1 are not applicalbly working with 2.2 apache as noted in this forum.
The fixes are listed there and when done, the test of config does work. Thanks.
http://forums.devside.net/viewtopic.php?t=1013
http://minitutorials.com/apache/php_52_2.shtml
October 30th, 2006 at 9:31 am
My pear(HTML_Template_IT) seems not working . At c:\php>pear.bat list It gives
PEAR 1.4.6 stable . Does that mean that pear is installed successfully ?
when I run my file over mozilla browser, it give require_once(HTML/Template/IT.php) fail to open stream, can anyone answer this error ?
Other error are fail to open HTML/Template/IT.php (include_path=’.;c:\php\PEAR’) . anyone have idea about this error ?
require_once “HTML/Template/IT.php” . what does this file does and where IT.php is localted ?
I would be grateful if any php guru can solve my problem.
Yenten
November 14th, 2006 at 1:24 am
If you think windows xp is easy for setting up Apache. Try Mac OS X 10.4 – All you have to do is click one button and it is done – in other words, enable it and done
Windows is a long ways away from that kind of built in ability.
November 14th, 2006 at 12:59 pm
Hello George,
Finally I found a website that show, in details, how do install pear in windows enviroments.
But, tell me, it´s normal a php5 directory be created automatically?? When I run go-pear.bat I note that, in fact, the directory pear is created and populated into the php directory. But only outside, I mean, inside the php5 directory (my main installation php directory is C:\php), is all the classes that I can use.
I don´t know why I can not use directely the packages. If I use include(“C:\php5\pear\nameofpackage.php”), that´s ok…
Can you sugest any modification, or procedure to follow besides that ones describe above??
Congratulations for you tutorial. Although it´s completely clear, I was unable to install, yet, correctly the pear.
Thank you in advance.
Best regards.
November 29th, 2006 at 10:29 pm
Try downloading wamp = windows + apache + mysql + php
from http://www.wampserver.com/
November 30th, 2006 at 12:25 am
I have successfully install PHP 5.2.0 in C:\PHP. Required setting done in PHP.ini.
I want to install PEAR & PECL. I have tried lot, but unsuccess. I am using WinXP, IIS 5.
Is anybody guide me step by step to do this task? I am heartly thankful to them.
Snowby Dave
December 5th, 2006 at 4:54 am
George, thank you so much for posting this tutorial. I was looking for a way to add PEAR into my PHP installation and your tutorial is placed is the first place by Google.
The PEAR installation works. Tested fine.
January 8th, 2007 at 1:50 pm
Just wanted to say thank you to Eric and George – I have been getting this error “Cannot load mysql extension’ ” after trying to run phpmyadmin and it was driving me absolutley nuts!!
January 28th, 2007 at 5:12 pm
Hi,
I have been trying to install pear and getting an error when I run the batch file.
Cannot use a scalar value as an array in phar://go-pear.phar/pear/command.php
Any suggestions?
February 12th, 2007 at 7:38 pm
This is fine if your computer is your server but the majority of web developers rent their space on a remote server. Try as I might I can’t get plain language instructions for installing PEAR on a remote server. The one article I found that addressed this issue had incorrect code in a couple of places.
Can you publish similar instructions for the rest of us?
February 14th, 2007 at 9:57 am
Hi,
I need to install a PECL package for some work I’m doing. I have spent like a week trying to install PEAR and I just can’t do it. I’m really new with this stuff, and I have researched a lot but still, it isn’t working. I installed WAMP with PHP 5. I ran the go-pear.bat and it seems to work, but somehow it isn’t because everytime I try to use the pear command (pear install, and all that stuff) it says that pear is not recognized as an internal or external command. I defined the envirommental variables and ran the PEAR_ENV.reg and still nothing. I guess that I just don’t get how to do this. I also tried to install PHP and Apache without WAMP, but still it doesn’t work. I can’t use the pear command in the shell. Oh, I’m working on Windows, by the way. So, I’m really stuck here, and I would appreciate a lot if anyone could help me and tell me how to do it.
Thanks,
Alex
February 22nd, 2007 at 6:59 pm
Having extreme issues installing/proving PEAR on locally installed PHP / Apache server on fully patched Win XP SP2. Needed to get PEAR HTML_Template_IT module to work through various exercises in a textbook. Results today were similar to Ken Plumb on Jan 28th. Downloaded 19MB 5.2.0 windows .msi package – did not work properly after install – God knows why. Went back to windows binaries for php (10MB) and pecl (3MB) (5.2.0). Now have control and have successfully managed to prove php is working OK, Apache server is OK, MYSQl is OK, but am unable to conclusively prove PEAR is OK via a php script loaded through localhost. Have successfully added HTML_Template_IT and DB modules from online via the command line, so pear is installed to that point. Your tutorial has been great to help me get to this point.
Is there some sort of PEAR::List; or PEAR::Info; command I can stick into a php script (just like I can test and prove PHP and the webserver with phpinfo(); in a script) to prove PEAR? I tried the script George gave further up the page which tried to talk to mysql through a PEAR::DB command, but I cannot get this to work. I would like a command that would say listed the status of PEAR without initially having to talk to a third layer of potential coding trouble such as through DB.
Is there somewhere where practical PEAR commands that might be used in a php script are listed with examples? Particularly with a Windows influence, rather than Linux. I have found the PEAR docs very technical without practical examples. Am I missing something here?
Ultimately, if I can get this PEAR template thing to work as the textbook suggests (written with strong UNIX flavour), I would like to try it out on a live publically hosted server, but I suspect my host does not have PEAR installed. Is there someway I can under my top-level htdocs directory on the public site, install/access the PEAR HTML_Template_IT in my subdomain without having to get the host service provider specially install PEAR. Maybe this is not technically possible, if so I wasting my time with PEAR.
February 23rd, 2007 at 2:59 pm
Will this run properly on WinXP/IIS/Oracle? If so doesn’t anyone know of any good guides out there? So far I get “No input file specified.” when I try to navigate to the site in my browser.
I have installed PHP and think I have the PEAR stuff right. Running WinXP and IIS and have an Oracle schema ready to go. Just can’t get started. Anyone have any ideas?
Thanks in advance.
February 27th, 2007 at 2:28 pm
For anyone who wants to use PEAR on a shared host, remember that PEAR is just PHP scripts.
More here: Using PEAR on a shared host
February 27th, 2007 at 2:34 pm
The example above for PEAR uses the DB package, this has been merged into MDB2.
It can probably still be downloaded, but you’ll want to start using MDB2.
February 28th, 2007 at 8:48 am
@Gen
Do the following
1)Control Panel > System > Advanced > Environment Variables
2)Under the system variables, Look for “Path”
3)Click edit and put your php folder path at the end of ;
e.g. ;C:\PHP
March 21st, 2007 at 6:32 am
Hey, this is a great site with loads of involvement and info, it’s fantastic. But this PhpMyAdmin was giving me headaches… I used to have Mac OSX with MAMP and everything was so simple, now had to go back to my old PC (damn them burglars) and trying to get a working apache/PHP/MySQL server with PhpMyAdmin was a nightmare. Eventually thanks to this site and a pinch of luck it’s all working fine, at least for now!
Cheers!
March 31st, 2007 at 8:02 am
Well I think I must be stupid I have wamp up and running got the pear batch file running but got lost on what I am suppose to be altering.
Pear is in c:\wamp\php\pear
so is that the line I put into all the 1-8 prompts for pear to show it where to go and what is this $prefix for?
I have read most post but I am still comfused.
I use windows vista ultimate on a quad core machine.
Hope you can help me
Thank you
April 5th, 2007 at 2:20 am
excellent tutorial one of the best to learn how to install PHP as a beginer
April 17th, 2007 at 1:49 pm
Hi I’ve installed php, mysql, and phpmyadmin.
The problem is that when I type in my browser localhost/phpmyadmin it asks me to login, I give username and password as they are in file config.inc.php but it gets me to the same login screen again..I have enabled cookies as it requires but nothing…
any help would be really appreceated please
April 30th, 2007 at 2:31 am
…. or you can just download wamp all-in-one installer from http://www.wampserver.com, have it installed in seconds with a system tray menu to turn modules on and off etc.!
May 1st, 2007 at 7:14 am
I have problem with phpmyadmin during configuration it shows this:
Could not load either mysql or mysqli extension, you might not be able to use phpMyAdmin! Check your PHP configuration.
what I must configure in php can someone tell me please..
May 3rd, 2007 at 12:44 am
@Ads….open your php.ini file in textpad or something and check the ‘Windows Extensions’ section…and make sure the lines
extension=php_mysql.dll
extension=php_mysqli.dll
do not have a semi-colon before them (this means they have been commented out and are not loaded)…
MAKE SURE that you then restart your web server.
Then if you create a phpinfo page
You should have a section called mysql and mysqli now…good luck!
May 3rd, 2007 at 1:48 pm
thankyou Carlton the ***ing problem was solved :D
Regards
May 4th, 2007 at 2:17 pm
Hi everyone :)
Cool Forum. I’m trying to install Apache, MySQL, PHP and phpmyadmin so that I can install MediaWiki on my windows xp machine. I used this tutorial ( http://www.wikihow.com/Install-phpMyAdmin-on-Your-Windows-PC )and installed Apache, MySQL & PHP successfully. The test PHP showed up under… http://localhost/phpinfo.php
When I got to the phpmyadmin install I noticed that under c:\server\ there was not a folder for apache2 but that the htdocs folder was there. So I unzipped phpmyadmin to the phpmyadmin folder (that I created) and tried to go to “http://localhost/phpmyadmin/index.php” but it did not appear (in firefox or explorer).
So… I followed on and changed the “config.inc.php” according the tutorials specs but http://localhost/phpmyadmin/index.php just was a white page. No errors or page can not be displayed. Anyone out there have any advice?
Thanks!
May 5th, 2007 at 10:18 pm
Hi there. Great info here. I have had my server running for quite some time, but when I went to install squirrel mail, I found that I needed to have pear. I followed the instructions above to install pear, but cannot find a DB.PHP file anywhere. Don’t know if perhaps I’ve missed something, but pear config seemed to go fine. Any thoughts?
May 10th, 2007 at 11:47 pm
Installation problem. I saved my php program in htdocs. After I run the program, the complete code is displayed , including php tags.
for example , this is my code:
And output is also the same , the complete code above.
Cud any one help me out.
May 14th, 2007 at 3:55 am
HI
thank u for the useful info, but i got that error when i’m using phpMyAdmin (i just write a simple SQL statement)
import.php: Missing parameter: import_type
import.php: Missing parameter: format
any help
May 24th, 2007 at 10:44 am
Hey there. First of i wanna say thank you for the fine torturial like everybody else.
Second of, It seems like i got a problem.
I did everything as instructed everything was working fine. So i got to the testing, and i tested the phplocal host and the server appeard and said: Install php etc. now?.
After that i tried to run the Apache in the localhost, it appeared just like it should and said that Apache was installed correctly on this PC, now i did all of these things without restarting my pc, so i did my restart after and now i can’t get anything to work the sites just display as: ”Site cannot be found” And aslo my Apache icon which is shown in the buttom of the screen appears now in red, (Before it was green and working) now when i try to open it and start it, it replies: -”The requested operation has failed!”.
Anyway Thanks in advanced and i really hope someone can help me with this. Greetings.
June 12th, 2007 at 7:22 pm
I can install everything here except PEAR DB on windows.
If any one would like to install all of this, the apress line of books is a great place to get information.
http://www.amazon.com/Beginning-PHP-Apache-MySQL-Development/dp/0764557440/ref=sr_1_22/002-5160288-2462462?ie=UTF8&s=books&qid=1181701012&sr=1-22
Now I present this challenge, With everything running just fine, how I can install PEAR DB, or the DB package? I am using Windows, PHP5, MySQL 4.1, Apache 2.0, and phpMyAdmin.
I have code that is two years old and refers to PEAR DB, and now the PEAR installs only come with MDB2.
Thank you very much for any help, I deeply appreciate it.
June 12th, 2007 at 7:24 pm
@ Anders
Unistall Apache, and re-install it. Then redo the changes to the httpd.conf file.
Adrian
June 20th, 2007 at 10:07 pm
I have succes install PHP5, apache2 and MySQL5. I can run php info. But, when php script, in the IE browser not displaying the php script result. The program like this:
I try to follow the instruction for several times, but this basic problem still appear. I use Windows XP.
Thanks alot for your attention.
June 22nd, 2007 at 5:23 am
Hi,
Thanks for the wonderful post. Its really helpful.
Cheers!
June 23rd, 2007 at 10:37 am
Ok well i followed so far the tutorial.
I use
OS= Windows Vista Ultimate
DB= MySQL 5.0 / MSSQL 2000
PHP= 4.4.7
Apache= 2.0.59
My problem is the following:
PHP and apache work successfull.
Just the connect to the Database doesnt work.
once i did all what stands in this Tutorial.
First time i got.
#1251 – Client does not support authentication protocol requested by server; consider upgrading MySQL client
After i setted “Use old passwords” and changed pw and also restartet MySQL
#1045 – Access denied for user ‘root’@'localhost’ (using password: YES)
I tested already anything but no chance that i get a connection to mysql.
I also even tried to deactivate my Firewall but still doens’t work.
The Informations are like i entered them in MySQL but a connection gets always refused.
Thanks to the ones that can help me.
Remolus
July 9th, 2007 at 8:26 am
Hi,
Your tutorial for installing PEAR was just awesome! Saved me a lot of headache =)
Although I had some initial problems with the elusive DB.php file, I could solve the problem after reading some of your comments.
Thanks.
July 29th, 2007 at 3:23 pm
I’ve used both WAMP from e-novative in Germany, a free download, and Uniform Server (http://www.uniformserver.com/), also a free download, on Windows XP Home Edition. My most recent installation of WAMP did not go so well, so I switched to Uniform Server. One of the advantages of Uniform Server is that it’s a compact and very fast installation so it’s very suitable for installing on a USB thumb drive in case you want to impress your friends, business mates or party goers. The most recent version (3.5) comes with PHP 5.2.3, MySQL 5.0.41-community-nt (server) and Apache 2.0.59. There are instructions on how to downgrade to PHP 4. Once you get Uniform Server up and running, you can also run a semi-automated installation of PEAR. Uniform Server also comes with several other useful, integrated tools such phpMyAdmin and phpMyBackupPro. A documentation site for Uniform Server is at http://center.uniformserver.com. I have no connection with the application or the company behind it, just wish to spread the word.
July 29th, 2007 at 8:05 pm
Thanks, man.
You’d think by the third edition of “SAMS TYS PHP, MySQL and Apache All in One” their instructions would actually work. You had my PHP integrated into my Apache in 2 minutes!
July 30th, 2007 at 3:49 am
Finally, instructions that don’t start “Log in to phpMyAdmin”! After days of getting nowhere I was up & running within minutes of finding this page – thank you!
August 16th, 2007 at 4:52 am
Man that was great you awesome, short and correct, great tutorial, it was so easy to install pear package, thanks man
October 10th, 2007 at 3:08 pm
Hello.
I followed this tutorial to set up a local development environment in XP.
I used apache 2.2.6, php 5.2.5, and mysql 5.0.
When setting this up you need to copy the module named php5apache2_2.dll to the apache directory for this to work.
Also change the line above to this:
LoadModule php5_module php5apache2_2.dll
AddType application/x-httpd-php .php
December 31st, 2007 at 7:11 am
Hello,
How to install pear command in windows. pear command in unavailable in command prompt.
Thanks
John
Seo Material
January 3rd, 2008 at 3:42 pm
This is so great – very helpful! It’s thanks to people like you, George, that projects like this thrive, and noobies like me can make progress…
Thanks a million!!
January 7th, 2008 at 1:51 pm
You know if you go to php.net it will tell you haw to install php into apache for those who are confused
February 12th, 2008 at 6:26 am
Hello George,
I enjoyed your series on Apache PHP PEAR MySQL and PHPMyAdmin installation tutorials sessions, however, I would like you to include the Installation of PHP development tool called Zend Core together with other software tool for PHP AJAX development. I am very much interested in these topics. I will be glad if you will consider it in your next session.
Thanks for your valuable cobtributions.
Best of luck!
Fidelis Obodoeze C.
Abuja, Nigeria
February 18th, 2008 at 2:10 pm
Dear Frnds ,i have installed the micromedia with every thing but the reuired files called “HTML/Template/IT.php” and same other files is not accessable .pls i need ur deatil help about those things .
Sincerly
March 19th, 2008 at 12:18 pm
Hi there.
I follow all the instructions, but I can’t run the phpMyAdmin and it gives me this error:
Cannot load mysql extension. Please check your PHP configuration
I am using the following versions:
phpMyAdmin-2.11.5-all-languages.zip
apache 2.2.5
and the latest phpMyAdmin.
nb: I went with the recommended latest and stable ones.
It can’t have the phpMyAdmin woking and keep having it showing the extensions not found error.
Please help.
June 24th, 2008 at 5:31 pm
Hi gals
Just wondere if you could hlep me! I am trying to download Apache vesion (Win32 Source: httpd-2.2.9-win32-src.zip [PGP] [MD5]; Win32 Binary without crypto (no mod_ssl) (MSI Installer): apache_2.2.9-win32-x86-no_ssl-r2.msi [PGP] [MD5] ;Win32 Binary including OpenSSL 0.9.8h (MSI Installer): apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi [PGP] [MD5] ). Could you pls tell me which one of the above three version really needed. Also Is it possible to download on XP OS or Is it neccessary to have Server OS to download it.
Thanks.
June 25th, 2008 at 10:52 am
Just wondered if you could hlep me! I am trying to download Apache vesion onto Vista 2007. I found the follwoing sources but not sure which one is the right zip file I need.
1.Win32 Source: httpd-2.2.9-win32-src.zip [PGP] [MD5];
2. Win32 Binary without crypto (no mod_ssl) (MSI Installer): apache_2.2.9-win32-x86-no_ssl-r2.msi [PGP] [MD5] ;
3. Win32 Binary including OpenSSL 0.9.8h (MSI Installer): apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi [PGP] [MD5] ).
Could you pls tell me which one of the above three version really needed. Also Is it possible to download on Vista Home vesion OS or Is it neccessary to have Server OS or Is my Vista Home Version already built with server OS.
Thanks.
June 25th, 2008 at 10:58 am
You definitely don’t need sources. Just uses Apache Friends XMPP to get everything installed. Google Apache Friends XMPP.
June 25th, 2008 at 6:08 pm
Hi George
Thanks for the reply. I clicked the link “http://www.apachefriends.org/en/xampp-windows.html” and found the following three dowload options for windows:
XAMPP
XAMPP Add-Ons
XAMPP Lite
Could you please tell me which one of the above is right to download. or Should I download all the 3 above. Another thing I want to ask you that I got Vista 2007 basic edition ( not the server OS) and would it be sufficient to set up XAMPP or etc..
Thanks
July 4th, 2008 at 8:09 pm
George,
Thank you so much, I found it very useful. I followed the instructions in the link below verbatim to get things working and it really went extremely smoothly.
How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin
The only thing missing was the PEAR installation for which I followed the instructions here:
PEAR :: Manual :: Installation
After that I proceeded to play with the MDB2 package.
Once again this information was most helpful. I am putting up the other pointers for what worked really smoothly for me.
Thanks,
Basab
August 22nd, 2008 at 2:58 am
Really interesting and helpful site
September 15th, 2008 at 6:34 pm
I need SSL installation
September 19th, 2008 at 3:19 am
I have some problem.
i want to use php 5.2.3, apache2_2, mysql5, and java 1.6.
how to connect php 5.2.3 with java 1.6. using apache?
thanks
October 10th, 2008 at 3:06 pm
Hello my friend,
I’m a beginer web programmer. I’ve written a web page with PHP codes and once i FTP my website on an environment that has PHP, everything runs well. But as i told you i don’t have a website and I want to test my site on my Win XP pro at home. I’ve doenload and installed PHP 5 on C:\PHP
Now i would like to know can i run the php files without installing apache or web servers?
Please help me if this is possible.
Thank you so much in advance
November 22nd, 2008 at 6:43 am
Very easy to follow.
December 16th, 2008 at 4:26 am
Thank you for the comment to xampp ,very easy to install and all components are in (apache,php,mysql)…
December 20th, 2008 at 10:42 am
HI,
Am Harsha. As per your Instructions I have Installed Apache 2.2 and PHP 5.2.8. But after doing those all things in PHP.ini. I ran that statement, http://localhost/index.php, but its showing the Error 404 the page cannot be found.
Please tell the solution to me.
Thanks
Harsha C.S
January 27th, 2009 at 4:37 am
Hello Papa
My php5 is installed and working fine on iis but i have this authentication issue when it comes to smtp. for this i need PEAR installed and i have followed your step. unfortunately, i have this error showing up at the point of running the bat file
C:\PHP>go-pear.bat
PHP Warning: Cannot open ‘C:\PHP\extras\browscap.ini’ for reading in Unknown on
line 0
Could not open input file: PEAR\go-pear.phar
Press any key to continue . . .
C:\PHP>
What can i do?
January 29th, 2009 at 12:40 pm
im new to this so someone please help me. This is what i have done so far-
1) i installed apache 2.2.11-win32
2) installed MySQL Maestro
3) installed PHP5.2.8 msi (i opted for the installer as i couldn’t do it manually, there were so many articles and guides i read and followed without any success that it confused me even more).
Thing is that after installing php i tried the same old testing process by creating a phpinfo.php file and saved it in the htdocs folder. But when i go to localhost\phpinfo.php a window pops up asking me if i want to open or save the file! Infact none of the php files that i created opens :(
please any help would be really appreciated. Im about to give up on learning all this and stick to good ol html :(
May 1st, 2009 at 1:17 am
Hey guys,
You seem to know what you’re doing with all this fancy stuff. I’m doing work experience with a guy from Drawstring (http://drawstring.com.au/), and he’s teaching me how to use PHP. I’m trying to do the whole Apache-PHP combo so that after the week, I can still use PHP stuff without having to use his server.
Only problem is, at the step where you check “index.php” in your browser, it’s not working for me. I’ve followed all the instructions, and the version information for my computer and software is as follows:
Firefox v3.0.10
Apache v2.2.11
PHP 5
XP running SP3
Please help me, as I love PHP and would enjoy continuing my learning after this week, and cannot do so unless I get it working. Thanks.
archmage84
“Long live Archmages!”
May 1st, 2009 at 12:39 pm
@archmage84
Just use Apache Friends (XAMPP) – it’s an installer that automatically installs apache, php, mysql all in once shot
May 7th, 2009 at 6:39 pm
I think you better use XAMPP if you are in learning prorcess.. Either you have to search over the net.
September 8th, 2009 at 2:48 am
Hi Sir,
I want to configure Mambo by using Apache, PHP, Mysql and all of services are running very well. So how can you configure?
October 3rd, 2009 at 10:49 am
HI,
As per your Instructions I have Installed Apache 2.2 and PHP 5.2.8. But after doing those all things in PHP.ini. I ran that statement, http://localhost/index.php, but its showing the Error 404 the page cannot be found.
Please tell the solution to me.
Thanks
Shahid
October 3rd, 2009 at 12:35 pm
Hi
I have figured out … save the index.php file in notepad like that “index.php” otherwise it will take it as txt file.
but thanks it is a v.good site
Shahid
October 22nd, 2009 at 6:07 am
Please tell me what I need to change/modify in php.ini for use pear mail to send/receive email. I use apache, php, mysql.
December 13th, 2009 at 3:28 am
Please help me, I want to install and configure Apache, PHP, My SQL.
any one can help me.
May 28th, 2010 at 7:55 am
I would like to build my own website, so I installed XAMPP, but the result was something happened with Apache (maybe conflict or crash), I neglected the problem & continued with Mambo’s software till finished. When I opened Internet Explorer and typed “localhost/mambo” on address bar, the result was Mambo did not appread (blank).
It means I should do something for Apache but I don’t know how to do and where the start point is to solve the problem. I already checked on program file but I didn’t find any folder which has a relation with Apache or using name as Apache.
I really need your help to solve my problem, please tell me very clear & briefly (step by step). Thank you.
March 14th, 2011 at 4:36 am
Emon, how about xampp. goodluck
October 10th, 2011 at 4:05 pm
the file php5ts.dll doesn’t appear in my apache folder….i did see something that was just php5.dll…should i copy that? or did something not get installed correctly?
November 29th, 2011 at 1:54 pm
mfoeqtfnbupqjb, ‘diazepam and meth’, JSibdSN.
November 30th, 2011 at 2:35 am
xfbpmtfnbupqjb, Mobile porn lesbians, BBFgFTu.
November 30th, 2011 at 8:56 pm
mwmbatfnbupqjb, best free php hosting, MSXEwwJ.
December 2nd, 2011 at 7:38 pm
lmutytfnbupqjb, hwbrodzipz
December 3rd, 2011 at 7:38 pm
xmhmgtfnbupqjb, What are ppi claims?, cDFbXxW.
December 4th, 2011 at 10:03 am
nhicctfnbupqjb, Tadalafil sublingual, SdIeAQi.
December 6th, 2011 at 1:39 pm
dchnvtfnbupqjb, וילונות חדרי ילדים, GqVIlDu.
December 6th, 2011 at 4:31 pm
kzmdvtfnbupqjb, ngutwzvhpe
December 7th, 2011 at 2:32 am
Attractive element of content. I just stumbled upon your website and in accession capital to claim that I acquire actually loved account your weblog posts. Any way I’ll be subscribing to your augment or even I success you get right of entry to consistently rapidly.
December 7th, 2011 at 2:33 am
yhskhtfnbupqjb, Goverment grants available for aeds, GsPeqLC.
December 7th, 2011 at 7:05 pm
yqkhjtfnbupqjb, thcvarhbnj
December 24th, 2011 at 6:39 am
[download movies][download games][download music][forum warez][game full download][download scripts][watch online movies][movis][games][software][scripts]…
[...]How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP | George Papayiannis[...]…
January 1st, 2012 at 4:56 pm
Wonderful website. A lot of helpful information here. I am sending it to a few pals ans also sharing in delicious. And certainly, thanks on your sweat!
January 2nd, 2012 at 12:33 pm
What i do not realize is in fact how you are not really a lot more neatly-liked than you may be right now. You are very intelligent. You already know thus significantly on the subject of this subject, made me in my opinion imagine it from numerous various angles. Its like women and men aren’t interested unless it is one thing to do with Girl gaga! Your individual stuffs excellent. All the time handle it up!
January 5th, 2012 at 3:02 am
cmrbstfnbupqjb, Juegos de Motos, tjGIgLm.
January 5th, 2012 at 3:16 am
yayeqtfnbupqjb, Juegos de Motos, jERZUPf.
January 5th, 2012 at 5:36 am
Just want to say your article is as astounding. The clarity on your post is simply nice and i could suppose you’re an expert in this subject. Fine along with your permission let me to clutch your feed to stay updated with approaching post. Thanks 1,000,000 and please keep up the rewarding work.
January 6th, 2012 at 1:42 pm
starting a business…
[...]How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP | George Papayiannis[...]…
January 7th, 2012 at 3:35 pm
I am no longer certain where you’re getting your information, but good topic. I must spend a while finding out more or figuring out more. Thank you for magnificent information I was searching for this info for my mission.
January 10th, 2012 at 1:22 pm
uuamatfnbupqjb, Tide dtergent coupons, IUBzvto.
January 10th, 2012 at 10:44 pm
oisghtfnbupqjb, Buy kamagra jelly online, EFjwsXs.
January 14th, 2012 at 11:06 am
seltotfnbupqjb, How much diazepam can i take, yPflFif.
January 14th, 2012 at 2:10 pm
download premium wordpress themes…
[...]How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP | George Papayiannis[...]…
January 15th, 2012 at 12:02 am
jwwudtfnbupqjb, Valium, pItcQlc.
January 15th, 2012 at 4:32 am
xrttqtfnbupqjb, Fioricet urine test, SDAuZUy.
January 15th, 2012 at 11:42 am
Remarkable issues here. I’m very satisfied to look your post. Thank you a lot and I’m having a look forward to touch you. Will you please drop me a e-mail?
January 16th, 2012 at 11:44 am
Wow, awesome weblog structure! How lengthy have you ever been running a blog for? you make blogging glance easy. The whole look of your web site is excellent, as well as the content material!
January 19th, 2012 at 4:16 am
Hello there, You have done a great job. I’ll definitely digg it and for my part suggest to my friends. I’m confident they will be benefited from this website.
January 19th, 2012 at 9:45 pm
The Picture Blog…
[...]How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP | George Papayiannis[...]…
January 19th, 2012 at 11:08 pm
cms dle…
[...]How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP | George Papayiannis[...]…
January 21st, 2012 at 6:19 pm
100 ways to succes online…
[...]How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP | George Papayiannis[...]…
January 22nd, 2012 at 9:52 am
joomla templates…
[...]How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP | George Papayiannis[...]…