This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 215
/
php.html
33 lines (31 loc) · 3.91 KB
/
php.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PHP Setup</title>
<link href="css/document.css" rel="stylesheet" type="text/css" />
<link href="css/sforce.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p><a href="http://developer.appexchange.com"><img src="images/adn-blog.gif" width="772" height="136" border="0" /></a></p>
<h2 class="pNewHTMLPage">PHP 5 Setup</h2>
<p class="pNewHTMLPage"><strong><a href="instructions.html">Instructions</a></strong> | <a href="apidocs/index.html">API Docs</a> | <a href="apache.html">Apache Setup</a> | <strong>PHP Setup</strong> | <a href="tests.html">Unit Tests</a></p>
<hr />
<h3 class="pHeading2">Installation</h3>
<p class="pHeading2">The current version of PHP as this is written is 5.1.2. You can get the <a href="http://www.php.net/downloads.php">current distribution</a> from the download section of the PHP site. You should select the ZIP package rather than the pre-packaged installer to be sure that you get the necessary library files.</p>
<p class="pHeading2">Once downloaded, extract the Zip file to a directory. This document will assume <code class="cCode">C:\dev\php5</code> as your base directory.</p>
<h3 class="pHeading2">Build, Configure, and Deploy </h3>
<p class="pHeading2"><em>Configure</em></p>
<p class="pHeading2">PHP 5 includes two .ini files to be used as templates for configuration. Rename php.ini-recommended to php.ini. </p>
<p class="pHeading2">Set extension_dir </p>
<p class="pHeading2">Search for the string "extension_dir" in php.ini. Uncomment it and set it equal to "c:/dev/php5/ext/". If you have installed into another directory adjust accordingly. PHP requires an explicit path to find your extensions under Windows.</p>
<p class="pHeading2">Turn on the required extensions</p>
<p class="pHeading2">In order to use the HTTPS protocol you need to enable some of the PHP extensions. Search for "extension=php_curl.dll". There should be a semi-colon in front of that line - remove it to enable the extension. Scroll down and find "extension=php_openssl.dll" and do the same. Now scroll down a bit further and find "extension=php_sockets.dll". Leave this line alone, but insert a new line below it and type "extension=php_soap.dll" on that line. For some reason, this entry doesn't appear in the default configuration. That's all you need to do for now. Save the file and exit.</p>
<p class="pHeading2">Install SSL Library files</p>
<p class="pHeading2">Now you need to copy the SSL library files from the PHP installation directory to your Windows system directory. The two files are libeay32.dll and ssleay32.dll. They need to be copied into the system directory, usually c:\windows\system32 on an XP system. If you happen to have OpenSSL already installed on your computer you may find that these files are already installed. If they are, you should only replace them if the ones from the PHP directory are more recent. Change the extensions on the existing ones by adding '.bak' just to be safe.</p>
<p class="pHeading2">Update the System Path </p>
<p>You'll need to add the PHP installation directory to your system path. Right-click on My Computer on your desktop (or in the Start menu) and select 'Properties'. Click on the Advanced tab and then the 'Environment Variables' button. Scroll down in the System variables list until you find 'Path'. Select it and click the 'Edit' button. Click at the end of the string and make sure that the rest of the string is not highlighted. Type ";c:\php" at the end of the existing string and click OK until all of the windows are closed. </p>
<p class="pHeading2"> </p>
<p class="pHeading2"> </p>
</body>
</html>