<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>CUBRID PHP API Installer - Install Wizard</title>
        <link>http://www.cubrid.org/?mid=php_install_wizard</link>
        <description>CUBRID PHP API Installer - Install Wizard</description>
        <language>en</language>
        <pubDate>Fri, 22 Apr 2011 17:47:31 -0800</pubDate>
        <lastBuildDate>Mon, 12 Nov 2012 04:03:01 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>CUBRID PHP API...</title>
            <dc:creator>CUBRID</dc:creator>
            <link>http://www.cubrid.org/php_install_wizard</link>
            <guid isPermaLink="true">http://www.cubrid.org/php_install_wizard</guid>
                                    <description><![CDATA[<h1>CUBRID PHP API Installer</h1>

<p>The CUBRID PHP API Installer is a Windows Installer which automatically detects the CUBRID and PHP version, and installs the proper driver for you by copying it to the default PHP extensions folder and adding the extension load directives to the php.ini file. This article will explain how to use the CUBRID PHP API Installer to install the CUBRID PHP extension on Windows OS.</p>

<p>In case you want to remove the CUBRID PHP driver you just have to run the wizard again in uninstall mode (like any other Uninstaller on Windows) and it will revert all the changes made at installation.</p>

<h2>Requirements</h2>

<p>Both PHP and CUBRID path must be present in the System PATH.</p>

<p><b>Important! </b>In order to make sure the installer runs correctly, if you have applications that use the PHP module (example: <b>apache</b>), it is highly recommended that you stop them before running the installer and restart them after it finishes.&nbsp;</p>

<h2>Downloads</h2>

<p>Download the CUBRID PHP API Installer for Windows from the link below. The current installer includes the drivers for all CUBRID versions.</p>

<table class="blackcap rowbg">
<thead>
	<tr>
		<th>CUBRID PHP API Installer</th>
		<th>Size</th>
	</tr>
</thead>
<tbody>
	<tr>
		<td><a href="http://sourceforge.net/projects/cubrid/files/CUBRID-Drivers/PHP_Driver/Installer/CUBRID-PHP-API-Installer-v1.0.9.zip/download" target="_self">CUBRID-PHP-API-Installer-v1.0.9.zip</a></td>
		<td>2.0M</td>
	</tr>
</tbody>
</table>

<h2>Installation</h2>

<p>To install the PHP extension, run the installer. Once the installer is start, click the <code class="menu">Next</code> button.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-1.png" alt="step-1" width="513" height="399" editor_component="image_link"/></p>

<p>Agree with the BSD license terms, and continue.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-2.png" alt="step-2" width="513" height="399" editor_component="image_link"/></p>

<p>Choose where you would like to install this CUBRID PHP API Installer and click <code class="menu">Next</code>.</p>

<p class="important">It is not your PHP installation path, but a separate new folder for this installer like <b>C:&#92;Program Files&#92;CUBRID PHP API</b> as shown below.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-3.png" alt="step-3" width="513" height="399" editor_component="image_link"/></p>

<p>Give s Start Menu Folder name. It is set by default, so just press <code class="menu">Install</code>.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-4.png" alt="step-4" width="513" height="399" editor_component="image_link"/></p>

<p>The installation should start and finish pretty quickly.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-5.png" alt="step-5" width="513" height="399" editor_component="image_link"/></p>

<p>If it did not continue, you should probably receive one of these error messages.</p>

<p>If CUBRID is not installed or there is no environment variable set for it.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-5-error.png" alt="step-5-cubrid-error" width="476" height="171" editor_component="image_link"/></p>

<p>If PHP is not installed or there is no environment variable set for it.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-5-php-error.png" alt="step-5-php-error" width="464" height="171" editor_component="image_link"/></p>

<p>In this case see <b>Add Environment Variables to System PATH</b> below.</p>

<p>If no errors poped up, this should install the CUBRID PHP extension and update your <b>php.ini</b> file. Click <code class="menu">Finish</code> to close the installer.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/step-6.png" alt="step-6.png" width="513" height="399" editor_component="image_link"/></p>

<p>For changes to take place restart your Web server and execute the phpinfo() to confirm CUBRID has successfully been installed.</p>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/phpinfo.png" alt="phpinfo" width="665" height="254" editor_component="image_link"/></p>

<h2>Add Environment Variables to System PATH</h2>

<p>If you have received the above error message, follow the steps below. Otherwise, if you see CUBRID in phpinfo() you do not need to look further.</p>

<p>By default when you install CUBRID it automatically adds its installation directory to the System PATH. So does PHP. Thus, theoretically all you have to do is to check and make sure that these two variables are already in the System PATH.</p>

<p>In order to do this, launch the command line prompt (<code class="menu">Start</code> –&gt; <code class="menu">Programs</code> –&gt; <code class="menu">Accessories</code> –&gt; <code class="menu">Command Prompt</code>) and type the following commands one by one as shown in the below images:</p>

<div editor_component="code_highlighter" code_type="Bash" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url(modules/editor/components/code_highlighter/code.png) no-repeat top right;">
php --version
</div>

<p></p>

<img src="http://www.cubrid.org/files/attach/images/49/102/159/PHP.png" alt="PHP version" width="997" height="318" editor_component="image_link"/>
<p></p>
<div editor_component="code_highlighter" code_type="Bash" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url(modules/editor/components/code_highlighter/code.png) no-repeat top right;">
cubrid --version
</div>

<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/CUBRID.png" alt="CUBRID version" width="997" height="294" editor_component="image_link"/>

</p>

<p>If PHP and CUBRID folders are already in System PATH you will be able to see their versions. Otherwise, it is highly likely that your PHP and CUBRID installations went wrong. Try to reinstall them and recheck again. If for some reason reinstalling does not add the installation directories to the System PATH, you can do it manually.</p>

<ul>
	<li>Right click <code class="menu">My Computer</code> and select <b>Properties</b>. The <code class="menu">System Properties</code> window will appear as shown below.
	<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/SystemProperties.png" alt="System Properties" width="426" height="474" editor_component="image_link"/></p>
	</li>
	<li>Go to <code class="menu">Advanced</code> tab and click on <code class="menu">Environment Variables</code>.
	<p><img src="http://www.cubrid.org/files/attach/images/49/102/159/ENVVARIABLES.png" alt="Environment Variables" width="394" height="436" editor_component="image_link"/></p>
	</li>
	<li>In the new window you will find two lists with variables: one for the current user in the top part and another one for the entire system located in the bottom part. Select the variable called <b>Path</b> from the list in the bottom part and click <code class="menu">Edit…</code> button. You will notice that the value of that variable contains system paths <b>separated by semi-colon</b>.</li>
	<li>Add the paths for CUBRID and PHP in that variable. For example, if PHP is installed in <code class="cmd">C:&#92;Program Files&#92;PHP</code> and also CUBRID in <code class="cmd">C:&#92;CUBRID&#92;bin</code>, you will have to <b>append</b> (do not overwrite, just append) these values to the System PATH like <b>C:&#92;CUBRID&#92;bin;C:&#92;Program Files&#92;PHP</b>. Then press OK buttons to save and close the windows.</li>
</ul>

<p>To confirm you did everything correct, check the variable presence in the command line.</p>

<p></p>

<p></p>]]></description>
                        <pubDate>Fri, 22 Apr 2011 16:49:28 -0800</pubDate>
                        <category>php</category>
                        <category>windows</category>
                                </item>
            </channel>
</rss>
