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


List of Articles
No. Category Subject Views Votes
40 VPS 국내 클라우드 서버호스팅 비교(Virtual Private Server Review) 387 0
39 웹호스팅 [해외]a2hosting 243 0
38 기타 해외도메인 구입 사이트 gandi.net 363 0
37 기타 해외 호스팅의 결제 및 환불 (a2hosting 환불 했습니다.) file 452 0
36 웹호스팅 a2hosting 웹호스팅 단점/후회/불만 249 0
35 기타 무료 아마존 웹 서비스, 100% 알뜰하게 사용하는 방법 167 0
34 웹호스팅 http://rael.me/support.php secret 0 0
33 VPS 각종 클라우드 VPS 서비스 비교해본 소감 455 0
32 VPS Linode VPS의 새로운 콘트롤 패널 file 283 0
31 VPS Linode VPS 디스크 용량 변경 방법 file 159 0
30 VPS 리노드에서 서비스 변경했습니다. (160달러 -> 10달러로) file 176 0
29 리눅스 루분투 X61 배터리 정보 1 file 170 0
» 리눅스 [Laravel] 라라벨 설치하기 PHP7.0 + Nginx 5 file 356 0
27 리눅스 Linux/Ubuntu, 용량 큰 파일/디렉토리 찾아내기. file 636 0
26 리눅스 NGINX PHP-FPM 업데이트 및 여러 버전 동시 연동 방법 181 0
25 리눅스 top 에서 실행 중인 프로세스에서 어떤 파일이 사용되는지 파악하는 방법 file 124 0
24 리눅스 How to remove imagemagick from Ubuntu 16.04 (Xenial Xerus) 294 0
23 리눅스 pstree 현재 사용자 프로세스 확인 284 0
22 리눅스 postfix 메일에서 queue 관리 236 0
21 리눅스 Htop (Linux Process Monitoring) 사용법 file 1662 1
Board Pagination Prev 1 2 Next
/ 2