Menu
CakePHP is drafted on the concepts of Ruby on Rails. With its blueprints being PHP, the most commonly used web application language, it supports some of the popular software development approaches like CoC (convention over configuration) and MVC (model-view-controller). CakePHP development has helped the developers complex XML and YAML based frameworks. You can readily use it after installing the web framework. CakePHP helps programmers to cut short the time needed to make applications. CakePHP development has made it possible to use several libraries available in the PHP MVC frameworks. This helps to perform some common programming tasks like caching, translation, database access and authentication. The tools available in CakePHP makes it easier to check input, without writing and separate codes for it. So How Do I Install It In IIS 7.5 ? To start with,
The next step is to download CakePHP sourcecode. Once downloaded, unzip all the contents in the desired path as; c:inetpubCakePHP. When you unzip the contents, you will have the following paths,
Installing The Blog Sample Firstly, You will have to configure your website to point to the cake document route. The correct location would be, c:inetpubCakePHPappwebroot. Secondly, You have to create a blog sample. Configure your database according to ISS7.5 . Create a blog database and direct your configuration to it. To do this, create a catalog, with any tool you prefer. Right click on the catalog and select ‘create new scheme’. Once the scheme is created, click on ‘Tools’ option. From the dropdown menu, select ‘MySQL Query Browser’. Now, Make a blog posts table and database using default posts. When you have created both of them, the next step is to configure CakePHP with the database. For Cake Database Configuration Direct CakePHP to the database you created. Go to c:inetpubCakePHPappconfig and copy database.php.default. To database.php Now open c:inetpubcakephpappconfigdatabase.php and change the default variable to direct it to your database. At this point, you will be able to open your browser and access the default cake configuration page. Set Up Rewriting Tools From the default cake installation, import the mod_rewrite rules from .htaccess. Now, you will have to modify the rules. To do this, open the IIS Management console. Now open your application path. Now import the rules by following steps (here, we are using Home Web Site) a) Click on the ‘Home Web Site’ b) Open ‘URL Rewrite’ c) Select ‘Import Rules’ from the Actions panel d) Select the ‘…’ button, which is next to the ‘Configuration file box e) Select the ‘c:inetpubcakephp.htaccess’ file f) Click ‘OK’ g) Select the ‘Import’ button h) Go to ‘Actions’ and select ‘Apply’ button i) Repeat steps d, e, f, g and h for c:inetpubcakephpapp.htaccess and c:inetpubcakephpappwebroot.htaccess files. Now the rules are imported. The next step is to edit these imported rules. Perform the following steps: a) Go to “Actions” pane and select “Back to Rules” option b) Edit the rules by starting with “webroot/” c) Remove the “webroot” part of the “Rewrite URL” Once you have completed all the steps, you will have a default site. Installing CakePHP on IIS 7.5is similar to installing CakePHP on Apache. The basic difference is that you use URL Rewriter in IIS instead of mod_rewrite as in Apache. IIS makes it much easier to install PHP with the help of Web Application Installer. Over time, it gets interesting to use CakePHP on IIS 7.5 .
0 Comments
Leave a Reply. |
Author
Celin Smith is Web programmer at Xicom Technologies Ltd. who loves to write about web & mobile apps. Xicom is a one of the leading Web Development Outsourcing Company which provides different array of genuine software solutions like Custom .Net Development, IT Outsourcing Services, Web application development services to its clients globally. ArchivesCategories |