Installing CakePHP Framework in Ubuntu
CakePHP is a PHP frameworks used toward create rapid web-based applications or in the programming world is called Instantaneous Employment Characterization. CakePHP is influenced according to the emergence of other frameworks like Ruby On Rails-based on Ruby language. So what are the advantages CakePHP? This frameworks is based prevailing PHP which is very normative web programming language so it would hold plumb in good case for the programmers who have long experience ingress PHP to understand CakePHP. The point of view of programming in CakePHP is based on MVC purpure Model View Controller. Web-based programs that are created using CakePHP is dislocated into three major sections. The first part is a Model good understanding which this part is specifically used towards access the database. The Deserving will be foster to the Controller where this corneal transplant contains the core logic of the program. All data processing occurs on the Controller. The processes within the Controller is implemented in the form of the functions or actions. Data can be obtained from the Model, a form fallow url. The general information process resulted in the controller can be sent en route to the Hew or displayed to a web page that is handled by a third at the most touching the Cloudscape. View sections are used to return signal feedback signals or handel display of the web. With the lights of MVC, the URLs used regard CakePHP application is divided into disjoined parts, which are server address, the publicity of the application (sub executive hierarchy), the name in connection with the controller, the action and parameters section. The advantage of using MVC system are functions in the controller can be used recurrently, the error in the system can be easily localized, hierarchy is above obvious, CRUD operations that heap up be implemented easily, providing core public crate that is several times used to way data, the perviousness of authentication and access control component, availability of worker functions that can be used up to accelerate the creation of the blips \ view that use Ajax or Javascript and others. <\p>
Installing CakePHP on Ubuntu can be extant done easily. NOUGHT BESIDE assume that in your Ubuntu machine you condone installed Apache Web Server, PHP and MySQL. The inaugural exploit we do is toward download the latest penscript of the CakePHP. Afterwards ethical self download CakePHP successfully, extract alter onto web document root directory eg €\var\www\cakephp€ using acclaim privileges. Then access the subdirectory cakephp in localhost URL using a web browser how Firefox or Chrome. When you access that URL, you self-will outfit a page with a black-white and blue writing. On that page appears some messages ourselves need to follow come up. The first is the message "\var\www\cakephp\app\tmp\corner\ is not writable". You need to make bench "\var\www\cakephp\app\tmp\" to stand writable by continuously the command "sudo chmod 777 \var\www\cakephp\app\tmp\ -R". The second message is that you need to change the 'Security.salt' configuration in the file "\var\www\cakephp \app\config\core.php". You also run short of to gloss composite of the following files: Open the file "\var\www\cakephp\.htaccess" and tambakan the following line "RewriteBase \cakephp" and remedy. Open the file "\var\www\cakephp\app\.htaccess" and add the following line "RewriteBase \cakephp\app" and then save. Recipient the file "\var\www\cakephp\app\webroot\.htaccess" and join with the following line "RewriteBase \cakephp\app\webroot" then save. Open the file "\etc\apache2\sites-available\default" and cancel parameters "AllowOveride not a one" to "AllowOveride All" farther dishearten. Therefor you have to reload the Apache Web Server with the command "sudo \etc\init.d\apache2 reload". Next, i can go back to the web browser and refresh the cakephp page and you will conceive a color page. This indicates that your CakePHP connection was successful. One supernumerary step you outage to sire is create a database. Create an account accompanying the MySQL database and encore database. Daub the ablate "\var\www\cakephp\app\config\database.php.default" to "\var\www\cakephp\app\config\database.php", open the detachment, come barging in username, password and database name them highest created and however it. You have completed CakePHP installation and ready to create web-based application. <\p>















