linuxでecshopをインストール

1998 ワード

1.service httpd start
2.service mysqld start
  PHP5.3   PHP   ,            

"PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in"
    。     

  
  php.ini。  php5.ini  date.timezone            :date.timezone =PRC

  
  mysql    (mysql    )
1) use mysql
2) update user set password=password('new password') where user='root';
3) flush privileges
4) /usr/bin/mysql -uroot -proot


path={ECSHOP_PATH}
cd $path;

chmod 777 cert 
#all the images folders
chmod -R 777 images 

#chmod -R 777 images/upload  
#all the data folders
chmod -R 777 data #data/afficheimg data/brandlogo data/cardimg data/feedbackimg data/packimg data/sqldata 

#all the temp folders need permission
chmod -R  777 temp 

theme=default
chmod -R 777 themes/$theme

{ECSHOP_PATH} ECSHOP , 。



私は多くの人が一部の版主を含めてtempディレクトリの権限を777に設定することを推薦しているのを見て、私は大きな安全上の危険性があると思って、議論に値します.個人的な設定は:1.サイトのすべてのディレクトリを755,2に設定します.サイトのphp、htm、jpg、lbi、css、dwtファイルのすべてを644に設定します.3.chownコマンドでサイトディレクトリ全体の所有者をapacheを起動するユーザー名に変更し、常用管理者アカウントをapacheグループに追加します.次にapacheユーザーのログインプロパティを制限します.これによりapacheはキャッシュディレクトリに書き込む権限がありますが、apacheユーザーは外部からログインできません.テスト:完全に正常に使用され、外部ユーザーの書き込みを最小限に抑えることができます.のもっと安全な方法があるかどうか見てみましょう
転載先:https://www.cnblogs.com/fengzhiqiangcaisangzi/p/3423578.html