자료실
DATA
우선 apt 업데이트를 진행해줍니다~!
※ Apt (Advanced Package Tool 의 약어) 는 Debian 시스템에 포함된 핵심 도구들의 집합체이다.
apt update
apt upgrade
apache2 설치
apt install apache2
php 설치
apt-get install php7.1
php 모듈 설치
apt-get install php-mbstring
apt-get install php-curl
apt-get install php-mysql
apt-get install php-xml
apt-get install php-xmlrpc
apt-get install php-gd
apt-get install php-imagick
sudo apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
sudo pecl install mcrypt-1.0.1
echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/apache2/conf.d/mcrypt.ini
apt-get install php-tidy
apt-get install libapache2-mod-php7.2
apt-get install composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
PATH=$PATH:/usr/local/bin/
시간 설정
#dpkg-reconfigure tzdata
apache2 설정 (/etc/apache2/sites-available/000-default.conf)
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
#DocumentRoot /var/www/html
DocumentRoot /var/www/zzim-api-php/public
<Directory /var/www/zzim-api-php/public>
AllowOverride All
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
보안 설정
# deny file, folder start with dot
<DirectoryMatch "^\.|\/\.">
Require all denied
</DirectoryMatch>
# deny (log file, binary, certificate, shell script, sql dump file) access.
<FilesMatch "\.(?i:log|binary|pem|enc|crt|conf|cnf|sql|sh|key|yml|lock|gitignore)$">
Require all denied
</FilesMatch>
# deny access.
<FilesMatch "(?i:composer\.json|contributing\.md|license\.txt|readme\.rst|readme\.md|readme\.txt|copyright|artisan|gulpfile\.js|package\.json|phpunit\.xml|access_log|error_log|gruntfile\.js|bower\.json|changelog\.md|console|legalnotice|license|security\.md|privacy\.md)$">
Require all denied
</FilesMatch>
# Allow Lets Encrypt Domain Validation Program
<DirectoryMatch "\.well-known/acme-challenge/">
Require all granted
</DirectoryMatch>
git clone 후 .env 파일을 작성해줍니다.
그리고 아파치를 재시작 해줍니다.
#만약 file 관련 에러가 나면 다음 명령어로 storage폴더에 쓰기 권한을 줍시다.
chmod -R gu+w storage
chmod -R guo+w storage
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
49 | 리액트 안드로이드 배포 2021 01.13 키스토어 파일을 보관을 생활화 합시다 | 소프터 | 2021.01.13 | 0 |
» | 우분투 라라벨 설치 | 소프터 | 2021.01.04 | 1 |
47 | 우분투 18.04 도커(Docker) 설치 방법 | 소프터 | 2021.01.04 | 1 |
46 | aws 대략가격 참고만 하세요 | 소프터 | 2020.12.28 | 6 |
45 | [php] 비메오사용 정리 1 세팅 | 소프터 | 2020.12.22 | 0 |
44 | [php ]두날짜 사이에 기간을 배열로 반환 하는 함수 | 소프터 | 2020.12.11 | 3 |
43 | 개인정보 보안관리 솔루션 가이드 | 소프터 | 2020.12.09 | 1 |
42 | 셀레리움을 이용한 로그인과 데이터 크롤링예제 윈도우 10 | 소프터 | 2020.12.07 | 4 |
41 | 파이어베이스 웹푸시 | 소프터 | 2020.11.28 | 26 |
40 | 리액트 웹뷰 멀티 팝업설정 | 소프터 | 2020.10.16 | 22 |
39 | 리액트 네이티브 스플레쉬 정리 | 소프터 | 2020.08.27 | 9 |
38 | chrome 80 SameSite cookie CORS 보안 변경사항 php 대응 | 소프터 | 2020.07.22 | 237 |
37 | phpMyAdmin 접속이 localhost 가 아닐경우 설정법. | 소프터 | 2020.07.16 | 9 |
36 | [디장고] ubuntu 18.04 웹서버에 올리는법 | 소프터 | 2020.07.02 | 55 |
35 | [장고] mysql 연결하기 우분투 18.04 | 소프터 | 2020.07.02 | 1 |
34 | 우분투에서 타임존 변경 | 소프터 | 2020.06.18 | 1 |
33 | react-native-permissions NSBluetoothAlwaysUsageDescription 권한을 요청할떄 | 소프터 | 2020.06.10 | 10 |
32 | 리액트 블루투스 모듈 ios 에서 pod spec | 소프터 | 2020.06.10 | 1 |
31 | xcode 캐시 지우는법 | 소프터 | 2020.06.10 | 2 |
30 | [REACT NATIVE] 패키지명, 번들명 변경하기 PACKAGE, BUNDLE [ANDROID, IOS] [1] | 소프터 | 2020.05.29 | 469 |