조회 수 972 추천 수 0 댓글 5
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

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
첨부 '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
추가시작 대댓글시작
대댓글끝 추가끝


등록된 글이 없습니다.

Board Pagination Prev 1 ... 2 Next
/ 2