And.. Just to make sure, PHP 7.0.7 is fine? I assume that's the latest stable.
@eva2000 Gracefully shutting down php-fpm . done Starting php-fpm [13-Jun-2016 20:48:02] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/geoip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0 done fresh install, 123.09beta01 on non-ovh kernel Pretty sure I used geoip on php7 before, but maybe not on exactly 7.0.7? Not sure, i also believe same error occured on 5.6
if you're testing PHP 7, on restarting PHP-FPM you will get some PHP warnings that some PHP extensions are unable to load as PHP 7 doesn't support them. Find the paths to the *.ini files Code (Text): php --ini 2>/devnull Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: /usr/local/lib/php.ini Scan for additional .ini files in: /etc/centminmod/php.d Additional .ini files parsed: /etc/centminmod/php.d/curlcainfo.ini, /etc/centminmod/php.d/custom_php.ini, /etc/centminmod/php.d/geoip.ini, /etc/centminmod/php.d/igbinary.ini, /etc/centminmod/php.d/imagick.ini, /etc/centminmod/php.d/memcache.ini, /etc/centminmod/php.d/memcached.ini, /etc/centminmod/php.d/zendopcache.ini delete ones that are unable to load Code (Text): rm -rf /etc/centminmod/php.d/geoip.ini then restart PHP-FPM again then try centmin.sh menu option 5 and recompile php 7.0.7 and then check the php upgrade log Every centmin.sh menu option has a full server log created with time stamped file name at /root/centminlogs. You can check that specific error log for clues or copy and paste log contents and post to pastebin.com or gist.github.com for sharing. Use this command to list all logs in /root/centminlogs in date descending order so most recent logs are at bottom Code (Text): ls -lAhrt /root/centminlogs For example Code (Text): ls -lAhrt /root/centminlogs total 16M -rw-r--r-- 1 root root 9.8K Sep 18 13:47 centminmod_1.2.3-eva2000.08_180915-094703_yuminstall_centos6.log -rw-r--r-- 1 root root 52K Sep 18 13:48 centminmod_yumtimes_180915-094703.log -rw-r--r-- 1 root root 37 Sep 18 13:48 centminmod_profiletimes_180915-094703.log -rw-r--r-- 1 root root 234K Sep 18 13:48 centminmod_downloadtimes_180915-094703.log -rw-r--r-- 1 root root 199 Sep 18 13:48 securedtmp.log -rw-r--r-- 1 root root 44 Sep 18 13:50 centminmod_libresslinstalltime_180915-094703.log -rw-r--r-- 1 root root 1.2K Sep 18 13:50 gcc_native.log -rw-r--r-- 1 root root 939K Sep 18 13:52 centminmod_ngxinstalltime_180915-094703.log -rw-r--r-- 1 root root 58 Sep 18 13:55 centminmod_phpinstalltime_180915-094703.log -rw-r--r-- 1 root root 25K Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_yum-log.log -rw-r--r-- 1 root root 20 Sep 18 13:59 install.utc.time.log -rw-r--r-- 1 root root 2.6M Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_install.log -rw-r--r-- 1 root root 49 Sep 18 13:59 firstyum_installtime_180915-094252.log -rw-r--r-- 1 root root 12K Sep 18 14:02 centminmod_1.2.3-eva2000.08_180915-140110_nginx_addvhost.log -rw-r--r-- 1 root root 1.8M Sep 19 05:58 centminmod_1.2.3-eva2000.08_190915-055517_php_upgrade.log -rw-r--r-- 1 root root 1.8M Sep 19 06:22 centminmod_1.2.3-eva2000.08_190915-061910_php_upgrade.log -rw-r--r-- 1 root root 939K Sep 19 06:28 centminmod_1.2.3-eva2000.08_190915-062728_php_upgrade.log -rw-r--r-- 1 root root 1.8M Sep 19 06:32 centminmod_1.2.3-eva2000.08_190915-062943_php_upgrade.log -rw-r--r-- 1 root root 1.8M Sep 19 06:53 centminmod_1.2.3-eva2000.08_190915-065026_php_upgrade.log -rw-r--r-- 1 root root 1.8M Sep 19 07:14 centminmod_1.2.3-eva2000.08_190915-065820_php_upgrade.log -rw-r--r-- 1 root root 381 Sep 19 07:15 zendopcache_passfile.txt -rw-r--r-- 1 root root 23K Sep 19 07:15 centminmod_1.2.3-eva2000.08_190915-065820_zendopcache_install_submenu.log -rw-r--r-- 1 root root 1.5K Sep 19 08:20 centminmod_1.2.3-eva2000.08_190915-081959_git_envsetup.log -rw-r--r-- 1 root root 3.6K Sep 19 08:22 centminmod_1.2.3-eva2000.08_190915-082216_git_updatenew_branch.log -rw-r--r-- 1 root root 1.8M Sep 19 08:26 centminmod_1.2.3-eva2000.09_190915-082435_php_upgrade.log -rw-r--r-- 1 root root 7.8K Sep 20 17:17 centminmod_200915-171650_nginx_addvhost_nv.log -rw-r--r-- 1 root root 8.7K Sep 20 19:40 centminmod_1.2.3-eva2000.09_200915-193955_nginx_addvhost.log -rw-r--r-- 1 root root 9.3K Sep 20 20:04 centminmod_200915-200339_nginx_addvhost_nv.log
thanks, so by that i assume geoip in php does not work on php 7? i am pretty sure it did before? i used to run it on php 7.. or can this be broken in 7.0.7 and maybe work in 7.0.0 lol
yeah it should work with php 7 unless php 7.0.7 changed something - only php upgrade log will tell you what's up
Code: [root@main-ovh centminlogs]# php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/geoip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 7.0.6 (cli) (built: Jun 13 2016 21:11:22) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies it worked completely fine in php 7.0.6 before, unless you updated the beta branch and somehow broke it ? lol
i only see install.utc.log curl: option -s --max-time 5 --connect-timeout 5: is unknown curl: try 'curl --help' or 'curl --manual' for more information Code: [root@main-ovh centminlogs]# ls -lAhrt /root/centminlogs total 11M -rw-r--r-- 1 root root 247 Jun 13 19:50 centminmod_1.2.3-eva2000.08_130616-215009_git_updatecur_branch.log -rw-r--r-- 1 root root 1.6K Jun 13 19:58 centminmod_1.2.3-eva2000.08_130616-215009_git_updatenew_branch.log -rw-r--r-- 1 root root 17K Jun 13 20:21 centminmod_1.2.3-eva2000.09.001_130616-221739_yuminstall_centos7.log -rw-r--r-- 1 root root 108K Jun 13 20:21 centminmod_yumtimes_130616-221739.log -rw-r--r-- 1 root root 38 Jun 13 20:21 centminmod_profiletimes_130616-221739.log -rw-r--r-- 1 root root 275 Jun 13 20:21 securedtmp.log -rw-r--r-- 1 root root 45 Jun 13 20:22 centminmod_libresslinstalltime_130616-221739.log -rw-r--r-- 1 root root 1.7K Jun 13 20:22 nginx-configure-130616-221739.log -rw-r--r-- 1 root root 613K Jun 13 20:23 centminmod_ngxinstalltime_130616-221739.log -rw-r--r-- 1 root root 58 Jun 13 20:26 centminmod_phpinstalltime_130616-221739.log -rw-r--r-- 1 root root 388 Jun 13 20:26 zendopcache_passfile.txt -rw-r--r-- 1 root root 22K Jun 13 20:28 centminmod_1.2.3-eva2000.09.001_130616-221739_yum-log.log -rw-r--r-- 1 root root 125 Jun 13 20:28 install.utc.time.log -rw-r--r-- 1 root root 2.4M Jun 13 20:28 centminmod_1.2.3-eva2000.09.001_130616-221739_install.log -rw-r--r-- 1 root root 2.2K Jun 13 20:36 centminmod_1.2.3-eva2000.09.001_130616-203527_yuminstall_centos7.log -rw-r--r-- 1 root root 29K Jun 13 20:36 centminmod_yumtimes_130616-203527.log -rw-r--r-- 1 root root 37 Jun 13 20:36 centminmod_profiletimes_130616-203527.log -rw-r--r-- 1 root root 45 Jun 13 20:36 centminmod_libresslinstalltime_130616-203527.log -rw-r--r-- 1 root root 1.8K Jun 13 20:36 gcc_native.log -rw-r--r-- 1 root root 1.7K Jun 13 20:36 nginx-configure-130616-203527.log -rw-r--r-- 1 root root 1.8M Jun 13 20:40 centminmod_1.2.3-eva2000.09.001_130616-203527_update_all.log -rw-r--r-- 1 root root 1.2M Jun 13 20:42 centminmod_1.2.3-eva2000.09.001_130616-203527_php_upgrade.log -rw-r--r-- 1 root root 1.6M Jun 13 20:47 centminmod_1.2.3-eva2000.09.001_130616-204309_php_upgrade.log -rw-r--r-- 1 root root 972 Jun 13 20:49 centminmod_1.2.3-eva2000.09.001_130616-204912_nginx_upgrade.log -rw-r--r-- 1 root root 2.2K Jun 13 21:04 centminmod_1.2.3-eva2000.09.001_130616-210350_yuminstall_centos7.log -rw-r--r-- 1 root root 29K Jun 13 21:04 centminmod_yumtimes_130616-210350.log -rw-r--r-- 1 root root 37 Jun 13 21:04 centminmod_profiletimes_130616-210350.log -rw-r--r-- 1 root root 1.2M Jun 13 21:06 centminmod_1.2.3-eva2000.09.001_130616-210350_php_upgrade.log -rw-r--r-- 1 root root 1.9K Jun 13 21:09 gcc_php_native.log -rw-r--r-- 1 root root 1.3M Jun 13 21:12 centminmod_1.2.3-eva2000.09.001_130616-210827_php_upgrade.log
from your full initial install log, problem found seems geoip svn repository has changed and/or has connectivity issues from/to your server Code (Text): B[m************************************************* geoipphpext compiling geoip PHP extension... svn: E175002: REPORT of '/repository/!svn/vcc/default': could not connect to server (http://svn.php.net) Cannot find config.m4. Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module inc/geoip.inc: line 33: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target `install'. Stop. but i have no problems Code (Text): php -v PHP 7.0.7 (cli) (built: Jun 13 2016 21:23:47) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies Code (Text): php --ri geoip geoip geoip support => enabled geoip extension version => 1.1.1-dev geoip library version => 1005000 Directive => Local Value => Master Value geoip.custom_directory => /usr/share/GeoIP => /usr/share/GeoIP specific part of my install log with CentOS 7.2 + PHP 7.0.7 + geoip Code (Text): geoipphpext compiling geoip PHP extension... A geoip/ChangeLog A geoip/package.xml A geoip/README A geoip/config.w32 A geoip/geoip.def A geoip/php_geoip.h A geoip/LICENSE A geoip/tests A geoip/tests/001.phpt A geoip/tests/010.phpt A geoip/tests/002.phpt A geoip/tests/011.phpt A geoip/tests/003.phpt A geoip/tests/004.phpt A geoip/tests/013.phpt A geoip/tests/005.phpt A geoip/tests/014.phpt A geoip/tests/006.phpt A geoip/tests/015.phpt A geoip/tests/007.phpt A geoip/tests/016.phpt A geoip/tests/008.phpt A geoip/tests/017.phpt A geoip/tests/009.phpt A geoip/tests/018.phpt A geoip/config.m4 A geoip/geoip.c U geoip Checked out revision 339342. Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking how to run the C preprocessor... /usr/bin/gcc -E checking for icc... no checking for suncc... no checking whether /usr/bin/gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20151012 checking for PHP installed headers prefix... /usr/local/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.14.3 (ok) checking for gawk... gawk checking for geoip support... yes, shared checking for geoip files in default path... found in /usr checking for GeoIP_open in -lGeoIP... yes checking for GeoIP_setup_custom_directory in -lGeoIP... yes checking for GeoIP_set_charset in -lGeoIP... yes checking for GeoIP_continent_by_id in -lGeoIP... yes checking for GeoIP_addr_to_num in -lGeoIP... yes checking whether GEOIP_NETSPEED_EDITION_REV1 is declared... yes checking whether GEOIP_ACCURACYRADIUS_EDITION is declared... yes checking for LGPL compatible GeoIP libs... expr: non-integer argument cannot detect checking library features to determine version (not acurate)... found 1005000 checking for ld used by /usr/bin/gcc... /bin/ld checking if the linker (/bin/ld) is GNU ld... yes checking for /bin/ld option to reload object files... -r checking for BSD-compatible nm... /bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /bin/nm -B output from /usr/bin/gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no checking for /usr/bin/gcc option to produce PIC... -fPIC checking if /usr/bin/gcc PIC flag -fPIC works... yes checking if /usr/bin/gcc static flag -static works... no checking if /usr/bin/gcc supports -c -o file.o... yes checking whether the /usr/bin/gcc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool checking whether the /usr/bin/g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes checking for /usr/bin/g++ option to produce PIC... checking if /usr/bin/g++ static flag works... yes checking if /usr/bin/g++ supports -c -o file.o... yes checking whether the /usr/bin/g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so (cached) (cached) checking how to hardcode library paths into programs... unsupported configure: creating ./config.status config.status: creating config.h /bin/sh /svr-setup/geoip/libtool --mode=compile /usr/bin/gcc -I. -I/svr-setup/geoip -DPHP_ATOM_INC -I/svr-setup/geoip/include -I/svr-setup/geoip/main -I/svr-setup/geoip -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /svr-setup/geoip/geoip.c -o geoip.lo mkdir .libs /usr/bin/gcc -I. -I/svr-setup/geoip -DPHP_ATOM_INC -I/svr-setup/geoip/include -I/svr-setup/geoip/main -I/svr-setup/geoip -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /svr-setup/geoip/geoip.c -fPIC -DPIC -o .libs/geoip.o /bin/sh /svr-setup/geoip/libtool --mode=link /usr/bin/gcc -DPHP_ATOM_INC -I/svr-setup/geoip/include -I/svr-setup/geoip/main -I/svr-setup/geoip -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o geoip.la -export-dynamic -avoid-version -prefer-pic -module -rpath /svr-setup/geoip/modules geoip.lo -lGeoIP /usr/bin/gcc -shared .libs/geoip.o -lGeoIP -Wl,-soname -Wl,geoip.so -o .libs/geoip.so creating geoip.la (cd .libs && rm -f geoip.la && ln -s ../geoip.la geoip.la) /bin/sh /svr-setup/geoip/libtool --mode=install cp ./geoip.la /svr-setup/geoip/modules cp ./.libs/geoip.so /svr-setup/geoip/modules/geoip.so cp ./.libs/geoip.lai /svr-setup/geoip/modules/geoip.la PATH="$PATH:/sbin" ldconfig -n /svr-setup/geoip/modules ---------------------------------------------------------------------- Libraries have been installed in: /svr-setup/geoip/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20151012/
edited previous reply of mine as it works for me, could be connectivity issues with your server what do you get for command Code (Text): curl -I http://svn.php.net/repository/pecl/geoip/trunk/ example output Code (Text): curl -I http://svn.php.net/repository/pecl/geoip/trunk/ HTTP/1.1 200 OK Date: Mon, 13 Jun 2016 21:33:20 GMT Server: Apache/2.2.22 (Debian) Last-Modified: Wed, 12 Aug 2015 12:02:28 GMT ETag: W/"337409//pecl/geoip/trunk" Accept-Ranges: bytes Vary: Accept-Encoding Connection: close Content-Type: text/html; charset=UTF-8
Code: [root@main-ovh ~]# curl -I http://svn.php.net/repository/pecl/geoip/trunk/ HTTP/1.1 200 OK Date: Mon, 13 Jun 2016 21:34:44 GMT Server: Apache/2.2.22 (Debian) Last-Modified: Wed, 12 Aug 2015 12:02:28 GMT ETag: W/"337409//pecl/geoip/trunk" Accept-Ranges: bytes Vary: Accept-Encoding Connection: close Content-Type: text/html; charset=UTF-8
what about for these commands which is basically what centmin does to get trunk version's source files for geoip module for php Code (Text): cd /usr/local/src/centminmod rm -rf geoip svn checkout http://svn.php.net/repository/pecl/geoip/trunk geoip cd geoip /usr/local/bin/phpize ./configure --with-php-config=/usr/local/bin/php-config make -j2 make install echo "extension=geoip.so" > /etc/centminmod/php.d/geoip.ini echo "geoip.custom_directory=/usr/share/GeoIP" >> /etc/centminmod/php.d/geoip.ini fpmrestart php --ri geoip
Code: [root@main-ovh geoip]# echo "extension=geoip.so" > /etc/centminmod/php.d/geoip.ini [root@main-ovh geoip]# echo "geoip.custom_directory=/usr/share/GeoIP" >> /etc/centminmod/php.d/geoip.ini [root@main-ovh geoip]# fpmrestart Gracefully shutting down php-fpm done Starting php-fpm done [root@main-ovh geoip]# php --ri geoip geoip geoip support => enabled geoip extension version => 1.1.1-dev geoip library version => 1005000 Directive => Local Value => Master Value geoip.custom_directory => /usr/share/GeoIP => /usr/share/GeoIP Good to go, eh?
yeah installed fine so looks like you had a temporary connectivity issue specific to your server and/or svn repo for geoip