Hosting the PHP PowerDash Server PowerDash 1.1
1. (Optional) Install PHP
Please skip this section if your provider offers a pre-installed PHP installation.
- Install PHP 5.2 or higher
- In the PHP installation directory, copy
php.ini-recommended to php.ini.
- In
php.ini, add/uncomment
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\programs\php\ext"
and add/uncomment
extension=php_mysql.dll
- Add the PHP installation directory to the PATH environment variable
2. (Optional) Install Apache Web Server
Please skip this section if your provider offers a pre-installed Apache installation.
Note: The following instructions show a minimal setup on a MS-Windows platform. Alternative setups
are possible, please consult the Apache manual.
- Install Apache 2.x or higher.
- Add to the
httpd.conf file the following lines
-
# Bind mime-type x-mapp-php5 to php executable.
ScriptAlias /php/ "c:/programs/php/"
Action x-mapp-php5 "/php/php-cgi.exe"
# Set log for error occuring while apache is dispatching to php executable.
ScriptLog logs/cgi.log
where you have to substitute the PHP installation directory and
-
# Bind powerdash index to URL http://localhost:8080/powerdash/index.html
<VirtualHost *:8080>
DocumentRoot "D:/dist/j2js-1.1"
</VirtualHost>
where you have to substitute the path to the powerdash directory and the port number.
-
# Allow to set certain policies in the .htaccess file on a per directory basis.
<Directory "D:/dist/j2js-1.1/powerdash/php">
AllowOverride All
</Directory>
where you have to substitute the path to powerdashs php-directory.
-
Make sure that Apache listens to the port specified in the
VirtualHost directive,
that is the line
Listen 8080
must be present.
You should now be able to load the powerdash index under
index.html
3. (Optional) Install MySQL Server
Please skip this section if your provider offers a pre-installed MySQL installation.
- Download and install MySQL Database 5.x or higher.
- Choose to start MySQL as a deamon.
- You will be asked for a password to the
root account.
- If you reinstall MySQL, take care to remove all previous content
(in particular, remove the installation directory by hand after removing
MySQL through the platform software uninstallation).
- Consider installing phpMyAdmin to administer MySQL.
4. Install PowerDash PHP Server
- Download the PowerDash PHP Archive.
- Deploy/Unzip the archive under Apaches DocumentRoot.
- Customize the PHP Server:
- Locate file
php/configuration.php.
- In this configuration file, set the variables as instructed.
- Define Apaches access to the PHP files:
- Locate file
php/.htaccess.
-
In this file, set the correct mime-type for files with the
.php extension.
This is done with the AddType directive.
-
If you followed the instructions in Install Apache Web Server,
do nothing, as the pre-defined mime-type
x-mapp-php5 already matches.
-
If you use a pre-installed Apache, consult your provider for the correct mime-type.
-
Start the PowerDash Manager to initialize or upgrade the database.
|