LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-25-2013, 05:23 AM   #16
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44

No worries..

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!
 
Old 06-25-2013, 06:13 AM   #17
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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,
  1. zoneminder displays a blank page
  2. Horde no longer displays Java interface (now loads with standard basic interface)
  3. 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.
  4. 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'.
knowledgetree apache log:
Code:
2013-06-25 | 06:25:43 | ERROR | 32123 | 10538197 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:40',previous_run_time = '2013-06-25 06:25:40',run_duration = '2.44' WHERE id = 8
2013-06-25 | 06:25:43 | ERROR | 32123 | 10538198 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:43 | ERROR | 23029 | 17738812 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:40',previous_run_time = '2013-06-25 06:25:40',run_duration = '2.46' WHERE id = 8
2013-06-25 | 06:25:43 | ERROR | 23029 | 17738812 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:43 | ERROR | 4444 | 6937274 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:40',previous_run_time = '2013-06-25 06:25:40',run_duration = '2.46' WHERE id = 8
2013-06-25 | 06:25:43 | ERROR | 4444 | 6937274 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:45 | ERROR | 23029 | 17741299 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:43',previous_run_time = '2013-06-25 06:25:43',run_duration = '2.49' WHERE id = 9
2013-06-25 | 06:25:45 | ERROR | 23029 | 17741300 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:45 | ERROR | 27774 | 14140444 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:43',previous_run_time = '2013-06-25 06:25:43',run_duration = '2.52' WHERE id = 9
2013-06-25 | 06:25:45 | ERROR | 27774 | 14140445 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:45 | ERROR | 18207 | 21341970 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:43',previous_run_time = '2013-06-25 06:25:43',run_duration = '2.52' WHERE id = 9
2013-06-25 | 06:25:45 | ERROR | 18207 | 21341971 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:45 | ERROR | 32123 | 10540726 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:43',previous_run_time = '2013-06-25 06:25:43',run_duration = '2.53' WHERE id = 9
2013-06-25 | 06:25:45 | ERROR | 32123 | 10540728 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:45 | ERROR | 4444 | 6939779 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:43',previous_run_time = '2013-06-25 06:25:43',run_duration = '2.50' WHERE id = 9
2013-06-25 | 06:25:45 | ERROR | 4444 | 6939780 | n/a | ktdms | default | logQueryError | Query error: DB Error: no database selected
2013-06-25 | 06:25:48 | ERROR | 4444 | 6942185 | n/a | ktdms | sql | logQueryError | UPDATE scheduler_tasks SET run_time = '2013-06-25 07:25:45',previous_run_time = '2013-06-25 06:25:45',run_duration = '2.40' WHERE id = 10
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

Last edited by lpallard; 06-25-2013 at 06:22 AM.
 
Old 06-25-2013, 07:27 AM   #18
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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.

Last edited by lpallard; 06-25-2013 at 07:29 AM.
 
Old 06-25-2013, 08:55 AM   #19
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Enough is enough. I am reinstalling the system to a fresh 14 install. After almost 3 years without updating, this is what happens.

Live & learn!
 
Old 06-25-2013, 11:06 AM   #20
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Rep: Reputation: 77
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
 
Old 06-25-2013, 11:43 AM   #21
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Quote:
I'm glad you decided to stick with slackware.
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?
 
Old 06-25-2013, 06:09 PM   #22
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Rep: Reputation: 77
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.
 
Old 06-28-2013, 10:43 AM   #23
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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..

Thats a no-go too..

See next post for apache..

Last edited by lpallard; 06-29-2013 at 09:52 AM.
 
Old 06-29-2013, 09:53 AM   #24
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Apache misconfiguration

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..

My config files:

httpd.conf

Code:
ServerRoot "/usr"
ServerName lhost2
Listen 80

LoadModule authn_file_module lib64/httpd/modules/mod_authn_file.so
LoadModule authn_dbm_module lib64/httpd/modules/mod_authn_dbm.so
LoadModule authn_anon_module lib64/httpd/modules/mod_authn_anon.so
LoadModule authn_dbd_module lib64/httpd/modules/mod_authn_dbd.so
LoadModule authn_socache_module lib64/httpd/modules/mod_authn_socache.so
LoadModule authn_core_module lib64/httpd/modules/mod_authn_core.so
LoadModule authz_host_module lib64/httpd/modules/mod_authz_host.so
LoadModule authz_groupfile_module lib64/httpd/modules/mod_authz_groupfile.so
LoadModule authz_user_module lib64/httpd/modules/mod_authz_user.so
LoadModule authz_dbm_module lib64/httpd/modules/mod_authz_dbm.so
LoadModule authz_owner_module lib64/httpd/modules/mod_authz_owner.so
LoadModule authz_dbd_module lib64/httpd/modules/mod_authz_dbd.so
LoadModule authz_core_module lib64/httpd/modules/mod_authz_core.so
LoadModule authnz_ldap_module lib64/httpd/modules/mod_authnz_ldap.so
LoadModule access_compat_module lib64/httpd/modules/mod_access_compat.so
LoadModule auth_basic_module lib64/httpd/modules/mod_auth_basic.so
LoadModule auth_form_module lib64/httpd/modules/mod_auth_form.so
LoadModule auth_digest_module lib64/httpd/modules/mod_auth_digest.so
LoadModule allowmethods_module lib64/httpd/modules/mod_allowmethods.so
LoadModule file_cache_module lib64/httpd/modules/mod_file_cache.so
LoadModule cache_module lib64/httpd/modules/mod_cache.so
LoadModule cache_disk_module lib64/httpd/modules/mod_cache_disk.so
LoadModule socache_shmcb_module lib64/httpd/modules/mod_socache_shmcb.so
LoadModule socache_dbm_module lib64/httpd/modules/mod_socache_dbm.so
LoadModule socache_memcache_module lib64/httpd/modules/mod_socache_memcache.so
#LoadModule watchdog_module lib64/httpd/modules/mod_watchdog.so
LoadModule dbd_module lib64/httpd/modules/mod_dbd.so
LoadModule dumpio_module lib64/httpd/modules/mod_dumpio.so
LoadModule echo_module lib64/httpd/modules/mod_echo.so
LoadModule buffer_module lib64/httpd/modules/mod_buffer.so
LoadModule data_module lib64/httpd/modules/mod_data.so
LoadModule ratelimit_module lib64/httpd/modules/mod_ratelimit.so
LoadModule reqtimeout_module lib64/httpd/modules/mod_reqtimeout.so
LoadModule ext_filter_module lib64/httpd/modules/mod_ext_filter.so
LoadModule request_module lib64/httpd/modules/mod_request.so
LoadModule include_module lib64/httpd/modules/mod_include.so
LoadModule filter_module lib64/httpd/modules/mod_filter.so
LoadModule reflector_module lib64/httpd/modules/mod_reflector.so
LoadModule substitute_module lib64/httpd/modules/mod_substitute.so
LoadModule sed_module lib64/httpd/modules/mod_sed.so
LoadModule charset_lite_module lib64/httpd/modules/mod_charset_lite.so
LoadModule deflate_module lib64/httpd/modules/mod_deflate.so
LoadModule xml2enc_module lib64/httpd/modules/mod_xml2enc.so
LoadModule proxy_html_module lib64/httpd/modules/mod_proxy_html.so
LoadModule mime_module lib64/httpd/modules/mod_mime.so
LoadModule ldap_module lib64/httpd/modules/mod_ldap.so
LoadModule log_config_module lib64/httpd/modules/mod_log_config.so
LoadModule log_debug_module lib64/httpd/modules/mod_log_debug.so
LoadModule log_forensic_module lib64/httpd/modules/mod_log_forensic.so
LoadModule logio_module lib64/httpd/modules/mod_logio.so
LoadModule env_module lib64/httpd/modules/mod_env.so
LoadModule mime_magic_module lib64/httpd/modules/mod_mime_magic.so
LoadModule expires_module lib64/httpd/modules/mod_expires.so
LoadModule headers_module lib64/httpd/modules/mod_headers.so
LoadModule usertrack_module lib64/httpd/modules/mod_usertrack.so
LoadModule unique_id_module lib64/httpd/modules/mod_unique_id.so
LoadModule setenvif_module lib64/httpd/modules/mod_setenvif.so
LoadModule version_module lib64/httpd/modules/mod_version.so
#LoadModule remoteip_module lib64/httpd/modules/mod_remoteip.so
LoadModule proxy_module lib64/httpd/modules/mod_proxy.so
LoadModule proxy_connect_module lib64/httpd/modules/mod_proxy_connect.so
LoadModule proxy_ftp_module lib64/httpd/modules/mod_proxy_ftp.so
LoadModule proxy_http_module lib64/httpd/modules/mod_proxy_http.so
LoadModule proxy_fcgi_module lib64/httpd/modules/mod_proxy_fcgi.so
LoadModule proxy_scgi_module lib64/httpd/modules/mod_proxy_scgi.so
LoadModule proxy_fdpass_module lib64/httpd/modules/mod_proxy_fdpass.so
LoadModule proxy_ajp_module lib64/httpd/modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module lib64/httpd/modules/mod_proxy_balancer.so
LoadModule proxy_express_module lib64/httpd/modules/mod_proxy_express.so
LoadModule session_module lib64/httpd/modules/mod_session.so
LoadModule session_cookie_module lib64/httpd/modules/mod_session_cookie.so
LoadModule session_dbd_module lib64/httpd/modules/mod_session_dbd.so
LoadModule slotmem_shm_module lib64/httpd/modules/mod_slotmem_shm.so
LoadModule slotmem_plain_module lib64/httpd/modules/mod_slotmem_plain.so
LoadModule ssl_module lib64/httpd/modules/mod_ssl.so
#LoadModule dialup_module lib64/httpd/modules/mod_dialup.so
LoadModule lbmethod_byrequests_module lib64/httpd/modules/mod_lbmethod_byrequests.so
LoadModule lbmethod_bytraffic_module lib64/httpd/modules/mod_lbmethod_bytraffic.so
LoadModule lbmethod_bybusyness_module lib64/httpd/modules/mod_lbmethod_bybusyness.so
#LoadModule lbmethod_heartbeat_module lib64/httpd/modules/mod_lbmethod_heartbeat.so
LoadModule mpm_event_module lib64/httpd/modules/mod_mpm_event.so
LoadModule unixd_module lib64/httpd/modules/mod_unixd.so
#LoadModule heartbeat_module lib64/httpd/modules/mod_heartbeat.so
#LoadModule heartmonitor_module lib64/httpd/modules/mod_heartmonitor.so
LoadModule dav_module lib64/httpd/modules/mod_dav.so
LoadModule status_module lib64/httpd/modules/mod_status.so
LoadModule autoindex_module lib64/httpd/modules/mod_autoindex.so
LoadModule asis_module lib64/httpd/modules/mod_asis.so
LoadModule info_module lib64/httpd/modules/mod_info.so
LoadModule cgid_module lib64/httpd/modules/mod_cgid.so
LoadModule cgi_module lib64/httpd/modules/mod_cgi.so
LoadModule dav_fs_module lib64/httpd/modules/mod_dav_fs.so
LoadModule dav_lock_module lib64/httpd/modules/mod_dav_lock.so
LoadModule vhost_alias_module lib64/httpd/modules/mod_vhost_alias.so
LoadModule negotiation_module lib64/httpd/modules/mod_negotiation.so
LoadModule dir_module lib64/httpd/modules/mod_dir.so
LoadModule actions_module lib64/httpd/modules/mod_actions.so
LoadModule speling_module lib64/httpd/modules/mod_speling.so
LoadModule userdir_module lib64/httpd/modules/mod_userdir.so
LoadModule alias_module lib64/httpd/modules/mod_alias.so
LoadModule rewrite_module lib64/httpd/modules/mod_rewrite.so

<IfModule unixd_module>
</IfModule>

User apache
Group apache

ServerAdmin ----------

#<Directory />
#    AllowOverride none
#    Require all denied
#</Directory>

#DocumentRoot "/srv/httpd/htdocs"

#<Directory "/srv/httpd/htdocs">
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#</Directory>

<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

<Files ".ht*">
    Require all denied
    AcceptPathInfo On
</Files>

ErrorLog "/var/log/httpd/error_log"

LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog "/var/log/httpd/access_log" common

</IfModule>

<IfModule alias_module>
   Alias /Microsoft-Server-ActiveSync /var/www/htdocs/horde4/rpc.php
   ScriptAlias /cgi-bin/ "/srv/httpd/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/srv/httpd/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

# Deny access to the test.php files except from localhost
#<LocationMatch "^/horde/(.*/)?test.php">
#  order deny,allow
#  deny  from all
#  allow from localhost
#</LocationMatch>

<IfModule mime_module>
    TypesConfig /etc/httpd/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>

Include /etc/httpd/extra/httpd-vhosts.conf

<IfModule proxy_html_module>
    Include /etc/httpd/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
</IfModule>

Include /etc/httpd/mod_php.conf
#Include /etc/zm/zm_apache.conf
httpd-vhosts.conf

Code:
<VirtualHost *:80>
    ServerName localhost
    DocumentRoot /var/www/htdocs/
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/htdocs/horde
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/htdocs/it-support
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/htdocs/metalliguide
</VirtualHost>

<VirtualHost *:80>
   DocumentRoot /var/www/htdocs/knowledgetree
        <Directory /var/www/htdocs/knowledgetree>
		DirectoryIndex index.html
		AddType application/x-httpd-php text/html .php .phps
		php_flag magic_quotes_gpc Off
		php_flag display_errors on
		AddHandler application/x-httpd-php .php
		AddHandler application/x-httpd-php-source .phps
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
        </Directory>
        ErrorLog /var/log/kt-error_log
        CustomLog /var/log/kt-access_log common
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/htdocs/mediawiki
</VirtualHost>

<VirtualHost *:80>
	ServerName newznabplus
	<Directory /var/www/htdocs/newznabplus/www/>
		Options FollowSymLinks
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>
	DocumentRoot /var/www/htdocs/newznabplus/www
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/htdocs/phpmyadmin
</VirtualHost>

<VirtualHost *:80>
    ServerName rsslounge
    DocumentRoot /var/www/htdocs/rsslounge
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/htdocs/rutorrent
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/htdocs/zoneminder
</VirtualHost>
php.ini I deleted everything that was commented out (comments, unused options) to save space otherwise I will have to post on pastbin or similar..

Code:
[PHP]

engine = On

short_open_tag = Off

asp_tags = Off

precision = 14

output_buffering = 4096

zlib.output_compression = Off

implicit_flush = Off

unserialize_callback_func =

serialize_precision = 100

disable_functions =

disable_classes =

zend.enable_gc = On

expose_php = On

max_execution_time = 600

max_input_time = 600

memory_limit = 512M

error_reporting = E_ERROR

display_errors = Off

display_startup_errors = Off

log_errors = On

log_errors_max_len = 1024

ignore_repeated_errors = Off

ignore_repeated_source = Off

report_memleaks = On

track_errors = Off

html_errors = On

variables_order = "GPCS"

request_order = "GP"

register_argc_argv = Off

auto_globals_jit = On

post_max_size = 0

auto_prepend_file =

auto_append_file =

default_mimetype = "text/html"

include_path = ".:/php/includes:/usr/lib/php"

doc_root =

user_dir =

extension_dir = "/usr/lib64/php/extensions/"

enable_dl = Off

file_uploads = On

upload_max_filesize = 64M

max_file_uploads = 20

allow_url_fopen = On

allow_url_include = Off

default_socket_timeout = 60

extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=curl.so
extension=dba.so
extension=dom.so
extension=enchant.so
extension=exif.so
extension=ftp.so
;extension=fileinfo.so
extension=gd.so
extension=gettext.so
extension=gmp.so
extension=iconv.so
;extension=imagick.so
extension=intl.so
extension=ldap.so
;extension=lzf.so
extension=mbstring.so
;extension=memcache.so
extension=mysql.so
extension=mysqli.so
extension=openssl.so
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=pspell.so
extension=shmop.so
extension=snmp.so
extension=soap.so
extension=sqlite3.so
extension=tokenizer.so
extension=wddx.so
extension=xmlreader.so
extension=xsl.so
extension=zip.so
extension=zlib.so

[CLI Server]

cli_server.color = On

[Date]

[filter]

[iconv]

[intl]

[sqlite]

[sqlite3]

[Pcre]

[Pdo]

[Pdo_mysql]

pdo_mysql.cache_size = 2000

pdo_mysql.default_socket=

[Phar]

[mail function]

SMTP = localhost

smtp_port = 25

mail.add_x_header = On

[SQL]

sql.safe_mode = Off

[ODBC]

odbc.allow_persistent = On

odbc.check_persistent = On

odbc.max_persistent = -1

odbc.max_links = -1

odbc.defaultlrl = 4096

odbc.defaultbinmode = 1

[Interbase]

ibase.allow_persistent = 1

ibase.max_persistent = -1

ibase.max_links = -1

ibase.timestampformat = "%Y-%m-%d %H:%M:%S"

ibase.dateformat = "%Y-%m-%d"

ibase.timeformat = "%H:%M:%S"

[MySQL]

mysql.allow_local_infile = On

mysql.allow_persistent = On

mysql.cache_size = 2000

mysql.max_persistent = -1

mysql.max_links = -1

mysql.default_port =

mysql.default_socket =

mysql.default_host =

mysql.default_user =

mysql.default_password =

mysql.connect_timeout = 60

mysql.trace_mode = Off

[MySQLi]

mysqli.max_persistent = -1

mysqli.allow_persistent = On

mysqli.max_links = -1

mysqli.cache_size = 2000

mysqli.default_port = 3306

mysqli.default_socket =

mysqli.default_host =

mysqli.default_user =

mysqli.default_pw =

mysqli.reconnect = Off

[mysqlnd]

mysqlnd.collect_statistics = On

mysqlnd.collect_memory_statistics = Off

[OCI8]

[PostgreSQL]

pgsql.allow_persistent = On

pgsql.auto_reset_persistent = Off

pgsql.max_persistent = -1

pgsql.max_links = -1

pgsql.ignore_notice = 0

pgsql.log_notice = 0

[Sybase-CT]

sybct.allow_persistent = On

sybct.max_persistent = -1

sybct.max_links = -1

sybct.min_server_severity = 10

sybct.min_client_severity = 10

[bcmath]

bcmath.scale = 0

[browscap]

[Session]

session.save_handler = files

session.save_path = "/var/lib/php"

session.use_cookies = 1

session.use_only_cookies = 1

session.name = PHPSESSID

session.auto_start = 0

session.cookie_lifetime = 0

session.cookie_path = /

session.cookie_domain =

session.cookie_httponly =

session.serialize_handler = php

session.gc_probability = 1

session.gc_divisor = 1000

session.gc_maxlifetime = 1440

session.bug_compat_42 = Off

session.bug_compat_warn = Off

session.referer_check =

session.cache_limiter = nocache

session.cache_expire = 180

session.use_trans_sid = 0

session.hash_function = 0

session.hash_bits_per_character = 5

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]

mssql.allow_persistent = On

mssql.max_persistent = -1

mssql.max_links = -1

mssql.min_error_severity = 10

mssql.min_message_severity = 10

mssql.compatability_mode = Off

mssql.secure_connection = Off

[Assertion]

[COM]

[mbstring]

[gd]

[exif]

[Tidy]

tidy.clean_output = Off

[soap]

soap.wsdl_cache_enabled=1

soap.wsdl_cache_dir="/tmp"

soap.wsdl_cache_ttl=86400

soap.wsdl_cache_limit = 5

[sysvshm]

[ldap]

ldap.max_links = -1

[mcrypt]

[dba]

Last edited by lpallard; 06-29-2013 at 11:20 AM.
 
Old 06-29-2013, 10:48 AM   #25
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,180

Rep: Reputation: Disabled
Please check https://httpd.apache.org/docs/2.2/mo....html#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.

Eric
 
Old 06-29-2013, 11:16 AM   #26
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Hey Eric,

I have added the relevant line to the vhost definition. The link you sent me to (apache's website) clearly states:

Quote:
Context: server config, virtual host, directory, .htaccess
So I would assume you are absolutely right saying that I need this in the vhost definition, however, its not helping.

The rsslounge's vhost now looks like:

Code:
<VirtualHost *:80>
    ServerName rsslounge
    DocumentRoot /var/www/htdocs/rsslounge
    <Directory /var/www/htdocs/rsslounge/>
        AllowOverride All
    </Directory>
</VirtualHost>
Note that not inserting the "AllowOverride All" statement inside a "Directory" section, apache complained that

Code:
AH00526: Syntax error on line 59 of /etc/httpd/extra/httpd-vhosts.conf:
AllowOverride not allowed here
Any more ideas? Could it be because certain module(s) are not loaded or installed?

Last edited by lpallard; 06-29-2013 at 11:19 AM.
 
Old 07-02-2013, 11:40 AM   #27
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Some updates:

Tidy: follow the detailled instruction of user ljb643 at thread http://www.linuxquestions.org/questi...et-4175467201/

Worked flawlessly! Thanks ljb643 for your help!!!

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.

Last edited by lpallard; 07-02-2013 at 11:51 AM.
 
Old 07-02-2013, 07:56 PM   #28
ljb643
Member
 
Registered: Nov 2003
Posts: 264

Rep: Reputation: Disabled
Quote:
Originally Posted by lpallard View Post
...

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.
 
Old 07-03-2013, 10:43 AM   #29
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Quote:
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

Last edited by lpallard; 07-03-2013 at 10:46 AM.
 
Old 07-10-2013, 08:14 AM   #30
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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).

I have tried everything I could think of..

My include_path directive in php.ini has:

Code:
include_path = ".:/usr/lib64/php:/usr/include/php:/usr/lib64/php/PEAR"
Shouldn't this be OK? php.ini's comments says:

Quote:
PHP's default setting for include_path is ".;/path/to/php/pear"
THis is what I have now and its not working. If the above is not right, where's the damn thing on Slackware?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP error after upgrading to latest version of PHP Skillz Programming 3 08-17-2012 08:02 PM
PHP Warning after upgrading from PHP 5.2.1 to 5.3.1 on CentOS rossie Linux - Newbie 4 12-20-2009 02:18 PM
Upgrading php? rickycen Linux - Newbie 4 09-02-2005 08:24 PM
Upgrading PHP?!? gldfngr Linux - Software 1 08-25-2005 09:32 AM


All times are GMT -5. The time now is 06:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration