空のサーバセットアップ
yum install php php-devel php-mysql php-gd gd install php-mbstring php-pear php-imap php-xmlrp php-xml php-pgsql php-mcrypt
yum install mysql mysql-server mod_auth_mysql
yum install ImageMagick
yum install ImageMagick-devel
yum install gcc
/usr/bin/pecl install imagick
vi /etc/php.ini
(Imagikがエラーになる場合は)
>ERROR: `/tmp/pear/temp/imagick/configure --with-imagick' failed
pecl install imagick-3.0.1RC2
====PHP5.6をインストールしたい場合===
依存関係にあるepelをインスコ
yum install epel-release
remiをインスコ
rpm -Uvh "http://rpms.famillecollet.com/enterprise/remi-release-6.rpm"
yum install --enablerepo=remi-php56 php php-devel php-mysql php-gd gd install php-mbstring php-pear php-imap php-xmlrp php-xml php-pgsql php-mcrypt
=====================
date.timezone = Asia/Tokyo
upload_max_filesize = 200M
post_max_size = 200M
max_execution_time = 180
max_input_time = 180
extension=imagick.so
error_log = /tmp/php.log
error_reporting = E_ALL & ~E_NOTICE
/etc/init.d/httpd restart
php -m | grep imagick
imagickと表示されればOK!
chkconfig httpd on
chkconfig mysqld on
vi /etc/httpd/conf/httpd.conf
Options All
AllowOverride All
NameVirtualHost *:80
ServerName www.mydomain.com
ServerAlias mydomain.com *.mydomain.com
DocumentRoot /var/www/html/mydomain
ServerName mydomain.com
Redirect permanent / http://www.mydomain.com
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
EC-CUBEの場合
# yum -y install postgresql postgresql-server postgresql-libs
# service postgresql initdb --encoding=UTF-8 --locale=C
# service postgresql start
# su postgres
> cd ~
> createuser --createdb --no-adduser --pwprompt eccube_db_user
Enter password for new role:(パスワード入力)
Enter it again:(パスワード入力)
Shall the new role be allowed to create more new roles? (y/n) n
> createdb eccube_db
出来なかったら-----
5.postgresqlのローカルコネクションの場合の判定をIPで指定
vi /var/lib/pgsql/data/pg_hba.conf
# IPv4 local connections:
host all all 127.0.0.1/32 ident sameuser
↓
host all all 127.0.0.1 255.255.255.255 trust
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
$ chmod 755 eccube-2.0.1.tar.gz
$ tar zxvfp eccube-2.0.1.tar.gz
☆rootにパスワード設定
mysql
mysql> SET PASSWORD FOR root@localhost=PASSWORD('hoge');
mysql> exit
☆phpmyadminで管理
mysql -u root -p
mysql> GRANT ALL ON *.* TO [phpmyadminのユーザー]@"[phpmyadminの設置してあるIP]"IDENTIFIED BY "[パスワード]";
mysql> FLUSH PRIVILEGES;