install laravel 4 with wamp

Laravel Just update to 4 stable, user can’t download the laravel 4 directly, it need composer to download and install, here the step to install the laravel 4 with wamp.

my OS is window 7 64 bit

1. install wamp

2.enable the openssl in wamp control. open the folder C:\wamp\bin\php\php5.x.x  to edit the php.ini, remove the comment “;” before extension=php_openssl.dll.

3.download and install composer with installer http://getcomposer.org/download/

4.after finish install, open the command line window, type: composer, it will show the command line.

5. download the laravel core file https://github.com/laravel/laravel/archive/master.zip

or run command:

composer create-project laravel/laravel your-project-name

if you donwload the file form the github, just run” composer install”

now you can run your laravel 4 now!

———————————-

Error review:

the “http:/xxx” file could not be downloaded: failded to open stream: unableto find the socket transport “ssl” – did you forget to enable it when you configured PHP?

please remember to enable the openssl

wamp need to edit two part to enable the openssl.

1. enable it from the panel icon, PHP=>php extensions=> php_openssl

2.open the folder C:\wamp\bin\php\php5.x.x  to edit the php.ini, remove the comment “;” before extension=php_openssl.dll.

 

 

joomla 1.5 升級2.5 k2 問題

在上一篇joomla 1.5 升級2.5 中提到直接安裝k2就會顯示內容,不過我沒完整去測試k2 的功能,只測試了發表文章,不過今天一試k2創建新的類別,發現有數據庫錯誤,漏了language,這應該是升級文件的數據庫語句沒有完整執行,打開k2 的安裝文件,把它的數據庫升級語句手動執行了一下,joomla 2.5 k2 無法新增類別的問題就解決了。

ALTER TABLE j17_k2_categories ADD `language` CHAR(7) NOT NULL
ALTER TABLE j17_k2_categories ADD INDEX (`language`);
ALTER TABLE j17_k2_categories ADD `language` CHAR(7) NOT NULL;
ALTER TABLE j17_k2_items ADD `featured_ordering` INT(11) NOT NULL default ‘0’ AFTER `featured`;
ALTER TABLE j17_k2_items ADD `language` CHAR(7) NOT NULL;
ALTER TABLE j17_k2_items ADD INDEX (`language`);

記得把j17 換成你自己數據庫的表頭,