Installation of ApPHP Calendar (version 3.0.0 or above)
(for version 3.0.0 or above)
A new installation of ApPHP Calendar is a very straight forward process:
Step 1. Uncompressing downloaded file.
Uncompress the ApPHP Calendar version 3.x.x script archive. The archive will create a directory called "PHPCAL_3xx".
Step 2. Uploading files.
Upload content of sub-directory calendar/ (all files and sub-directories it includes) to your
document root (public_html, www, httpdocs etc.) or your calendar directory using FTP.
Pay attention: DON'T use the capital letters in the name of the folder (for Linux users).
For example:
public_html/
or
public_html/{calendar directory}/
Step 3. Creating database.
3.1. Using your hosting Control Panel, phpMyAdmin or another tool, create your database and
user, and assign that user to the database. Grant SELECT, INSERT, DELETE, and UPDATE privileges to this user.
Write down hosting, name of the database, username, and password for the Script Installation Procedure.
3.2. Create all appropriate database tables and stored procedures using examples/install/sql_dump/installation_new.sql and
examples/install/sql_dump/stored_procedures.sql files (you have to import them). Before importing, change
"<DB_PREFIX>" table prefix holders on any prefix you want (for example, "CAL_").
3.3. Create config.inc.php file in calendar/inc/ folder (take example from examples/install/config.tpl) and change database host,
database name, username and user password with appropriate values, saved on step 3.1. Change in define('DB_PREFIX', '');
the the value with the prefix you have selected before for importing sql dump file. For example: define('DB_PREFIX', 'CAL_');
define('DATABASE_HOST', 'host');
define('DATABASE_NAME', 'database name');
define('DATABASE_USERNAME', 'user name');
define('DATABASE_PASSWORD', 'user password');
define('DB_PREFIX', 'CAL_');
define('INSTALLATION_KEY', 'your_key'); // Unique key for installation
define('DB_CONNECTION_MODE', 'production'); // 'debug'|'production'
Step 4. Settings and access rights.
4.1. Set permissions: e.g chmod 755 for calendar/inc/ and calendar/tmp/ folders.
4.2. If you run ApPHP Calendar under IIS, you have to allow rewrite mode for Windows.
- To do this, open the httpd.conf file and uncomment the following lines (remove the trailing #s):
#LoadModule rewrite_module modules/mod_rewrite.so #AddModule mod_rewrite.c
- Another way is simply to "share" your calendar/inc/ and calendar/tmp/ folders.
Step 5. Running code_example.php file.
Now you can run the example file. To do this, open a browser and type in Address Bar
http://localhost/{calendar directory}/code_example.php
or
http://{www.mydomain.com}/{calendar directory}/code_example.php
Congratulations, you now have ApPHP Calendar v3.x.x. Installed!
|