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


#


기존대댓글
  • 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
추가시작 대댓글시작
대댓글끝 추가끝


  1. Htop (Linux Process Monitoring) 사용법

  2. No Image 04May
    by 이온디
    in 리눅스
    Views 236  Likes 0

    postfix 메일에서 queue 관리

  3. No Image 04May
    by 이온디
    in 리눅스
    Views 284  Likes 0

    pstree 현재 사용자 프로세스 확인

  4. No Image 03May
    by 이온디
    in 리눅스
    Views 294  Likes 0

    How to remove imagemagick from Ubuntu 16.04 (Xenial Xerus)

  5. top 에서 실행 중인 프로세스에서 어떤 파일이 사용되는지 파악하는 방법

  6. No Image 02May
    by 이온디
    in 리눅스
    Views 181  Likes 0

    NGINX PHP-FPM 업데이트 및 여러 버전 동시 연동 방법

  7. Linux/Ubuntu, 용량 큰 파일/디렉토리 찾아내기.

  8. [Laravel] 라라벨 설치하기 PHP7.0 + Nginx

  9. 루분투 X61 배터리 정보

  10. 01Jan
    by 이온디
    in VPS
    Views 176  Likes 0

    리노드에서 서비스 변경했습니다. (160달러 -> 10달러로)

  11. 26Jul
    by 이온디
    in VPS
    Views 159  Likes 0

    Linode VPS 디스크 용량 변경 방법

  12. 15Jul
    by 이온디
    in VPS
    Views 283  Likes 0

    Linode VPS의 새로운 콘트롤 패널

  13. No Image 07Jun
    by 이온디
    in VPS
    Views 455  Likes 0

    각종 클라우드 VPS 서비스 비교해본 소감

  14. No Image 07Jun
    by 이온디
    in 웹호스팅
    Views 0  Likes 0

    http://rael.me/support.php

  15. No Image 17Feb
    by 이온디
    in 기타
    Views 167  Likes 0

    무료 아마존 웹 서비스, 100% 알뜰하게 사용하는 방법

  16. No Image 18Feb
    by 이온디
    in 웹호스팅
    Views 249  Likes 0

    a2hosting 웹호스팅 단점/후회/불만

  17. 해외 호스팅의 결제 및 환불 (a2hosting 환불 했습니다.)

  18. No Image 10Feb
    by 이온디
    in 기타
    Views 363  Likes 0

    해외도메인 구입 사이트 gandi.net

  19. No Image 03Feb
    by 이온디
    in 웹호스팅
    Views 243  Likes 0

    [해외]a2hosting

  20. No Image 03Feb
    by 이온디
    in VPS
    Views 387  Likes 0

    국내 클라우드 서버호스팅 비교(Virtual Private Server Review)

Board Pagination Prev 1 2 Next
/ 2