{"id":1040,"date":"2013-12-18T12:57:20","date_gmt":"2013-12-18T12:57:20","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=1040"},"modified":"2014-01-01T20:55:04","modified_gmt":"2014-01-01T20:55:04","slug":"installing-php-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1040","title":{"rendered":"Installing PHP5 on Ubuntu Server"},"content":{"rendered":"<p>When installing PHP 5 from source I ran into the following problems and solutions:<\/p>\n<p>Problem:<br \/>\nconfigure: error: xml2-config not found. Please check your libxml2 installation.<br \/>\nSolution:<br \/>\nsudo apt-get install libxml2-dev<\/p>\n<p>Problem:<br \/>\nconfigure: error: Cannot find libz<br \/>\nSolution:<br \/>\nsudo apt-get install zlib1g-dev<\/p>\n<p>Problem:<br \/>\nconfigure: error: Please reinstall the libcurl distribution<br \/>\nSolution:<br \/>\nsudo apt-get install libcurl4-gnutls-dev<\/p>\n<p>Problem:<br \/>\nconfigure: error: DBA: Could not find necessary header file(s).<br \/>\nSolution:<br \/>\nsudo apt-get install libgdbm-dev <\/p>\n<p>Problem:<br \/>\nconfigure: error: png.h not found.<br \/>\nSolution:<br \/>\nsudo apt-get install libpng-dev<\/p>\n<p>Problem:<br \/>\nconfigure: error: Cannot find MySQL header files under yes.<br \/>\nNote that the MySQL client library is not bundled anymore!<br \/>\nSolution:<br \/>\nsudo apt-get install libmysqlclient15-dev<\/p>\n<p>During make:<br \/>\n\/usr\/bin\/ld: \/usr\/local\/ssl\/lib\/libcrypto.a(cversion.o): relocation R_X86_64_32 against `.rodata.str1.1&#8242; can not be used when making a shared object; recompile with -fPIC<br \/>\n\/usr\/local\/ssl\/lib\/libcrypto.a: could not read symbols: Bad value<br \/>\ncollect2: ld returned 1 exit status<br \/>\nmake: *** [libphp5.la] Error 1<\/p>\n<p>Solution: Go back and reinstall openssl with .\/config enable-shared as per <a href=\"http:\/\/stackoverflow.com\/questions\/18098258\/64-bit-linux-ubuntu-and-openssl-issue-could-not-read-symbols-bad-value\">this answer<\/a> and not sure if it mattered but i also did &#8216;apt-get install curl&#8217; at this point.<\/p>\n<p>Next Problem:<br \/>\n\/usr\/bin\/ld: cannot find -lltdl<br \/>\ncollect2: ld returned 1 exit status<br \/>\nmake: *** [libphp5.la] Error 1<br \/>\nSolution:<br \/>\nas per <a href=\"http:\/\/brightdadson.blogspot.com\/2012\/02\/usrbinld-cannot-find-lltdl-collect2-ld.html\">this page<\/a> we try this:<br \/>\nsudo apt-get install libtool<br \/>\nsudo apt-get install libdbd-mysql<\/p>\n<p>and we&#8217;re up and running with our chosen options!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When installing PHP 5 from source I ran into the following problems and solutions: Problem: configure: error: xml2-config not found. Please check your libxml2 installation. Solution: sudo apt-get install libxml2-dev Problem: configure: error: Cannot find libz Solution: sudo apt-get install &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1040\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1040"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1040"}],"version-history":[{"count":8,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1040\/revisions"}],"predecessor-version":[{"id":1069,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1040\/revisions\/1069"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}