Admin Manual - Installation
From PikaDocs
The following instructions detail the procedure for installing a Pika site on a Linux, Mac OS or Windows server. It assumes you are installing version 3.06. It also assumes you have a Windows desktop set up with a P: drive that points to the "htdocs" Apache web server document root folder on the Pika server. These instructions can be repeated if you need to install more than one Pika site on a single server. If you are installing an older version, please see Installing Older Versions.
| Table of contents |
Installing a Pika Site on a Linux Server
- Download the .ZIP file for the most recent release of Pika 3 from www.pikasoftware.net (http://www.pikasoftware.com/files/releases/) to your desktop PC.
- Unzip the downloaded file. It will unzip to a folder named "pika_cms-306" and a folder named "pika_cms-306-custom".
- Choose a unique name for this site. Use only lowercase letters, no spaces. For the purposes of this document, the name "sitename" will be used.
- Connect to your Pika network drive. This is assumed to be P:.
- Rename the "pika_cms-306" folder that you just unzipped to "sitename".
- Move the "sitename" folder from your desktop PC to P:.
- Rename the "pika_cms-306-custom" folder on your desktop PC to "sitename-custom" and then move it to P:.
- Add following line to Apache's httpd.conf configuration file on the server:
Alias /sitename /home/pika/sitename
On Linux, this file is usually at /etc/httpd/conf/httpd.conf.
- Restart Apache on the server with the following command:
> service httpd restart.
- Create a new MySQL database named sitename from the command line.
> mysqladmin -u root -p create sitename
- Load all SQL files in /home/pika/sitename/app/sql/install into the new database from the command line. The structure.sql file needs to loaded first otherwise the default-user.sql, default-groups.sql, and reset-counters.sql loads will fail.
> cat /home/pika/sitename/app/sql/install/structure.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/default-user.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/default-groups.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/reset-counters.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/menus.sql | mysql -u root -p sitename
- Set a new password for the default "amworley" account with the following SQL:
UPDATE users SET password=MD5('newpassword');
- Edit P:\sitename\app\config\settings.php, add the hostname of the MySQL server, the name of the new database, plus the MySQL username and password Pika should use to access it.
- Check the releases directory for any applicable patches for your version ex. 306 at www.pikasoftware.net (http://www.pikasoftware.com/files/releases/). Install those patches if necessary.
- If you have any customizations, copy the custom files into the P:/sitename/ folder, replacing the default files.
Installing a Pika Site on a Mac OS Server
- Download the .ZIP file for the most recent release of Pika 3 from www.pikasoftware.net (http://www.pikasoftware.net/files/releases/) to the server.
- Unzip the downloaded file. It will unzip to a folder named "pika_cms-306" and a folder named "pika_cms-306-custom".
- Choose a unique name for this site. Use only lowercase letters, no spaces. For the purposes of this document, the name "sitename" will be used.
- Connect to your Pika network drive. This is assumed to be P:.
- Rename the "pika_cms-306" folder that you just unzipped to "sitename".
- Move the "sitename" folder from your desktop PC to P:.
- Rename the "pika_cms-306-custom" folder on your desktop PC to "sitename-custom" and then move it to P:.
- Add following line to Apache's httpd.conf configuration file:
Alias /sitename /home/pika/sitename
On Mac OS, this file is at /etc/httpd/httpd.conf.
- Restart Apache; stop and restart Personal Web Sharing from the Sharing system preferences pane.
- Create a new MySQL database named sitename.
> mysqladmin -u root -p create sitename
- Load all SQL files in /home/pika/sitename/app/sql/install into the new database from the command line. The structure.sql file needs to loaded first otherwise the default-user.sql, default-groups.sql, and reset-counters.sql loads will fail.
> cat /home/pika/sitename/app/sql/install/structure.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/default-user.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/default-groups.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/reset-counters.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/menus.sql | mysql -u root -p sitename
- Set a new password for the default "amworley" account with the following SQL:
UPDATE users SET password=MD5('newpassword');
- Edit /Home/pika/sitename/app/config/settings.php, add the hostname of the MySQL server, the name of the new database, plus the MySQL username and password Pika should use to access it.
- Check the releases directory for any applicable patches for your version ex. 306 at www.pikasoftware.net (http://www.pikasoftware.com/files/releases/). Install those patches if necessary.
- If you have any customizations, copy the custom files into the /Users/pika/sitename/ folder, replacing the default files.
Installing a Pika Site on a Windows Server
- Download the .ZIP file for the most recent release of Pika 3 from www.pikasoftware.net (http://www.pikasoftware.net/files/releases/) to the server.
- Unzip the downloaded file. It will unzip to a folder named "pika_cms-306" and a folder named "pika_cms-306-custom".
- Choose a unique name for this site. Use only lowercase letters, no spaces. For the purposes of this document, the name "sitename" will be used.
- Connect to your Pika network drive. This is assumed to be P:.
- Rename the "pika_cms-306" folder that you just unzipped to "sitename".
- Move the "sitename" folder from your desktop PC to P:.
- Rename the "pika_cms-306-custom" folder on your desktop PC to "sitename-custom" and then move it to P:.
- Add following line to Apache's httpd.conf configuration file:
Alias /sitename "C:\Program Files\Apache Group\Apache2\htdocs\sitename"
On Windows, it is usually at C:\Program Files\Apache Group\Apache2\conf\httpd.conf.
- Restart Apache by restarting the Apache Web Server system service.
- Create a new MySQL database named sitename.
> mysqladmin -u root -p create sitename
- Load all SQL files in /home/pika/sitename/app/sql/install into the new database from the command line. The structure.sql file needs to loaded first otherwise the default-user.sql, default-groups.sql, and reset-counters.sql loads will fail.
> cat /home/pika/sitename/app/sql/install/structure.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/default-user.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/default-groups.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/reset-counters.sql | mysql -u root -p sitename
> cat /home/pika/sitename/app/sql/install/menus.sql | mysql -u root -p sitename
- Set a new password for the default "amworley" account with the following SQL:
UPDATE users SET password=MD5('newpassword');
- Edit C:\Program Files\Apache Group\Apache2\htdocs\sitename\app\config\settings.php, add the hostname of the MySQL server, the name of the new database, plus the MySQL username and password Pika should use to access it.
- Check the releases directory for any applicable patches for your version ex. 306 at www.pikasoftware.net (http://www.pikasoftware.com/files/releases/). Install those patches if necessary.
- If you have any customizations, copy the custom files into the C:\Program Files\Apache Group\Apache2\htdocs\sitename\ folder, replacing the default files.
Troubleshooting Errors
If you see an error that looks like this:
Cannot modify header information - headers already sent by (output started at /var/www/sitename-custom/config/settings.php:33) File: /var/www/sitename/app/lib/pl.php Line: 157
The problem is that the variable base_directory in the settings.php file has an incorrect path.
