{"id":297,"date":"2018-10-16T13:21:25","date_gmt":"2018-10-16T13:21:25","guid":{"rendered":"http:\/\/www.ewarecomputers.com\/?p=297"},"modified":"2018-10-16T13:58:16","modified_gmt":"2018-10-16T13:58:16","slug":"php-5-6-on-mint","status":"publish","type":"post","link":"http:\/\/www.ewarecomputers.com\/?p=297","title":{"rendered":"PHP 5.6 on Mint"},"content":{"rendered":"<p><PRE>#!\/bin\/bash<br \/>\n# init<br \/>\nfunction pause()<br \/>\n{<br \/>\n   read -p \u201c$*\u201d<br \/>\n}<\/p>\n<p>echo &#8220;&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br \/>\necho &#8221;    This script will INSTALL PHP 5.5.8 &#8211; ON MINT 18    &#8221;<br \/>\necho &#8221;  YOU WILL SEE MANY WARNINGS &#8211; BUT IT BUILDS &#038; WORKS.  &#8221;<br \/>\necho &#8221;    WITHOUT EDITS THIS WILL REMOVE HTDOCS AND CONF     &#8221;<br \/>\necho &#8221;         DIRECTORIES &#8211; EDIT AS DESIRED.                &#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br \/>\necho &#8220;&#8221;<br \/>\nread -p &#8220;Press ANY KEY TO CONTINUE&#8230;&#8230;&#8230;&#8230;&#8230;..&#8221;<br \/>\necho &#8220;&#8221;<br \/>\n#cp -R php.ini \/usr\/local\/src<br \/>\ncp LINK* \/usr\/local\/src<br \/>\ncp phpmyadmin.tar \/usr\/local\/src<\/p>\n<p>cp memcached.conf \/usr\/local\/src<br \/>\ncp php.ini.5.6 \/usr\/local\/src<br \/>\ncp htdocs.tar \/usr\/local\/src<br \/>\ncp httpd.conf \/usr\/local\/src<br \/>\ncp php-5.6.25.tar.gz \/usr\/local\/src<br \/>\ncp launch_2018.tar \/usr\/local\/src<br \/>\ncp conf_for_eware_needs_cert.tar  \/usr\/local\/src<\/p>\n<p>cd \/usr\/local\/src\/<br \/>\ntar zxvf php-5.6.25.tar.gz<br \/>\necho &#8220;&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br \/>\necho &#8221; For some reason, at this point, I had to reinstall  &#8221;<br \/>\necho &#8221;   libmcrypt-dev&#8230;..so we&#8217;ll do that first, then    &#8221;<br \/>\necho &#8221;          continue with the PHP build.               &#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br \/>\necho &#8220;&#8221;<br \/>\nread -p &#8220;Continue&#8230;&#8230;&#8230;&#8230;&#8221;<br \/>\necho &#8220;&#8221;<br \/>\napt-get install &#8211;reinstall libmcrypt-dev<\/p>\n<p>apt-get install libmariadbd-dev<\/p>\n<p>cd php-5.6.25<\/p>\n<p>make clean<\/p>\n<p>.\/buildconf &#8211;force<\/p>\n<p>.\/configure  \\<br \/>\n&#8211;with-apxs2=\/usr\/local\/apache2\/bin\/apxs \\<br \/>\n&#8211;with-config-file-scan-dir=\/etc\/php5 \\<br \/>\n&#8211;with-config-file-path=\/usr\/local\/lib \\<br \/>\n&#8211;disable-debug \\<br \/>\n&#8211;enable-ftp \\<br \/>\n&#8211;enable-inline-optimization \\<br \/>\n&#8211;enable-mbstring \\<br \/>\n&#8211;enable-sockets \\<br \/>\n&#8211;enable-wddx=shared \\<br \/>\n&#8211;enable-ftp \\<br \/>\n&#8211;enable-exif \\<br \/>\n&#8211;enable-calendar \\<br \/>\n&#8211;enable-sysvsem \\<br \/>\n&#8211;enable-sysvshm \\<br \/>\n&#8211;enable-sysvmsg \\<br \/>\n&#8211;enable-bcmath \\<br \/>\n&#8211;enable-tokenizer \\<br \/>\n&#8211;with-bz2 \\<br \/>\n&#8211;enable-ctype \\<br \/>\n&#8211;with-iconv \\<br \/>\n&#8211;with-gettext \\<br \/>\n&#8211;enable-shmop \\<br \/>\n&#8211;enable-wddx \\<br \/>\n&#8211;enable-intl \\<br \/>\n&#8211;with-imap-ssl \\<br \/>\n&#8211;enable-soap \\<br \/>\n&#8211;with-gettext \\<br \/>\n&#8211;with-libxml-dir=\/opt \\<br \/>\n&#8211;with-mysql \\<br \/>\n&#8211;with-pdo-mysql \\<br \/>\n&#8211;with-pdo-sqlite \\<br \/>\n&#8211;with-mysqli=mysqlnd \\<br \/>\n&#8211;with-regex=system \\<br \/>\n&#8211;with-openssl \\<br \/>\n&#8211;with-freetype-dir=\/usr \\<br \/>\n&#8211;with-jpeg-dir=\/usr\/include\/jpeg \\<br \/>\n&#8211;with-gd \\<br \/>\n&#8211;with-zlib-dir=\/usr \\<br \/>\n&#8211;with-mcrypt=\/usr\/local\/bin \\<br \/>\n&#8211;enable-opcache \\<br \/>\n&#8211;enable-embedded-mysqli \\<br \/>\n&#8211;with-curl \\<br \/>\n&#8211;with-recode=\/usr\/include \\<br \/>\n&#8211;with-pear=\/usr\/local\/php5\/lib<\/p>\n<p>echo &#8220;&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br \/>\necho &#8221;    Add the following to Makefile EXTRA_LIBS:          &#8221;<br \/>\necho &#8221;        -llber (BEFORE THE LAST ENTRY!)                &#8221;<br \/>\necho &#8221; In other words, the end of the line should be this:   &#8221;<br \/>\necho &#8221;              -llber -lcrypt                           &#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br \/>\necho &#8220;&#8221;<br \/>\nread -p &#8220;Open Makefile and edit &#8211; PRESS ENTER&#8230;&#8221;<br \/>\necho &#8220;&#8221;<br \/>\nnano \/usr\/local\/src\/php-5.6.25\/Makefile<\/p>\n<p>make <\/p>\n<p>make install<\/p>\n<p>echo &#8220;&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;<br \/>\necho &#8221; Install PHP libs&#8230;                   &#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;<br \/>\necho &#8220;&#8221;<br \/>\nread -p &#8220;Continue&#8230;&#8230;&#8230;&#8230;&#8230;.&#8221;<br \/>\necho &#8220;&#8221;<\/p>\n<p>sudo libtool &#8211;finish \/usr\/local\/src\/php-5.6.25\/libs<\/p>\n<p>echo &#8220;&#8221;<br \/>\necho &#8220;&#8221;<br \/>\ncp \/usr\/local\/src\/php.ini.5.6 \/usr\/local\/lib\/<br \/>\ncp \/usr\/local\/src\/memcached.conf \/etc\/memcached.conf<\/p>\n<p>service memcached restart<\/p>\n<p>cp \/usr\/local\/src\/htdocs.tar \/usr\/local\/apache2<br \/>\ncp \/usr\/local\/src\/conf_for_eware_needs_cert.tar \/usr\/local\/apache2<br \/>\ncp \/usr\/local\/src\/launch_2018.tar \/usr\/local\/apache2<\/p>\n<p>cd \/usr\/local\/apache2<\/p>\n<p>rm -rf conf<br \/>\ntar xvf conf_for_eware_needs_cert.tar > \/dev\/null<br \/>\nrm -rf htdocs<br \/>\ntar xvf htdocs.tar<br \/>\ntar xvf launch_2018.tar<\/p>\n<p>chmod -R 777 launch<br \/>\nchmod -R 777 conf<\/p>\n<p>cd htdocs<\/p>\n<p>mkdir secure<br \/>\nchmod -R 777 secure<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/bash # init function pause() { read -p \u201c$*\u201d } echo &#8220;&#8221; echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221; echo &#8221; This script will INSTALL PHP 5.5.8 &#8211; ON MINT 18 &#8221; echo &#8221; YOU &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-297","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=\/wp\/v2\/posts\/297"}],"collection":[{"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297"}],"version-history":[{"count":3,"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":300,"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions\/300"}],"wp:attachment":[{"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ewarecomputers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}