[SOLVED] Upgrading PHP in slackware? Possible? how?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In the end you are right. I wouldnt mind to follow some kind of course or extensive tutorial to have the chance to learn how a server really work. Right now Im more or less fiddling with it, if I had to be paid to do it, it would have to be a lot more in order!
Now let me pick your brains once more... I need to get better with this php & apache stuff, damn it! ..
Now that my server has upgraded to the latest https & php, my sites are no longer working.
Plain simple,
zoneminder displays a blank page
Horde no longer displays Java interface (now loads with standard basic interface)
knowledgetree shows a list of errors at the login page but once logged in, only displays the same errors in bold on a white page, nothing else. These errors were present before the system upgrades but were not shown on the web pages, only in php's logs.
rssLounge (a rss aggregrator) displays a very basic text login page
the list goes on and on..
At first I thought the new config files (httpd.conf & vhost-httpd.conf or php.ini) caused the problems, but looking at the httpd & vhost config files line by line, they are the same. Now php.ini has a lot of different stuff, but as AlienBob suggested here on this thread, I tried to merge the changes I had made to the old php.ini with the new php.ini file.
Some logs if you guys can see the cause of my problems. I think the system is severely broken.
I also remember after the package upgrades, I had these php extension errors. Trying to fix them, I have uninstalled the offending extensions, and re-downloaded/recompiled them using
Code:
pecl uninstall extension
and
Code:
pecl install extension
Now the output of php -v looks like:
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/fileinfo.so' - /usr/lib/php/extensions/fileinfo.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 '/usr/lib/php/extensions/xmlrpc.so' - /usr/lib/php/extensions/xmlrpc.so: undefined symbol: second_arg_force_ref in Unknown on line 0
PHP 5.3.26 (cli) (built: Jun 8 2013 20:10:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
As you can see most of the errors are gone, but the only extensions I couldnt reinstall are fileinfo.so & xmlrpc.so.
Code:
root@lhost2:~# pecl install fileinfo
WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources"
downloading Fileinfo-1.0.4.tar ...
Starting to download Fileinfo-1.0.4.tar (Unknown size)
........done: 24,064 bytes
3 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
building in /tmp/pear/temp/pear-build-rootni2wNW/Fileinfo-1.0.4
running: /tmp/pear/temp/pearw5z0c0/configure
sh: /tmp/pear/temp/pearw5z0c0/configure: No such file or directory
ERROR: `/tmp/pear/temp/pearw5z0c0/configure' failed
Now some logs...
php.log
Code:
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/documentmanagement/documentutil.inc.php on line 248
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/i18n/i18nregistry.inc.php on line 49
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/browse/columnregistry.inc.php on line 48
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 401
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 446
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 448
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 525
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktwebservice/KTDownloadManager.inc.php on line 163
[25-Jun-2013 07:03:18] PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/ktapi/KTAPIAcl.inc.php on line 65
[25-Jun-2013 07:03:18] PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/ktapi/KTAPIAcl.inc.php on line 85
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB.php on line 310
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB.php on line 384
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB.php on line 890
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB/common.php on line 958
[25-Jun-2013 07:03:18] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB/common.php on line 1150
[25-Jun-2013 07:03:49] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/imap.so' - libgssapi_krb5.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
[25-Jun-2013 07:03:49] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/validation/customerrorviewer.inc.php on line 44
[25-Jun-2013 07:03:50] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/validation/customerrorhandler.php on line 44
[25-Jun-2013 07:03:50] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/Config.php on line 79
[25-Jun-2013 07:03:50] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/Config.php on line 165
[25-Jun-2013 07:03:50] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/Config/Container.php on line 107
[25-Jun-2013 07:03:50] PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 99
[25-Jun-2013 07:03:50] PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 119
[25-Jun-2013 07:03:50] PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 151
[25-Jun-2013 07:03:50] PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 165
[25-Jun-2013 07:03:50] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/ktapi.inc.php on line 752
[25-Jun-2013 07:03:50] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/htdocs/knowledgetree/lib/validation/customerrorviewer.inc.php:44) in /var/www/htdocs/knowledgetree/ktapi/ktapi.inc.php on line 44
[25-Jun-2013 07:03:50] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/htdocs/knowledgetree/lib/validation/customerrorviewer.inc.php:44) in /var/www/htdocs/knowledgetree/ktapi/ktapi.inc.php on line 44
knowledgetree system log:
Code:
2013-06-24 | 19:26:57 | ERROR | 25764 | 26475 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25773 | 26487 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25773 | 26487 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25773 | 26488 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25773 | 26488 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25772 | 26474 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25772 | 26480 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25772 | 26481 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25772 | 26481 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25772 | 26482 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25774 | 26433 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25774 | 26434 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25774 | 26434 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25767 | 26486 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25767 | 26487 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25767 | 26487 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25762 | 26471 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25762 | 26492 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25773 | 26488 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25773 | 26523 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
2013-06-24 | 19:26:57 | ERROR | 25768 | 26512 | n/a | ktdms | default | _diagnose | diagnose: '' does not have extension 'Hook.inc.php'.
httpd log (the log is too long and has too much stuff in it...):
Code:
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 525
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktwebservice/KTDownloadManager.inc.php on line 163
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/ktapi/KTAPIAcl.inc.php on line 65
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/ktapi/KTAPIAcl.inc.php on line 85
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB.php on line 310
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB.php on line 384
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB.php on line 890
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB/common.php on line 958
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/DB/common.php on line 1150
[Tue Jun 25 06:45:27 2013] [error] [client 192.168.0.106] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/htdocs/knowledgetree/thirdparty/pear/DB.php:384) in /var/www/htdocs/knowledgetree/config/dmsDefaults.php on line 315
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 263
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 272
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 275
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 284
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 285
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 287
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 287
[Tue Jun 25 06:45:32 2013] [error] [client 192.168.0.106] PHP Fatal error: Class 'KTUtil' not found in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 294
[Tue Jun 25 06:45:45 2013] [notice] SIGHUP received. Attempting to restart
[Tue Jun 25 06:45:45 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 25 06:45:45 2013] [notice] Digest: done
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/fileinfo.so' - /usr/lib/php/extensions/fileinfo.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 '/usr/lib/php/extensions/xmlrpc.so' - /usr/lib/php/extensions/xmlrpc.so: undefined symbol: second_arg_force_ref in Unknown on line 0
[Tue Jun 25 06:45:46 2013] [notice] Apache/2.2.24 (Unix) DAV/2 mod_scgi/1.14 PHP/5.3.26 configured -- resuming normal operations
[Tue Jun 25 06:47:57 2013] [notice] SIGHUP received. Attempting to restart
[Tue Jun 25 06:47:57 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 25 06:47:57 2013] [notice] Digest: done
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/fileinfo.so' - /usr/lib/php/extensions/fileinfo.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 '/usr/lib/php/extensions/xmlrpc.so' - /usr/lib/php/extensions/xmlrpc.so: undefined symbol: second_arg_force_ref in Unknown on line 0
[Tue Jun 25 06:47:58 2013] [notice] Apache/2.2.24 (Unix) DAV/2 mod_scgi/1.14 PHP/5.3.26 configured -- resuming normal operations
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 263
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 272
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 275
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 284
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 285
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 287
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 287
[Tue Jun 25 06:48:01 2013] [error] [client 192.168.0.106] PHP Fatal error: Class 'KTUtil' not found in /var/www/htdocs/knowledgetree/setup/precheckup.php on line 294
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/validation/customerrorviewer.inc.php on line 44
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/validation/customerrorhandler.php on line 44
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/Config.php on line 79
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/Config.php on line 165
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/thirdparty/pear/Config/Container.php on line 107
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 99
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 119
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 151
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/www/htdocs/knowledgetree/search2/indexing/indexerCore.inc.php on line 165
[Tue Jun 25 06:48:03 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/ktapi.inc.php on line 752
[Tue Jun 25 06:48:04 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/documentmanagement/documentutil.inc.php on line 248
[Tue Jun 25 06:48:04 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/i18n/i18nregistry.inc.php on line 49
[Tue Jun 25 06:48:04 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/lib/browse/columnregistry.inc.php on line 48
[Tue Jun 25 06:48:04 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 401
[Tue Jun 25 06:48:04 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 446
[Tue Jun 25 06:48:04 2013] [error] [client 192.168.0.106] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/htdocs/knowledgetree/ktapi/KTAPISession.inc.php on line 448
OK I managed to install fileinfo properly (I think at least).
Because apparently Fileinfo is now integrated with php and no longer relies on pecl, I had to reinstall it manually by downloading the sources from pecl.php.net, compiling and installing it. Worked well but now php -v complains that:
Code:
PHP Warning: Module 'fileinfo' already loaded in Unknown on line 0
Not sure why the developers opted to integrate fileinfo with php if you can uninstall it with pecl but cant reinstall it with pecl...
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/mhash.so' - /usr/lib/php/extensions/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0
I am not sure how to reinstall this extension. I tried pecl, but it says
Code:
No releases available for package "pecl.php.net/mhash"
install failed
Ive checked pecl.php.net, this extension doesnt exist there. Where does it comes from??
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/xmlrpc.so' - /usr/lib/php/extensions/xmlrpc.so: undefined symbol: second_arg_force_ref in Unknown on line 0
Now this is definitely a problem. Knowledgetree complains during the setup wizard that this extension is missing. Again, pecl.php.net doesnt have this extension, only a xmlrpci package which I tried to install but it didnt work (compilation error).
And the final blow to the head. Knwoledgetree's wizard reports that:
Code:
Your version of PHP must be between 5.0 and 5.2 to run optimally. Versions that are 5.3 or higher are not recommended.
I may consider a full system restore to a known working state (thanks to my rsnapshot backups) or restart fresh WITHOUT knowledgetree.... I gotta get rid of this pest.
I know the feeling with those system, they are like a house of cards.
I think you will be happier with this solution and I'm glad you decided to stick with slackware.
As advice I suggest you for the future to keep updated and use sbopkg for extra software. In this way you will never mess up the system and it will be easier to mantain (since doing that is not your "core business").
That said good luck for the installation and configuration of your shiny new slackware system
Slackware forever buddy! I will NOT move to windowze thats for sure and I will strive to learn proper system admin so the mess I ended up with doesnt happen again!
You are a good person, I appreciate the feedback! Im sure the new machine will be snappier and faster than before.
While I am at it, let me ask about hardware: On this machine I ran mysql and several php services... Im using an old Athlon 64 X2 with just over 3GB of RAM... AFAIK, I never ran out of RAM but the system sometimes was pretty slow (updating SQL databases, doing file transfers, etc).
SHould I invest a bit and upgrade the hardware or would it be useless in my case?
You have to identify the bottleneck wich in your system is the hd imo. Thus an SSD might be the best upgrade on your system. This said there is a prominent new feature in the 3.9 kernel that we have: you can now use an ssd as cache for a rotating disk. I don't know how good this work and I suppose that manually putting all the data that you need to be fast is actually better in term of performance but I would give a try to this and if it doesn't satisfy you it should be easy do dismiss.
I'll post php and apache stuff here since the other thread relating to the same machine is more hardware related..
So I am trying to install the proper extensions for php.
I need to ask a few questions:
tidy
I need this extension for Horde webmail, and I tried to install it using "pecl install tidy" unfortunately it returned:
Code:
root@lhost2:~/Downloads/tidy-1.2# pecl install tidy
downloading tidy-1.2.tar ...
Starting to download tidy-1.2.tar (Unknown size)
.............done: 48,128 bytes
3 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
ERROR: `phpize' failed
Then I tried installing it manually by downloading the latest release from pech.php.net:
Code:
root@lhost2:~/Downloads/tidy-1.2# phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
root@lhost2:~/Downloads/tidy-1.2# ./configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -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
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/extensions
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for TIDY support... yes, shared
checking for ld used by cc... /usr/x86_64-slackware-linux/bin/ld
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/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 /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/x86_64-slackware-linux/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
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
root@lhost2:~/Downloads/tidy-1.2# make
/bin/sh /root/Downloads/tidy-1.2/libtool --mode=compile cc -I. -I/root/Downloads/tidy-1.2 -DPHP_ATOM_INC -I/root/Downloads/tidy-1.2/include -I/root/Downloads/tidy-1.2/main -I/root/Downloads/tidy-1.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/tidy -DHAVE_CONFIG_H -g -O2 -c /root/Downloads/tidy-1.2/tidy.c -o tidy.lo
mkdir .libs
cc -I. -I/root/Downloads/tidy-1.2 -DPHP_ATOM_INC -I/root/Downloads/tidy-1.2/include -I/root/Downloads/tidy-1.2/main -I/root/Downloads/tidy-1.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/tidy -DHAVE_CONFIG_H -g -O2 -c /root/Downloads/tidy-1.2/tidy.c -fPIC -DPIC -o .libs/tidy.o
/root/Downloads/tidy-1.2/tidy.c:32:23: fatal error: safe_mode.h: No such file or directory
compilation terminated.
make: *** [tidy.lo] Error 1
imagick
Again, this extension is needed for Horde, and I tried installing it with the standard method (pecl install imagick)
Code:
root@lhost2:~/Downloads/tidy-1.2# pecl install imagick
downloading imagick-3.0.1.tar ...
Starting to download imagick-3.0.1.tar (Unknown size)
.....................................................................................................................................done: 665,088 bytes
13 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
Please provide the prefix of Imagemagick installation [autodetect] :
building in /tmp/pear/temp/pear-build-root8vVaP9/imagick-3.0.1
running: /tmp/pear/temp/imagick/configure --with-imagick
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -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
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/extensions
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.8.6 Q16
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
ERROR: `/tmp/pear/temp/imagick/configure --with-imagick' failed
http://serverfault.com/questions/484...ntos-6-3-64bit suggested creating a symlink in /usr/local/include to point to /usr/local/include/ImageMagick-6 so imagick's install script would find the proper folder. I tried and got past the previous error but now I have:
Code:
root@lhost2:~/Downloads/tidy-1.2# pecl install imagick
downloading imagick-3.0.1.tar ...
Starting to download imagick-3.0.1.tar (Unknown size)
.....................................................................................................................................done: 665,088 bytes
13 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
Please provide the prefix of Imagemagick installation [autodetect] :
building in /tmp/pear/temp/pear-build-rootol4bm7/imagick-3.0.1
running: /tmp/pear/temp/imagick/configure --with-imagick
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -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
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/extensions
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.8.6 Q16
checking for MagickWand.h header file... found in /usr/local/include/ImageMagick/wand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 5.4.16
checking for ld used by cc... /usr/x86_64-slackware-linux/bin/ld
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/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 /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/x86_64-slackware-linux/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
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/temp/pear-build-rootol4bm7/imagick-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootol4bm7/imagick-3.0.1/include -I/tmp/pear/temp/pear-build-rootol4bm7/imagick-3.0.1/main -I/tmp/pear/temp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_class.c -o imagick_class.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootol4bm7/imagick-3.0.1/include -I/tmp/pear/temp/pear-build-rootol4bm7/imagick-3.0.1/main -I/tmp/pear/temp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_class.c -fPIC -DPIC -o .libs/imagick_class.o
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagematte':
/tmp/pear/temp/imagick/imagick_class.c:268:2: warning: 'MagickGetImageMatte' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_paintfloodfillimage':
/tmp/pear/temp/imagick/imagick_class.c:1016:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c:1019:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_recolorimage':
/tmp/pear/temp/imagick/imagick_class.c:1402:2: warning: 'MagickRecolorImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_setfont':
/tmp/pear/temp/imagick/imagick_class.c:1442:3: error: 'php_core_globals' has no member named 'safe_mode'
/tmp/pear/temp/imagick/imagick_class.c:1442:3: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:1442:3: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/imagick/imagick_class.c:1442:3: error: 'CHECKUID_NO_ERRORS' undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_colorfloodfillimage':
/tmp/pear/temp/imagick/imagick_class.c:3396:2: warning: 'MagickColorFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mapimage':
/tmp/pear/temp/imagick/imagick_class.c:3730:2: warning: 'MagickMapImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mattefloodfillimage':
/tmp/pear/temp/imagick/imagick_class.c:3763:2: warning: 'MagickMatteFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_medianfilterimage':
/tmp/pear/temp/imagick/imagick_class.c:3790:2: warning: 'MagickMedianFilterImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:217) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_paintopaqueimage':
/tmp/pear/temp/imagick/imagick_class.c:3853:2: warning: 'MagickPaintOpaqueImageChannel' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_painttransparentimage':
/tmp/pear/temp/imagick/imagick_class.c:3916:2: warning: 'MagickPaintTransparentImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_reducenoiseimage':
/tmp/pear/temp/imagick/imagick_class.c:4059:2: warning: 'MagickReduceNoiseImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:265) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageattribute':
/tmp/pear/temp/imagick/imagick_class.c:5068:2: warning: 'MagickGetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagechannelextrema':
/tmp/pear/temp/imagick/imagick_class.c:5253:2: warning: 'MagickGetImageChannelExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageextrema':
/tmp/pear/temp/imagick/imagick_class.c:5506:2: warning: 'MagickGetImageExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageindex':
/tmp/pear/temp/imagick/imagick_class.c:6344:2: warning: 'MagickGetImageIndex' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_setimageindex':
/tmp/pear/temp/imagick/imagick_class.c:6369:2: warning: 'MagickSetImageIndex' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:113) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagesize':
/tmp/pear/temp/imagick/imagick_class.c:6447:2: warning: 'MagickGetImageSize' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_setimageattribute':
/tmp/pear/temp/imagick/imagick_class.c:6796:2: warning: 'MagickSetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_flattenimages':
/tmp/pear/temp/imagick/imagick_class.c:7043:2: warning: 'MagickFlattenImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_averageimages':
/tmp/pear/temp/imagick/imagick_class.c:8079:2: warning: 'MagickAverageImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mosaicimages':
/tmp/pear/temp/imagick/imagick_class.c:8516:2: warning: 'MagickMosaicImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135) [-Wdeprecated-declarations]
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_setimageprogressmonitor':
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'php_core_globals' has no member named 'safe_mode'
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'CHECKUID_NO_ERRORS' undeclared (first use in this function)
make: *** [imagick_class.lo] Error 1
ERROR: `make' failed
Another forum suggested looking into imagick's config.m4 file and making a change to line 55 where it normally reads:
Code:
if test -r $WAND_DIR/include/ImageMagick/wand/MagickWand.h; then
and change it to
Code:
if test -r $WAND_DIR/include/ImageMagick-6/wand/MagickWand.h; then
Since ImageMagick really is in /usr/local/include/ImageMagick-6 and not in /usr/local/include/ImageMagick
Thats why I tried creating a symlink as I said before..
Simply put, I have copied my old configuration lines to the current httpd.conf, httpd-vhosts.conf, php.ini, mod_php.conf, etc (NOT the whole files since I thought there might be new options in the current config files which didnt exist back when I installed apache 3 years ago)
Apache starts without errors. Note that I will be running several web applications so I will be using virtualhosts (vhosts).
Code:
[Sat Jun 29 10:43:09.506727 2013] [mpm_event:notice] [pid 27147:tid 140284829337472] AH00494: SIGHUP received. Attempting to restart
[Sat Jun 29 10:43:09.624012 2013] [auth_digest:notice] [pid 27147:tid 140284829337472] AH01757: generating secret for digest authentication ...
[Sat Jun 29 10:43:10.078805 2013] [ssl:warn] [pid 27147:tid 140284829337472] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jun 29 10:43:10.197218 2013] [mpm_event:notice] [pid 27147:tid 140284829337472] AH00489: Apache/2.4.4 (Unix) OpenSSL/1.0.1e PHP/5.4.16 configured -- resuming normal operations
[Sat Jun 29 10:43:10.197535 2013] [core:notice] [pid 27147:tid 140284829337472] AH00094: Command line: '/usr/sbin/httpd'
I have started by installing a small php application (RssLounge, a nice RSS aggregator). I created a folder in apache's web root (/var/www/htdocs) and moved the application files there. Then I chown'ed all files recursively to apache:apache and tried accessing the setup page but I get http 500:
Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache's error log shows:
Code:
[Sat Jun 29 10:45:45.323775 2013] [core:alert] [pid 30844:tid 140284319098624] [client 192.168.0.106:47915] /var/www/htdocs/rsslounge/.htaccess: <IfModule not allowed here
I swear Ive searched the internet, I cannot find anything helping. Most people who had this type of error were having problems with Options, allowoverride, authtype... but not with ifModule..
If you want to use IfModule in a .htaccess file you need to have defined "AllowOverride All" in your vhost configuration. You do that for some, but not for all. And it is not present in your rsslounge VirtualHost definition.
imagick: pretty much same thing as whats explained for tidy on the thread I am referring you to... downloaded imagick's source code, verified that imagick was installed (and it was), and compiled from sources with
Code:
phpize
./configure --with-imagick=shared
make
make install
The make install process identified my php extension folder and copied the resulting .so file to it.
Again, success and quite simple.
Apache misconfig:
Thanks to the folks at IRC ##httpd and #php, I realized that I didnt need virtualhosts definitions... As a matter of fact, simplifying my config quite a bit by merging the mecessary overrride options and statements from httpd-vhosts.conf to httpd.conf solved 99% of my issues.. The rest was a bit of house cleaning.
Now my biggest concern and problem will be to somehow import or transfer my huge database from my previous knowledgetree install to another Document management system.. (Alfresco or drupal??). I am extremely disappointed after knowledgetree for dropping the community editions without giving users a possibility to migrate. Im sure there are other people like me who used the community edition for years and uploaded thousands of documents to their DMS. For us, what to do?? Find a cheap paid commercial alternative, restart fresh with another opensource project which might just get abandoned in a feww years, or somehow tweak things until the last KT release works with the up-to-date apache and PHP..
I guess thats a MAJOR drawback of opensource... Since there are no legal agreements between them and end users, they can just pull the plug anytime they want, without wondering how people will deal with it.
I guess thats a MAJOR drawback of opensource... Since there are no legal agreements between them and end users, they can just pull the plug anytime they want, without wondering how people will deal with it.
Can't let this go unanswered... I've found the opposite is true. With open source, if the 'vendor' (which there usually isn't) pulls the plug, you have a choice. You have the source code, and you can hire, contract, bribe, lure etc people to extend and support the code for you. You do have that option. With proprietary, closed source, you are out of luck. There are many, many cases of a vendor ending support (or dropping a supported platform) for a commercial proprietary product, and the users have no good options.
P.S. thanks for the thanks re: building tidy extension for PHP.
Can't let this go unanswered... I've found the opposite is true. With open source, if the 'vendor' (which there usually isn't) pulls the plug, you have a choice. You have the source code, and you can hire, contract, bribe, lure etc people to extend and support the code for you. You do have that option. With proprietary, closed source, you are out of luck. There are many, many cases of a vendor ending support (or dropping a supported platform) for a commercial proprietary product, and the users have no good options.
Not wanting to start a flame war, I'm an opensource guy more than anything else, but take for example any contractual agreements with Microsoft Exchange or a similar enterprise solution, you KNOW when your agreement will end (i.e. in 5 years, in 3 years) so its your responsibility to prepare yourself for the eventuality the company providing the resource(s) doesnt keep the product(s) alive. During that contractual period, they are not legally (at least in Canada) allowed to "pull the plug" and stop supporting you, otherwise you are in right to sue them for breach of contract and/or failure to respect contractual agreements, and consequential damages.
anyways, thats another topic...
Long story short, I just found what they did with the community efforts and contributions cheap. Of course this is only my personal opinion.. I just felt like I helped them develop a commercial solution at my expense. Of course perhaps this was the point of the Community edition, but AFAIK nowhere it was advertised as such.
Now I need to find a new DMS system and migrate my DB to it ASAP.... Anybody knows a good DMS? Alfresco?????? OpenKM????? Im all hearing
I have asked the Horde maillist for advice but havent received any responses yet. Im hitting my head on the walls so to speak to get their horde frameqwork to run on my "shiny" slack box.
According to them, my PEAR is NOT in my path (whatever that means for a noob like me).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.