CubeCartForums.org Documentation Area

CubeCartForums.org for CubeCart third-party documentation, modifications, skins and services
Permanent Link   Print This Page
Introduction CubeCart v3 CubeCart v4 Appendix Search

Appendix - Installling PHP

Installling PHP

Once downloaded, run the installer.

Installing PHP

Choose the default installation location...

Installing PHP

... and then on the next page select the web server technology you are using.

Installing PHP

If you have just installed Apache following the instructions above, choose the 'Apache 2.2.x Module' option. If however you are using Windows Internet Information Sevices (IIS), choose 'IIS ISAPI Module'.

We are going to follow the Apache option, so the following dialog asks for the Apache Configuration page.

Installing PHP

Using the default path, the required path is this:

C:\Program Files\Apache Software Foundation\Apache2.2\conf\


After choosing the path, clicking next you will come to the components stage.

Installing PHP

To install the components relevant to what is being used, the following items should be selected/enabled. Note if using a different 'Web Server Setup', the relevant option should be selected. It has not been confirmed that CubeCart will not run without some of these components, however these are the technologies that CubeCart uses.
PHP > Program > Script Executable > Register *.php files to open automatically with PHP.
PHP > Extensions > MySQL
PHP > Extensions > PDO > MySQL
PHP > Extensions > SOAP
PHP > Web Server Setup > Apache 2.2.x Module
PHP > Extras > PEAR
Click on next, and PHP can now install.

Installing PHP



Once installed, there are some configuration settings you will need to apply which are not included in the installation instructions.

Look for 'http.conf' in this location:

C:\Program Files\Apache Software Foundation\Apache2.2\conf\

Search for 'DirectoryIndex', add 'index.php' as shown below:
<IfModule dir_module>
     DirectoryIndex index.html index.php
</IfModule>
If the following code has not already been added by the PHP installer, then it will need adding:
LoadModule php5_module "c:/Program Files/PHP/php5apache2_2.dll"
PHPIniDir "C:/Program Files/PHP"
Note: the file name 'php5apache2_2.dll' may differ depending on the version of PHP installed. Looking in that file location will confirm what the file name is called.

Apache System Tray IconTo activate the edited configuration file, you will need to restart the Apache services. This can be done via the Apache icon in the system tray, or by rebooting.

To test this working, just add the CubeCart files to the web server directory, and see if you can display the CubeCart installer. If you create a folder called 'cubecart', copy the files to there, and then using your browser go to http://localhost/cubecart/. You will not be able to install it as yet though.



Comments, Feedback, Suggestions and Documentation Submissions please post in the Documentation Chat Forum.