PBooks Installation using XAMPP and Windows
From PBooks Open Source Accounting Wiki
Contents |
[edit] Requirements
- XAMPP (this will install Apache, MySQL, and PHP, among other useful stuff)
- Tortoise SVN (optional, for use with subversion)
- Cygwin (optional, for use with PEAR)
[edit] PEAR Installs
There is probably another way to do this, but since I'm more comfortable with a posix environment I did it this way.
/cygdrive/c/xampp/php/pear.bat install MDB2 /cygdrive/c/xampp/php/pear.bat install MDB2#mysqli
[edit] Installing Pbooks on Windows using XAMPP
[edit] CODE INSTALLATION
These are the steps I followed in order to install Pbooks on windows using XAMPP.
- After installing XAMPP I clicked on "my computer" and then went to the C: drive. You should then see a folder titled XAMPP
- I then created a new folder called Pbooks inside of the XAMPP-sub folder called htdocs. I used the turtle svn checkout to download the pbooks content to the pbooks folder. The URL is http://www.pbooks.org/svn/pbooks/trunk/
- Next I created a nexista folder inside of the pbooks folder I just created. I used the turtle SVN checkout to download the nexista content to the newly created nexista folder. The URL is http://www.nexista.org/svn/nexista/trunk/
- The last step is to create a new folder in the apps sub folder of the pbooks folder you created in step 1. I used the SVN checkout and created a new folder named auth. The url for the Auth folder content is http://www.nexista.org/svn/nexista/apps/auth/
[edit] DATABASE INSTALLATION
The following steps will allow you to install the database
- Go to your browser and type in the following address. http://localhost/xampp/index.php.
- Then go to tools on the left hand menu, click on phpmyadmin, then create a database called Pbooks. You will be pasting information into the SQL section in the next step. (This assumes that MySQL still has no password. If you've setup XAMPP security, use the credentials you chose to login to phpmyadmin.)
- Now you want to go back to htdocs, click on pbooks, then apps, then pbooks, data, model, and lastly you want to open the folder named pbooks data model. Open the pbooks_data_model.sql file in a text editor and copy and paste the SQL code into phpmyadmin (click on the pbooks database you created in the left hand side, then the query / sql tab in the main window).
- The last step is to do the same with the sample data folder which is located to the right of the model folder from the previous step. Then copy the info in the folder named auth-pbooks-data. After you have copied that, go ahead and paste it into the SQL section like you did in step 3. Click go.
[edit] Other necessary changes
- In auth.php and index.php code type in the following path after $nexista_path = "c:/xampp/htdocs/pbooks/nexista/" These files are located in the web folder
-
Change config.php to wconfig.php in the code for the files named init.php and foundry.php. These files are located in the kernel folder which is located in the nexista folder. -
Change the name of the file config.php to wconfig.php - Change pbooks/config/config/xml.dist to config.xml. Then go into the code and change the username to root, and leave the password blank.
- Change pbooks/apps/pbooks/config/config.xml.dist to config.xml
USE THE FOLLOWING LINK TO TEST THE APPLICATION FOLLOWING INSTALLATION
http://localhost/pbooks/web/auth.php
