본문 바로가기

EC-CUBE

EC-CUBE3 - Oracle VM VirtualBox (CentOS7)



1. Oracle VM VirtualBox 다운로드 후 인스톨


2. CentOS7 Install or Import






Import 후 공유폴더 설정


이 폴더를 통해서 windows에서 사용하는 툴에 import에서 작업 가능해짐














test.php파일을 만들어 phpinfo() 실행













 ls 또는     ll  로 폴더 확인


 pwd  로 현재 경로 확인


폴더 내 파일 앞글자만 입력하고 tab을 누르면 자동완성


tab 2번인 3번인가 누르면 폴더 내 실행 가능 목록 나옴


 cd /etc/httpd/conf      해당 폴더로 이동    


 vi httpd.conf             (편집 가능)            


 less httpd.conf           (읽기만 하는것)        



document root를 위에서 설정한 공유폴더로 바꾸어 줍니다.

Directory



#이 주석이므로 그 외에 행들의 내용을 검색해서 확인















 httpd -v               apache 버젼 확인   

 systemctl status     동작 확인   








 systemctl start httpd            

 systemctl status                 

















 mysql                    mysql 실행     

 show databases       databases 확인     












document root대로 실행되지 않아서 문장을 잘못입력했나 확인하고 수정하고 엄청 고생했는데 


결론은 ec-cube의 .htaccess가 문제 html폴더에만 있으면 된다. html상위 폴더의 .htaccess는 삭제 (사요나라 나의 시간들)











수정하고 확인하고  수정하고 확인하고 수확수확










서버가 문젠가 싶어서 보기도하고










 cd /var/log/httpd/  

 less error_log  



로그를 드디어 확인하고








.htaccess order not allowed here를 보고 권한이 문제라고 생각

 chmod 755 /yamaguchi 


근데도 당연히 안됨 .htaccess가 문제이므로





야마구치 선생님의 처방



httpd.conf와 .htaccess가 둘 다 있을 필요는 없다.


 1036  history

 1037  cd /home/

 1038  ls -al

 1039  cd /var/log/httpd/

 1040  less error_log

 1041  less /mnt/sf_vmShare/eccube3/.htaccess

 1042  less /etc/httpd/conf

 1043  less /etc/httpd/conf/httpd.conf

 1044  cd /mnt/sf_vmShare/eccube3/

 1045  ll

 1046  cd /var/www/html/

 1047  ll

 1048  less /etc/httpd/conf/httpd.conf

 1049  ll /etc/httpd/conf/httpd.conf

 1050  less /etc/httpd/conf/httpd.conf

 1051  pwd

 1052  cd /mnt/sf_vmShare/eccube3/

 1053  ll

 1054  cd html/

 1055  ll

 1056  systemctl httpd restart

 1057  systemctl restart httpd

 1058  systemctl status httpd

 1059  less /var/log/httpd/error_log

 1060  vi /etc/httpd/conf/httpd.conf

 1061  less /mnt/sf_vmShare/eccube3/

 1062  less /mnt/sf_vmShare/eccube3/.htaccess

 1063  vi /mnt/sf_vmShare/eccube3/.htaccess

 1064  ll

 1065  pwd

 1066  cd ..

 1067  pwd

 1068  ll

 1069  less .htaccess

 1070  less /var/log/httpd/error_log

 1071  pwd

 1072  mv .htaccess htaccess

 1073  less htaccess

 1074  less /etc/httpd/conf/httpd.conf

 1075  less htaccess

 1076  history












 1129  Package libzip-0.9-3.1.el6.x86_64 already installed and latest version

 1130  cd ../



 1138  yum install php-pecl-zip

 1139  php -m

 1140  cd

 1141  yum install --enablerepo=remi,remi-php70 php-pear

 1142  yum install --enablerepo=remi,remi-php70 php-devel

 1143  pecl install zip

 1144  cd /usr/bin/pkg-config

 1145  cd /usr/bi/

 1146  cd /usr

 1147  ll

 1148  cd bin/

 1149  ll

 1150  vi php.ini

 1151  cd

 1152  cd source_dir/

 1153  cd /source_dir/

 1154  systemctl restart http

 1155  systemctl rhyyp restart

 1156  systemctl httpd restart

 1157  systemctl restart httpd












그래서 아예 php를 다시 install 함 그랬더니 다 있음


1194  yum -y install epel-release

 1195  cd

 1196  wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

 1197  rpm -Uvh remi-release-7.rpm

 1198  cd /etc/yum.repos.d

 1199  ll

 1200  rpm -qa | grep httpd

 1201  rpm -qa | grep php

 1202  yum remove php*

 1203  yum --enablerepo=remi-php71 install httpd php

 1204  cd

 1205  # php -v

 1206  php -v

 1207  yum -y --enablerepo=remi-php71 install php-mbstring php-pdo php-fpm php-gd php-intl php-mcrypt php-mysqlnd php-opcache php-tidy

 1208  php 

 1209*

 1210  php -m

 1211  systemctl restart httpd

 1212  cd

 1213  cd /mnt/sf_vmShare/eccube3/html/

 1214  ll

 1215  rm install.php

 1216  ll

 1217  systemctl restart httpd

 1218  cd ../

 1219  mv htaccess .htaccess

 1220  mv .htaccess htaccess

 1221  cd /etc/httpd/conf/httpd.conf

 1222  cd /etc/httpd/conf/

 1223  ll

 1224  vi httpd.conf

 1225  systemctl restart httpd

 1226  history

































'EC-CUBE' 카테고리의 다른 글

EC - CUBE Tutorial - PlugIn Design Template  (0) 2018.07.29
EC-ECUBE3 디렉토리 파일 구성 ディレクトリ・ファイル構成  (0) 2018.07.28
EC-CUBE3 - XAMPP  (0) 2018.07.01
EC-CUBE3 - Silex Framework  (0) 2018.07.01
EC-CUBE  (0) 2018.07.01