2010/12/29

joomla 架站機

最近接到修改網頁的要求,竟是要我重新修改架構 (昏倒)
要我改別人的架構我實在很頭痛~

所以我決定找架站機來用!

參考網址:
http://docs.joomla.org/Installing_Joomla_on_Debian_Linux

裡面有提到要裝 xampp ,其實不用 ...
我的 Debian squeezy 就裝好 apache / mysql / proftp 了
xampp 只是一個類似 appserv 的快速架 web server / sql server / ftp server 的懶人包
  (解壓後只要執行一行指令就好,真的是懶人的福音)


Configure Joomla

In your Browser type
http://localhost/yournewjoomlafolder
In the first Joomla installation screen if error reporting is shown as on then:
In your Terminal type
sudo gedit /opt/lampp/etc/php.ini
In the php.ini file
locate
error_reporting =
And change the value to
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
locate
display_errors = On
And change the value to
display_errors = Off
Stop then restart xampp for the new settings to take effect


然後設定權限
If you want a more restrictive approach, do this instead:
# chown -R root:root /var/www/joomla
# cd /var/www/joomla
# PLACES='
# administrator/backups
# administrator/components
# administrator/modules
# administrator/templates
# cache
# components
# images
# images/banners
# images/stories
# language
# mambots
# mambots/content
# mambots/editors
# mambots/editors-xtd
# mambots/search
# media
# modules
# templates
# '
# for i in $PLACES; do chown -R www-data:www-data $i; done
Now set file and directory permissions:
# find /var/www/joomla -type f -exec chmod 0644 {} \;
# find /var/www/joomla -type d -exec chmod 0755 {} \;

執行安裝程式
http:///joomla/index.htm

依畫面提示下一步到完成

再來砍安裝目錄
# rm -rf /var/www/joomla/installation/
就好了~~ 雖然看起來很簡單,但是沒有看這個教學去調整現有的設定,joomla 會裝不起來(主要應該是檔案權限的問題)
接下來要研究看要怎麼把網站搬過去 ...

沒有留言: