Discussion:
[PHP-INSTALL] RE: first request
michael glancy
2008-10-30 11:21:39 UTC
Permalink
hi everyone

this is my first email. I am trying to install magento (open source website)

I have to instal php extensions:

pd0_mysql
mcrypt
curl
gd


i have searched the php.ini file and only found a reference to gd

I have not got a \ext folder in my php folder in the program files

where do i get these extension and how do I install them


thanks and sorry of this is the wrong list


Mick
_________________________________________________________________
Catch up on all the latest celebrity gossip
http://clk.atdmt.com/GBL/go/115454061/direct/01/
Daniel P. Brown
2008-10-30 16:04:56 UTC
Permalink
On Thu, Oct 30, 2008 at 6:21 AM, michael glancy
<***@hotmail.co.uk> wrote:
[snip!]
Post by michael glancy
I have not got a \ext folder in my php folder in the program files
Judging by your use of a backslash, I'll venture to guess that
you're using Windows, correct?

If so, and if you're just getting started with PHP, one of the
unofficial - but very easy and automated - ways to install PHP with
everything else is to use XAMPP[1]. It's free and open source, as are
all of the software packages it installs.

1: http://www.apachefriends.org/en/xampp.html
--
</Daniel P. Brown>
http://www.parasane.net/
***@parasane.net || ***@php.net
Ask me about our current hosting/dedicated server deals!
Daniel Brown
2008-10-31 13:56:49 UTC
Permalink
On Fri, Oct 31, 2008 at 4:33 AM, michael glancy
HI Daniel
I installed Xampp last night but it still didnt have those extensions
installed.
was there something else I should have done ?
For the benefit of others now and in the future (through the
archives and web searches), please keep replies on the list.
(Forwarded to the Windows PHP list as well.)

Here's a quick run-down for all of the extensions you mentioned
needing for Magento. Note that, with XAMPP on Windows, php.ini is
probably in one of the following locations (where X:\ is the drive
letter on which XAMPP or XAMPPLite is installed):
X:\xampp\apache\bin\php.ini
X:\xampp\php\php.ini
X:\xampplite\php\php.ini

1.) To get pdo_mysql working on Windows with XAMPP, edit your
php.ini file and make sure the following lines exist and are
uncommented (don't have a semicolon [;] in front of them):
extension=php_pdo.dll
extension=php_pdo_mysql.dll

2.) For mcrypt to work, you have to do the same thing as above -
edit the php.ini file - making sure this time that these lines exist
and are uncommented:
extension = php_mcrypt.dll
extension=php_mcrypt_filter.dll extension =
php_mcrypt_filter.dll
extension=php_mhash.dll extension = php_mhash.dll

3.) For cURL, it's much of the same. Edit your php.ini file and
make sure this line is there, and that it's not commented:
extension=php_curl.dll

4.) For GD, once again, edit the php.ini file and make sure this
line is there, and that it's not commented:
extension=php_gd2.dll

5.) Restart Apache and try your Magento installation again.


TIPS:

a.) Google is your friend. Always search for your answers
there before sending a question to the list. Often searching for what
you want to do, along with the keyword `howto` or separate words `how
to install` will give you the answer you need with the first result.

b.) For the official page on installing Windows extensions for
PHP, go to:
http://www.php.net/manual/en/install.windows.extensions.php

c.) To find out where your extension directory is, create a
file in the web root of XAMPP (it should be the `htdocs` (without
quotes) subdirectory within the XAMPP installation directory, by
default). Name it phpinfo.php and put only the following code into
it:
<?php phpinfo(); ?>
.... then access that page by going to
http://servername/phpinfo.php and finding the field named
"extension_dir" in the `Configuration->PHP Core` section.

d.) When you know your extension directory, check that to make
sure the extensions mentioned above in the installation instructions
(the .dll files) actually exist in the extension directory.

e.) Any time you make changes to php.ini or httpd.conf
(Apache's configuration file), you must ALWAYS restart Apache to have
these changes take effect.
--
</Daniel P. Brown>
http://www.parasane.net/
***@parasane.net || ***@php.net
Ask me about our current hosting/dedicated server deals!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Continue reading on narkive:
Loading...