Views 972 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. No Image 03Mar
    by 이온디
    in 리눅스
    Views 690  Likes 0

    리눅스 / 사용자 / 사용자 조회, 사용자 추가, 사용자 삭제, 사용자 수정

  2. No Image 03Mar
    by 이온디
    in 리눅스
    Views 672  Likes 0

    리스토리의 IT's/IT Story Mysql 설치후 phpMyadmin 접속 안될때 - Cannot start session

  3. No Image 03Mar
    by 이온디
    in 리눅스
    Views 679  Likes 0

    CentOS PHP/PHP-FPM 설치방법

  4. 리눅스 그룹 생성/삭제/확인/추가 - groupadd

  5. No Image 08Jul
    by 이온디
    in 리눅스
    Views 917  Likes 0

    리눅스 tar 특정폴더 제외하고 압축하기

  6. Htop (Linux Process Monitoring) 사용법

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

    postfix 메일에서 queue 관리

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

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

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

    How to remove imagemagick from Ubuntu 16.04 (Xenial Xerus)

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

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

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

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

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

  14. 루분투 X61 배터리 정보

Board Pagination Prev 1 Next
/ 1