by admin

Install Mysql Module Php Windows Curl

I want to build php with mysql and curl on a. Your existing php install. Overwrite your apache php module in $APACHEROOT/conf/modules so if you.

  1. Php Curl Install Windows
  2. Install Php Mysql Windows
We hope you find this tutorial helpful. In addition to guides like this one, we provide simple cloud infrastructure for developers. Learn more →
  1. These are instructions for installing on Windows 7 desktop (they may also be useful for a server install with some thought to security) using individual components rather than a one click installer.
  2. Oct 19, 2012 - This guide instructs you how to enable cURL extension in PHP. People often use WAMP (Windows, Apache, MySQL, PHP) bundles for local.
Not using Ubuntu 12.04? Choose a different version:

Status: Deprecated

This article covers a version of Ubuntu that is no longer supported. If you are currently operate a server running Ubuntu 12.04, we highly recommend upgrading or migrating to a supported version of Ubuntu:

  • Upgrade to Ubuntu 14.04.

Reason:Ubuntu 12.04 reached end of life (EOL) on April 28, 2017 and no longer receives security patches or updates. This guide is no longer maintained.

About LAMP

LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here is how to install the rest.

Set Up

The steps in this tutorial require the user to have root privileges on your VPS. You can see how to set that up in the Initial Server Setup in steps 3 and 4.

Step 1: Install Apache

Install Mysql Module Php Windows Curl

Apache is a free open source software which runs over 50% of the world’s web servers.

To install apache, open terminal and type in these commands:

That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://12.34.56.789). The page should display the words “It works!' like this.

How to Find your Server’s IP address

You can run the following command to reveal your server’s IP address.

Step 2: Install MySQL

MySQL is a powerful database management system used for organizing and retrieving data

To install MySQL, open terminal and type in these commands:

During the installation, MySQL will ask you to set a root password. If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell.

Once you have installed MySQL, we should activate it with this command:

Finish up by running the MySQL set up script:

The prompt will ask you for your current root password.

Type it in.

Then the prompt will ask you if you want to change the root password. Go ahead and choose N and move on to the next steps.

It’s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the new changes.

Once you're done with that you can finish up by installing PHP.

Step 3: Install PHP

PHP is an open source web scripting language that is widely use to build dynamic webpages.

To install PHP, open terminal and type in this command.

After you answer yes to the prompt twice, PHP will install itself.

It may also be useful to add php to the directory index, to serve the relevant php index files:

Add index.php to the beginning of index files. The page should now look like this:

PHP Modules

PHP also has a variety of useful libraries and modules that you can add onto your virtual server. You can see the libraries that are available.

Terminal will then display the list of possible modules. The beginning looks like this:

Once you decide to install the module, type:

You can install multiple libraries at once by separating the name of each module with a space.

Congratulations! You now have LAMP stack on your droplet!

Step 4: RESULTS — See PHP on your Server

Although LAMP is installed, we can still take a look and see the components online by creating a quick php info page

To set this up, first create a new file:

Add in the following line:

Then Save and Exit.

Restart apache so that all of the changes take effect:

Finish up by visiting your php info page (make sure you replace the example ip address with your correct one): http://12.34.56.789/info.php

It should look similar to this.

See More

After installing LAMP, you can Set Up phpMyAdmin, Install WordPress, go on to do more with MySQL (A Basic MySQL Tutorial), Create an SSL Certificate, or Install an FTP Server.

Im trying to use HybridAuth in one of my projects, the error message im getting is

Original error message: Hybridauth Library needs the CURL PHP extension.

Even though i have enabled cURL in my php.ini extension=php_curl.dll

here is a screenshot of my phpinfo()

What else i have to do in-order to enable the cURL extension, the related php_curl.dll is also present in the ext dir

Message that i get when i restart the apache server

C:Apache24bin>httpd -k restart AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::a02e:1c05:c6ad:9332. Set the 'ServerName' directive globally to suppress this message

John x
John xJohn x

5 Answers

You have to add PHP install path to windows environment path. For example it you install php on C:PHP, add both C:PHP and C:PHPext to windows path. Some how Apache cannot find curl dependencies libeay32.dll, ssleay32.dll and libssh2.dll

Trinh Hoang NhuTrinh Hoang Nhu
Gaurav DaveGaurav Dave

so it turns out i need a fixed version of curl which i could not find for PHP_5.6.4, so i downgraded to PHP Version 5.4.3 and then downloaded Fixed curl extension(dont know what it is) from here replaced the original php_curl.dll with the one i downloaded and voila it worked.

The following SO post helped me fix the problem

P.S please feel free to edit the answer as i dont know the exact reason why its working now and why it was not earlier...

Community
John xJohn x

get back the original php_curl.dll file ( from the zip file you downlaoded from php.net )

copy libssh2.dll, php_curl.dll, ssleay32.dll, libeay32.dll to Windowssystem32 folder

this worked with me i have php 5.6.6 x64 ts with apache 2.4.10 in windows 8.1

Php Curl Install Windows

RobertRobert

You have to add the PHP install path to the Windows environment path. For example, if you install PHP on C:PHP, add both C:PHP and C:PHPext to the Windows path. Somehow, Apache cannot find curl dependencies libeay32.dll, ssleay32.dll and libssh2.dll.

Install Php Mysql Windows

pablotandilpablotandil

Not the answer you're looking for? Browse other questions tagged phpcurlhybridauth or ask your own question.