Views 356 Votes 0 Comment 5
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print Attachment
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print Attachment

https://blog.storyg.co/laravels/install-on-ubuntu16-with-php7-and-nginx

1. 업데이트

# apt update


2. 설정 변경

/etc/php/7.0/fpm/php.ini를 설정 파일에서 cgi.fix_pathinfo를 0으로 설정해줍니다. 


cgi.fix_pathinfo=0

extension=php_openssl.dll


3. 컴포저 설치

https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos

https://www.lesstif.com/php-and-laravel/php-composer-23757293.html



curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin/ 



4. 심볼릭 링크 생성

sudo ln -s /usr/local/bin/composer.phar /usr/local/bin/composer


5. composer 설치확인

https://zetawiki.com/wiki/Composer_%EB%B2%84%EC%A0%84_%ED%99%95%EC%9D%B8

# composer -V


6. (optional) 전역명령어로 사용

https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_composer_%EC%84%A4%EC%B9%98


mv composer.phar /usr/local/bin/composer

(4번 과정을 했는데 6번은 괜히 했는지;;)


7. do not run composer as root/super user

https://www.deok.me/entry/root-%EC%82%AC%EC%9A%A9%EC%9E%90%EB%A1%9C-Composer-%EC%82%AC%EC%9A%A9%EC%8B%9C-Do-not-run-Composer-as-rootsuper-user-%EC%97%90%EB%9F%AC%EA%B0%80-%EB%B0%9C%EC%83%9D%ED


%95%A0%EB%95%8C-%EA%B0%95%EC%A0%9C%EB%A1%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95


7.1. (Optional) root 경고메시지 해제

# export COMPOSER_ALLOW_SUPERUSER=1


8. composer update

# composer self-update


9. 라라벨 프로젝트 생성

https://zetawiki.com/wiki/Composer_%EB%9D%BC%EB%9D%BC%EB%B2%A8_%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8_%EC%83%9D%EC%84%B1


#


Who's 이온디

profile

라이믹스는 이온디와 함께

Atachment
Attachment '1'
기존대댓글
  • profile
    이온디 2020.05.02 01:32
    step1.

    sudo apt-get update
    sudo apt -y install software-properties-common
    sudo add-apt-repository ppa:ondrej/nginx
    sudo apt-get update

    step2.
    sudo apt -y install php7.4


    A new version (/usr/lib/php/7.0/php.ini-production.cli) of configuration file /etc/php/7.0/cli/php.ini is available, but the version installed currently has been locally │
    │ modified. │
    │ │
    │ What do you want to do about modified configuration file php.ini? │
    │ │
    │ install the package maintainer's version │
    │ keep the local version currently installed │
    │ show the differences between the versions │
    │ show a side-by-side difference between the versions │
    │ start a new shell to examine the situation │


    https://kugancity.tistory.com/archive/20181209

    PHP Warning: PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP 7.4.5 (cli) (built: Apr 19 2020 07:36:13) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.5, Copyright (c), by Zend Technologies
  • profile
    이온디 2020.05.02 01:33
    PHP Warning: PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP 7.4.5 (cli) (built: Apr 19 2020 07:36:13) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.5, Copyright (c), by Zend Technologies
  • profile
    이온디 2020.05.02 01:34
    https://laracasts.com/discuss/channels/forge/php-71-update-broken-memcached
  • profile
    이온디 2020.05.02 01:35
    https://guides.wp-bullet.com/install-php-7-4-fpm-on-ubuntu-18-04/
  • profile
    이온디 2020.05.02 01:41
    nginx 사용자마다 php 버전 다르게

    https://idchowto.com/?p=44943
    https://extrememanual.net/10557
추가시작 대댓글시작
대댓글끝 추가끝


List of Articles
No. Category Subject Views Votes
20 서버관리 서버 이전 239 0
19 서버관리 신규 사용자 생성 secret 0 0
18 서버관리 mysqldump not found 468 0
17 Mysqldump를 사용하여 MySQL데이터베이스를 백업 및 복원하는 방법 243 0
16 서버관리 Mysql 비밀번호 변경하는 방법 130 0
15 서버관리 신규 유저 생성 328 0
14 서버관리 소유자 권한 설정 316 0
13 서버관리 압축해제 323 0
12 서버관리 아파치 재실행 289 0
11 리눅스 리눅스 tar 특정폴더 제외하고 압축하기 304 0
10 웹호스팅 사이트 백업하는 방법 198 1
9 VPS 요즘 일방문자가 5000~6000씩 찍히는데 이유를 모르겠습니다. file 87 0
8 리눅스 리눅스 그룹 생성/삭제/확인/추가 - groupadd file 110 0
7 리눅스 CentOS PHP/PHP-FPM 설치방법 92 0
6 리눅스 리스토리의 IT's/IT Story Mysql 설치후 phpMyadmin 접속 안될때 - Cannot start session 100 0
5 웹호스팅 웹호스팅에서 php 설정 변경하는 방법 85 0
4 리눅스 리눅스 / 사용자 / 사용자 조회, 사용자 추가, 사용자 삭제, 사용자 수정 76 0
3 웹호스팅 HestiaCP 설치방법 file 78 0
2 웹호스팅 HestiaCP 사용방법 85 0
1 웹호스팅 innoDB 메모리 설정 방법 file 80 0
Board Pagination Prev 1 2 Next
/ 2