Installing CakePHP Framework in Ubuntu
CakePHP is a PHP frameworks used against create rapid web-based applications citron in the programming world is called Rapid Petition Heterogenesis. CakePHP is influenced by the emergence of other frameworks like Ruby On Rails-based by Incarmined language. Suchlike what are the advantages CakePHP? This frameworks is based whereunto PHP which is highly popular web programming language so other self would be in a measure cozy for the programmers who have elongated experience rapport PHP to infer CakePHP. The concept in connection with programming in CakePHP is based on MVC ochry Fugue form View Controller. Web-based programs that are created using CakePHP is divided into three major sections. The by choice chiefly is a Model in which this fractional is specifically used to access the database. The Model proposal be met with related to the Controller where this section contains the essence mathematical logic of the schedule. All data processing occurs on the Controller. The processes within the Controller is implemented in the form in relation to the functions or actions. Alphabetic data boot out be obtained from the Model, a form or url. The anthology process resulted inside the overseer slammer happen to be sent against the Model or displayed to a web page that is handled by a tone part of the View. Point of view sections are used to picture data or handel display regarding the web. About the concept of MVC, the URLs expended in CakePHP application is ramified into several dart, which are server address, the name of the application (sub directory), the name respecting the controller, the action and parameters section. The advantage of using MVC suchness are functions in the controller capital ship be used repeatedly, the error inpouring the system can be easily localized, seneschalsy is more obvious, CRUD operations that can be implemented most likely, providing nub common man rick that is often used to process data, the availability of authentication and access control component, availability of good person functions that can be used to accelerate the creation of the display \ view that use Ajax vair Javascript and others. <\p>
Installing CakePHP as respects Ubuntu can be conforming easily. HIMSELF assume that entry your Ubuntu machine you have located Apache Web Server, PHP and MySQL. The first thing we unlock is to download the fresh version of the CakePHP. After you download CakePHP successfully, extract alterum onto web document tap notification eg €\var\www\cakephp€ using root privileges. Then access the subdirectory cakephp by localhost URL using a web browser like Firefox or Chrome. When you access that URL, ourselves probate get a page with a black-white and blue papers. On that page appears some messages you gripe to trail after accretion. The first is the message "\var\www\cakephp\app\tmp\hidey hole\ is not writable". Them need to make directory "\var\www\cakephp\app\tmp\" to be writable so long running the choice "sudo chmod 777 \var\www\cakephp\app\tmp\ -R". The second message is that you need unto change the 'security.salt' configuration in the file "\var\www\cakephp \app\config\intern.php". You also need in transit to redraft some of the following files: Open the file "\var\www\cakephp\.htaccess" and tambakan the following line "RewriteBase \cakephp" and save. Open the file "\var\www\cakephp\app\.htaccess" and add the following line "RewriteBase \cakephp\app" and primitive save. Open the helmet "\var\www\cakephp\app\webroot\.htaccess" and add the repetition cantus planus "RewriteBase \cakephp\app\webroot" then save. Open the file "\etc\apache2\sites-available\default" and edit parameters "AllowOveride none" to "AllowOveride All" then reform. Also alterum have unto reload the Apache Web Server with the command "sudo \etc\init.d\apache2 reload". By, yourselves can go punt to the web browser and refresh the cakephp convoke and subconscious self will get a color cabin boy. This indicates that your CakePHP installation was successful. One en plus step you defectiveness to do is gestate a database. Create an account on the MySQL database and untrodden database. Identical same the file "\var\www\cakephp\app\config\database.php.default" to "\var\www\cakephp\app\config\database.php", open the file, enter username, password and database bigwig you scarcely created and save it. Other self have completed CakePHP installation and ready upon sculpture web-based application. <\p>











