|
InstallationWindows
Installing CRBS on Windows with Apache
IntroductionAssuming you have Apache, PHP and MySQL installed with the relative modules enabled (php_gd) and configured, proceed with installing Classroombookings following these steps. If you don't already have a working web server setup, I recommend WampServer. DetailsSet up databaseUsing phpMyAdminNote If using WampServer - click on the WAMP tray icon, then click 'phpMyAdmin'.
Using HeidiSQL
Extract filesFirst, make a directory for Classroombookings in your web server's document root (eg. c:\wamp\www\classroombookings.) Then, using a archiving tool such as 7zip, extract the contents of the crbs archive to the new folder. Modify config filesYou will now need to edit several lines in the configuration files, relative to the directory you created previously:
config.php// Full URL to your installation $config['base_url'] = 'http://www.example.com/classroombookings/'; // Empty string if using mod_rewrite in .htaccess $config['index_page'] = 'index.php'; database.php$db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'crbs_user'; $db['default']['password'] = 'password'; $db['default']['database'] = 'crbs'; $db['default']['dbdriver'] = 'mysql'; $db['default']['dbprefix'] = ''; $db['default']['active_r'] = TRUE; $db['default']['pconnect'] = FALSE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; ~/.htaccess (optional)If you're going to use Apache mod_rewrite for cleaner URLs, all you need to do is change the URL to reflect where Classroombookings is installed with a leading and trailing forward-slash. For example, if Classroombookings was installed at http://www.example.com/classroombookings/ then you need to change the RewriteBase to reflect the installation path. If you aren't using a subdirectory, just leave a single forward-slash. <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /classroombookings/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>To enable Mod_rewrite on WAMP:
Apply write permissionsThe next step involves applying writeable permissions to several directories in your installation to allow Apache to upload files to them (images, CSV files etc). On Windows, the directories are usually writeable by the web server by default. If not, you will need to use Windows Explorer to allow the web server to write to these directories (again, relative to the directory you created earlier):
Run installation scriptUsing a web browser, navigate to the web server where you installed Classroombookings to, Eg. http://www.example.com/classroombookings/. You will be presented with the installation page. Fill in the required information and and click on the Install button. |
I use XAMPP for Windows Version 1.6.7. It is working fine. But for Week dates I received an error like this "http://localhost/crbs/index.php/weeks/dates". What is this error about? Same thing with Report I get error "404 Page Not Found The page you requested was not found." Thanks a lot! Keep going with your good work.
@fredimadg, The errors you encounter are regular 404 not found, and are nothing to worry about as they don't actually exist (forgot to remove the links)
trying to install using WAMP. followed instructions but get this error when loading the install page
A PHP Error was encountered
Severity: 8192
Message: Function set_magic_quotes_runtime() is deprecated
Filename: codeigniter/CodeIgniter?.php
Line Number: 46
any ideas
A PHP Error was encountered
Severity: 8192
Message: Function set_magic_quotes_runtime() is deprecated
Filename: codeigniter/CodeIgniter?.php
Line Number: 46 The URI you submitted has disallowed characters: install
HELP??
You may need to use an earlier version of PHP. Try PHP version 5.2.9. I know that i have had a problem with a message like that, i was using PHP version 5.3.0, i moved to 5.2.9 and it just worked.
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/login.php
Line Number: 35
HELP????? please