ubuntu@ip-172-31-46-103:/var/www/html$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" PHP Warning: Failed loading Zend extension 'opcache.so' (tried: ./opcache.so (./opcache.so: cannot open shared object file: No such file or directory), ./opcache.so.so (./opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: ./curl (./curl: cannot open shared object file: No such file or directory), ./curl.so (./curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mysqlnd.so' (tried: ./mysqlnd.so (./mysqlnd.so: cannot open shared object file: No such file or directory), ./mysqlnd.so.so (./mysqlnd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo.so' (tried: ./pdo.so (./pdo.so: cannot open shared object file: No such file or directory), ./pdo.so.so (./pdo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: ./xml.so (./xml.so: cannot open shared object file: No such file or directory), ./xml.so.so (./xml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'calendar.so' (tried: ./calendar.so (./calendar.so: cannot open shared object file: No such file or directory), ./calendar.so.so (./calendar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ctype.so' (tried: ./ctype.so (./ctype.so: cannot open shared object file: No such file or directory), ./ctype.so.so (./ctype.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: ./curl.so (./curl.so: cannot open shared object file: No such file or directory), ./curl.so.so (./curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: ./dom.so (./dom.so: cannot open shared object file: No such file or directory), ./dom.so.so (./dom.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'exif.so' (tried: ./exif.so (./exif.so: cannot open shared object file: No such file or directory), ./exif.so.so (./exif.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ffi.so' (tried: ./ffi.so (./ffi.so: cannot open shared object file: No such file or directory), ./ffi.so.so (./ffi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo.so' (tried: ./fileinfo.so (./fileinfo.so: cannot open shared object file: No such file or directory), ./fileinfo.so.so (./fileinfo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ftp.so' (tried: ./ftp.so (./ftp.so: cannot open shared object file: No such file or directory), ./ftp.so.so (./ftp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: ./gd.so (./gd.so: cannot open shared object file: No such file or directory), ./gd.so.so (./gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gettext.so' (tried: ./gettext.so (./gettext.so: cannot open shared object file: No such file or directory), ./gettext.so.so (./gettext.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'iconv.so' (tried: ./iconv.so (./iconv.so: cannot open shared object file: No such file or directory), ./iconv.so.so (./iconv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: ./mbstring.so (./mbstring.so: cannot open shared object file: No such file or directory), ./mbstring.so.so (./mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: ./mysqli.so (./mysqli.so: cannot open shared object file: No such file or directory), ./mysqli.so.so (./mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: ./pdo_mysql.so (./pdo_mysql.so: cannot open shared object file: No such file or directory), ./pdo_mysql.so.so (./pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'phar.so' (tried: ./phar.so (./phar.so: cannot open shared object file: No such file or directory), ./phar.so.so (./phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'posix.so' (tried: ./posix.so (./posix.so: cannot open shared object file: No such file or directory), ./posix.so.so (./posix.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'readline.so' (tried: ./readline.so (./readline.so: cannot open shared object file: No such file or directory), ./readline.so.so (./readline.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'shmop.so' (tried: ./shmop.so (./shmop.so: cannot open shared object file: No such file or directory), ./shmop.so.so (./shmop.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: ./simplexml.so (./simplexml.so: cannot open shared object file: No such file or directory), ./simplexml.so.so (./simplexml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sockets.so' (tried: ./sockets.so (./sockets.so: cannot open shared object file: No such file or directory), ./sockets.so.so (./sockets.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvmsg.so' (tried: ./sysvmsg.so (./sysvmsg.so: cannot open shared object file: No such file or directory), ./sysvmsg.so.so (./sysvmsg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvsem.so' (tried: ./sysvsem.so (./sysvsem.so: cannot open shared object file: No such file or directory), ./sysvsem.so.so (./sysvsem.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvshm.so' (tried: ./sysvshm.so (./sysvshm.so: cannot open shared object file: No such file or directory), ./sysvshm.so.so (./sysvshm.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'tokenizer.so' (tried: ./tokenizer.so (./tokenizer.so: cannot open shared object file: No such file or directory), ./tokenizer.so.so (./tokenizer.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: ./xmlreader.so (./xmlreader.so: cannot open shared object file: No such file or directory), ./xmlreader.so.so (./xmlreader.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlwriter.so' (tried: ./xmlwriter.so (./xmlwriter.so: cannot open shared object file: No such file or directory), ./xmlwriter.so.so (./xmlwriter.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so' (tried: ./xsl.so (./xsl.so: cannot open shared object file: No such file or directory), ./xsl.so.so (./xsl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: ./zip.so (./zip.so: cannot open shared object file: No such file or directory), ./zip.so.so (./zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: Failed loading Zend extension 'opcache.so' (tried: ./opcache.so (./opcache.so: cannot open shared object file: No such file or directory), ./opcache.so.so (./opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: ./curl (./curl: cannot open shared object file: No such file or directory), ./curl.so (./curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mysqlnd.so' (tried: ./mysqlnd.so (./mysqlnd.so: cannot open shared object file: No such file or directory), ./mysqlnd.so.so (./mysqlnd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo.so' (tried: ./pdo.so (./pdo.so: cannot open shared object file: No such file or directory), ./pdo.so.so (./pdo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: ./xml.so (./xml.so: cannot open shared object file: No such file or directory), ./xml.so.so (./xml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'calendar.so' (tried: ./calendar.so (./calendar.so: cannot open shared object file: No such file or directory), ./calendar.so.so (./calendar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ctype.so' (tried: ./ctype.so (./ctype.so: cannot open shared object file: No such file or directory), ./ctype.so.so (./ctype.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: ./curl.so (./curl.so: cannot open shared object file: No such file or directory), ./curl.so.so (./curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: ./dom.so (./dom.so: cannot open shared object file: No such file or directory), ./dom.so.so (./dom.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'exif.so' (tried: ./exif.so (./exif.so: cannot open shared object file: No such file or directory), ./exif.so.so (./exif.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ffi.so' (tried: ./ffi.so (./ffi.so: cannot open shared object file: No such file or directory), ./ffi.so.so (./ffi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo.so' (tried: ./fileinfo.so (./fileinfo.so: cannot open shared object file: No such file or directory), ./fileinfo.so.so (./fileinfo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ftp.so' (tried: ./ftp.so (./ftp.so: cannot open shared object file: No such file or directory), ./ftp.so.so (./ftp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: ./gd.so (./gd.so: cannot open shared object file: No such file or directory), ./gd.so.so (./gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gettext.so' (tried: ./gettext.so (./gettext.so: cannot open shared object file: No such file or directory), ./gettext.so.so (./gettext.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'iconv.so' (tried: ./iconv.so (./iconv.so: cannot open shared object file: No such file or directory), ./iconv.so.so (./iconv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: ./mbstring.so (./mbstring.so: cannot open shared object file: No such file or directory), ./mbstring.so.so (./mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: ./mysqli.so (./mysqli.so: cannot open shared object file: No such file or directory), ./mysqli.so.so (./mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: ./pdo_mysql.so (./pdo_mysql.so: cannot open shared object file: No such file or directory), ./pdo_mysql.so.so (./pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'phar.so' (tried: ./phar.so (./phar.so: cannot open shared object file: No such file or directory), ./phar.so.so (./phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'posix.so' (tried: ./posix.so (./posix.so: cannot open shared object file: No such file or directory), ./posix.so.so (./posix.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'readline.so' (tried: ./readline.so (./readline.so: cannot open shared object file: No such file or directory), ./readline.so.so (./readline.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'shmop.so' (tried: ./shmop.so (./shmop.so: cannot open shared object file: No such file or directory), ./shmop.so.so (./shmop.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: ./simplexml.so (./simplexml.so: cannot open shared object file: No such file or directory), ./simplexml.so.so (./simplexml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sockets.so' (tried: ./sockets.so (./sockets.so: cannot open shared object file: No such file or directory), ./sockets.so.so (./sockets.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvmsg.so' (tried: ./sysvmsg.so (./sysvmsg.so: cannot open shared object file: No such file or directory), ./sysvmsg.so.so (./sysvmsg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvsem.so' (tried: ./sysvsem.so (./sysvsem.so: cannot open shared object file: No such file or directory), ./sysvsem.so.so (./sysvsem.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvshm.so' (tried: ./sysvshm.so (./sysvshm.so: cannot open shared object file: No such file or directory), ./sysvshm.so.so (./sysvshm.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'tokenizer.so' (tried: ./tokenizer.so (./tokenizer.so: cannot open shared object file: No such file or directory), ./tokenizer.so.so (./tokenizer.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: ./xmlreader.so (./xmlreader.so: cannot open shared object file: No such file or directory), ./xmlreader.so.so (./xmlreader.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlwriter.so' (tried: ./xmlwriter.so (./xmlwriter.so: cannot open shared object file: No such file or directory), ./xmlwriter.so.so (./xmlwriter.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so' (tried: ./xsl.so (./xsl.so: cannot open shared object file: No such file or directory), ./xsl.so.so (./xsl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: ./zip.so (./zip.so: cannot open shared object file: No such file or directory), ./zip.so.so (./zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Installer verified PHP Warning: Failed loading Zend extension 'opcache.so' (tried: ./opcache.so (./opcache.so: cannot open shared object file: No such file or directory), ./opcache.so.so (./opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: ./curl (./curl: cannot open shared object file: No such file or directory), ./curl.so (./curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mysqlnd.so' (tried: ./mysqlnd.so (./mysqlnd.so: cannot open shared object file: No such file or directory), ./mysqlnd.so.so (./mysqlnd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo.so' (tried: ./pdo.so (./pdo.so: cannot open shared object file: No such file or directory), ./pdo.so.so (./pdo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: ./xml.so (./xml.so: cannot open shared object file: No such file or directory), ./xml.so.so (./xml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'calendar.so' (tried: ./calendar.so (./calendar.so: cannot open shared object file: No such file or directory), ./calendar.so.so (./calendar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ctype.so' (tried: ./ctype.so (./ctype.so: cannot open shared object file: No such file or directory), ./ctype.so.so (./ctype.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: ./curl.so (./curl.so: cannot open shared object file: No such file or directory), ./curl.so.so (./curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: ./dom.so (./dom.so: cannot open shared object file: No such file or directory), ./dom.so.so (./dom.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'exif.so' (tried: ./exif.so (./exif.so: cannot open shared object file: No such file or directory), ./exif.so.so (./exif.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ffi.so' (tried: ./ffi.so (./ffi.so: cannot open shared object file: No such file or directory), ./ffi.so.so (./ffi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo.so' (tried: ./fileinfo.so (./fileinfo.so: cannot open shared object file: No such file or directory), ./fileinfo.so.so (./fileinfo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'ftp.so' (tried: ./ftp.so (./ftp.so: cannot open shared object file: No such file or directory), ./ftp.so.so (./ftp.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: ./gd.so (./gd.so: cannot open shared object file: No such file or directory), ./gd.so.so (./gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gettext.so' (tried: ./gettext.so (./gettext.so: cannot open shared object file: No such file or directory), ./gettext.so.so (./gettext.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'iconv.so' (tried: ./iconv.so (./iconv.so: cannot open shared object file: No such file or directory), ./iconv.so.so (./iconv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: ./mbstring.so (./mbstring.so: cannot open shared object file: No such file or directory), ./mbstring.so.so (./mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: ./mysqli.so (./mysqli.so: cannot open shared object file: No such file or directory), ./mysqli.so.so (./mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: ./pdo_mysql.so (./pdo_mysql.so: cannot open shared object file: No such file or directory), ./pdo_mysql.so.so (./pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'phar.so' (tried: ./phar.so (./phar.so: cannot open shared object file: No such file or directory), ./phar.so.so (./phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'posix.so' (tried: ./posix.so (./posix.so: cannot open shared object file: No such file or directory), ./posix.so.so (./posix.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'readline.so' (tried: ./readline.so (./readline.so: cannot open shared object file: No such file or directory), ./readline.so.so (./readline.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'shmop.so' (tried: ./shmop.so (./shmop.so: cannot open shared object file: No such file or directory), ./shmop.so.so (./shmop.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: ./simplexml.so (./simplexml.so: cannot open shared object file: No such file or directory), ./simplexml.so.so (./simplexml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sockets.so' (tried: ./sockets.so (./sockets.so: cannot open shared object file: No such file or directory), ./sockets.so.so (./sockets.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvmsg.so' (tried: ./sysvmsg.so (./sysvmsg.so: cannot open shared object file: No such file or directory), ./sysvmsg.so.so (./sysvmsg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvsem.so' (tried: ./sysvsem.so (./sysvsem.so: cannot open shared object file: No such file or directory), ./sysvsem.so.so (./sysvsem.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvshm.so' (tried: ./sysvshm.so (./sysvshm.so: cannot open shared object file: No such file or directory), ./sysvshm.so.so (./sysvshm.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'tokenizer.so' (tried: ./tokenizer.so (./tokenizer.so: cannot open shared object file: No such file or directory), ./tokenizer.so.so (./tokenizer.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: ./xmlreader.so (./xmlreader.so: cannot open shared object file: No such file or directory), ./xmlreader.so.so (./xmlreader.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlwriter.so' (tried: ./xmlwriter.so (./xmlwriter.so: cannot open shared object file: No such file or directory), ./xmlwriter.so.so (./xmlwriter.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so' (tried: ./xsl.so (./xsl.so: cannot open shared object file: No such file or directory), ./xsl.so.so (./xsl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'zip.so' (tried: ./zip.so (./zip.so: cannot open shared object file: No such file or directory), ./zip.so.so (./zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again: The phar extension is missing. Install it or recompile php without --disable-phar The iconv OR mbstring extension is required and both are missing. Install either of them or recompile php without --disable-iconv
composer를 명령어로 설치하려고 했는데, .so파일 관련해서 오류가 떴다.
즉, PHP 환경 구성 오류로 발생하는 문제이다.
이런 PHP 확장 모듈을 정상적으로 로드할 수 있어야, composer과 같은 라이브러리를 설치할 수 있는 것이다.
해결방법
시도 1. php 확장 모듈 새로 설치
sudo apt-get update
sudo apt-get install php-cli php-xml php-mbstring php-curl php-mysql php-zip php-gd php-intl php-soap php-json php-xmlrpc
Ubuntu 시스템에서는 다음과 같은 명령어를 사용하여 필요한 PHP 확장 모듈을 설치할 수 있다.
하지만, 나는 이 방법이 통하지 않았다
시도 2. PHP 구성 파일 확인
php.ini 파일에서 확장 모듈 경로가 정확히 설정되었는지 확인한다.
http://본인의 ip주소/info.php (웹경로) 로 들어가 보았더니 확장 모듈 경로도 잘 설정되어 있었다.
도대체 어디서 문제가 생긴것일까?
시도 3. 확장 모듈의 경로 확인
php -i | grep extension_dir
다음 코드를 작성하여 문제를 일으키는 확장모듈의 경로를 확인한다.
php.ini와 같은 설정 파일이 여러개 존재할 수 있다.
따라서, 내가 확인한 아파치의 php.ini가 아닌 다른 곳의 php.ini에서 extension_dir 설정이 상대 경로인 ./로 되어 있다.
이는 PHP가 현재 작업 디렉토리에서 확장 모듈을 찾도록 설정되어 있음을 의미한다.
이 설정은 확장 모듈이 존재하는 /usr/lib/php/20210902 (웹에서 찾은 경로)와 일치하지 않기 때문에 문제가 발생하고 있는 것이다.
따라서, 다른 곳의 php.ini가 어떤 경로에 위치해 있는지 찾아야 했다.
php --ini
다음 명령어를 입력하면, 이렇게 뜬다
Configuration File (php.ini) Path: /etc/php/8.1/cli
Loaded Configuration File: /etc/php/8.1/cli/php.ini
Scan for additional .ini files in: /etc/php/8.1/cli/conf.d
Additional .ini files parsed: /etc/php/8.1/cli/conf.d/10-mysqlnd.ini,
php.ini가 cli 폴더에도 존재한다.
/etc/php/8.1/cli/php.ini의 extension_dir 설정을 /etc/php/8.1/apache2/php.ini 와 같은 것으로 바꾸었다.
다시 composer를 설치하는 명령어를 입력하니, 잘 설치가 된다.
문제해결!
왜 이딴 문제가 생기는 걸까?
PHP에서 /etc/php/8.1/cli/php.ini와 /etc/php/8.1/apache2/php.ini 파일이 서로 다르게 설정되어 있는 이유는 각 환경(명령줄 인터페이스와 웹 서버)에 최적화된 설정을 제공하기 위해서다. 각각의 설정 파일은 다음과 같은 용도로 사용된다:
CLI (cli/php.ini): 이 파일은 PHP를 커맨드 라인 인터페이스(CLI)로 실행할 때 사용된다. 예를 들어, 스크립트를 직접 터미널에서 실행하거나 배치 작업, 크론 작업을 처리할 때 해당 설정이 적용된다. CLI 환경에서는 웹 서버와 연관된 설정(예: 세션 타임아웃, 최대 실행 시간 등)이 필요 없거나 다르게 설정될 수 있다.
Apache (apache2/php.ini): 이 파일은 Apache 웹 서버를 통해 PHP가 실행될 때 사용된다. 웹 서버 환경은 CLI 환경과 다르게, HTTP 요청 및 응답을 처리하는 데 필요한 특정 설정이 필요하다. 예를 들어, 요청당 메모리 한도, 실행 시간 제한, 파일 업로드 설정 등이 이에 해당한다.
'php' 카테고리의 다른 글
t2micro 인스턴스 사용시, 동영상 압축 시간 오래걸리는 문제 (2) | 2024.04.18 |
---|---|
[php] 페이징 처리 - 댓글 더보기 (0) | 2023.12.16 |