You have installed CakePHP 2.0 framwork using steps below:
1. Start the terminal
2. sudo mkdir /var/www/cakephp
3. sudo cp -r ~/cakephp/* /var/www/cakephp
( 2 and 3 you can :
2. http://cakephp.org ->Download cakephp_version_RC.tar/...
3. Extract Here -> rename ->cakephp ,copy and pass "cakephp" go to path /var/www/
)
4. cd /var/www ,and change tmp folder permisssion:
sudo chmod -R 777 cakephp/app/tmp
sudo chmod -R 777 cakephp/app/tmp/cache
sudo chmod -R 777 cakephp/app/tmp/cache/persistent
sudo chmod -R 777 cakephp/app/tmp/cache/models
sudo chmod -R 777 cakephp/app/tmp/logs
5. Enable mod-rewrite :
sudo a2enmod rewrite
Open file /etc/apache2/sites-enabled/000-default and change AllowOverride None to AllowOverride All
6. sudo vim /etc/apache2/sites-enabled/000-default
Restart Apache
7. sudo /etc/init.d/apache2 restart
8. Create database in phpmyadmin : data_name : cakephp
9. Change name file "database.php.default" in /var/www/cakephp/app/Config => "database.php"
10. Edit file "database.php" :
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost', // host - doman website of you
'login' => 'root', // username login phpmyadmin
'password' => 'huy', // password login phpmyadmin
'database' => 'cakephp',// database
'prefix' => '',
//'encoding' => 'utf8',
);
11. Edit yourInstallation/app/config/core.php
search for Security.salt and change some random characters (this is so your application doesn't have the same security seed as a billion other installations, which would be a serious security loophole.
Do the same with Security.cipherSeed but use only numbers
save core.php
job done
12. Test: You opened your browser and typed address http://localhost/cakephp/
Home
»
»Unlabelled
» How to install Cakephp On Linux Mint
Thứ Bảy, 21 tháng 9, 2013
Đăng ký:
Đăng Nhận xét (Atom)
Popular Posts
-
Trong số các chương trình viết nhạc, Encore là chương trình có tính năng trình diễn rất tiện lợi, với 11 thanh công cụ trong Palette để soạn...
-
Như tiêu đề, qua tham khảo thông tin trên forum, thấy nhiều bạn than vãn về vấn đề chia ổ bằng acronis diskdirector mà chưa có lời giải đáp ...
-
Easy DriverPack liên tục ra phiên bản mới đến nay chúng ta đã có một sự cải tiến vượt bậc về giao diện và cải tiến về phương pháp nhận biết ...
-
Nhập 1 chuỗi, sau đó bỏ khoảng trắng ở đầu và cuối, khoảng trắng ở giữa 2 từ. var s:string; begin readln(s); while s[1]=#32 do delete(s,1,1)...
-
Trong cuộc sống, có những hoạt động chỉ được thực hiện khi một điều kiện cụ thể được xảy ra. Điều kiện thường là một sự kiện được mô tả sau ...
-
Bạn đang phân vân vì không thể chạy Turbo Pascal trên win 7? Bài viết sau sẽ tư vấn giúp bạn. Turbo Pascal 7.0 with DOSBox là những phần mềm...
-
Tam giác Pascal là gì? Quy luật của Tam giác Pascal rất đơn giản : bắt đầu từ hàng thứ ba, mỗi số bên trong là tổng của hai số ngay phía trê...
-
Viết chương trình Pascal in mã ASCII của các ký tự. Khá đơn giản chỉ với 1 lệnh for. Program Mang_Ky_Tu; Var a:Array[Char] Of Integ...
-
Popup 1 lần / 1 ngày / 1 ip nhưng mở ra new windows mới có vẻ vẫn chưa được thích hợp lắm, nó vẫn gây ảnh hưởng nhiều đến lượt ghé thăm Webs...

0 nhận xét:
Đăng nhận xét