Installing CakePHP
I’m now setting up CakePHP for my PharmaSIS website. I haven’t tried this before so I’m logging my every move:
- Using Eclipse I checked out a copy of CakePHP from https://svn.cakephp.org/repo/trunk/cake/ and selected 1.2.x.x
- I’m now trying to get the initial page running:
- Added a virtual host to my Apache httpd.conf file:
<virtualhost 80="">ServerName demo.PharmaSISDocumentRoot "c:/projects/cake/CakePHP12/app/webroot"DirectoryIndex index.php<directory "c:/projects/cake/CakePHP12/app/webroot">AllowOverride AllAllow from All</directory></virtualhost>
- Added an entry in my /etc/hosts:
- 127.0.0.1 demo.PharmaSIS
- Restarted Apache
- Accessed http://demo.PharmaSIS and got to the default CakePHP page
- There’s this notice which I’ll try to figure out that says:
“Notice (1024): Please change the value of ‘Security.salt’ in app/config/core.php to a salt value specific to your application [CORE\cake\libs\debugger.php, line 535]“ - Changed my security salt to some random string by edting app/config/core.php
- That removed the Security.salt notice but it’s now telling me I don’t have a database configuration file
- Renamed the database.php.default to database.php and edited the settings to:
class DATABASE_CONFIG {var $default = array( 'driver' => 'mssql', 'persistent' => false, 'host' => 'mssql12.mssqlserver', 'port' => '', 'login' => 'myusername', 'password' => 'mypassword', 'database' => 'thedatabasename', 'schema' => '', 'prefix' => '', 'encoding' => '');} - I’m not able connect to the database.
- Apparently, there’s nothing like a default port so I had to specify the port (using the MSSQL default 1433)
- The page is showing all green and seem to be correct.
That ends the installation portion of this session. Next thing I’ll do is probably to experiment on authentication.
No comments yet.
Leave a comment
-
Recent
- My Move to the OSX (the dark-side)
- Skype & Apache conflict
- Simple yet effective way to replicate/mirror a database (any database at that)
- MySQL .frm recovery
- cakePHP calls crashing Apache
- Reformatting the default CakePHP layout (default.ctp)
- Syntax highlighting CakePHP using Eclipse
- Intersecting Entities on CakePHP Models
- Integrating Flickr into my PHP web-app
- Installing CakePHP
- Accessing a POP3 mailbox using PHP
-
Links
-
Archives
- October 2009 (2)
- April 2009 (2)
- February 2008 (1)
- January 2008 (6)
-
Categories
-
RSS
Entries RSS
Comments RSS