LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Upgrading PHP in slackware? Possible? how? (https://www.linuxquestions.org/questions/slackware-14/upgrading-php-in-slackware-possible-how-4175466552/)

lpallard 06-18-2013 09:37 PM

Upgrading PHP in slackware? Possible? how?
 
Hello,

I am currently using Horde Webmail (a php based groupware) at version 4.0.9. The newest version is 5.1.0 and I have been trying to upgrade for several weeks (if not months) and I cannot.

Basically, according to the Horde's website instructions to upgrade from 4.x to 5.x, I should only have to run

Code:

pear upgrade -a -B horde/webmail
But I get

Code:

horde/webmail is already installed and is the same as the released version 4.0.9
upgrade failed

Almost looks to me like "pear" couldnt see that there is a newest version out there.

From within the admin page of the application, I click the "Check for newer versions" button, and immediately it says

A newer version (5.1.0) exists.

SO I am heavily confused. I posted on the project's maillist, but did not get huge support. One of the devs suggested to upgrade php.

As a matter of fact, my slackware server still runs the stock 13.1 release of Slackware.

Pear
Code:

PEAR Version: 1.9.4
PHP Version: 5.2.13
Zend Engine Version: 2.2.0

(Why is pear reporting PHP as version 5.2.13 while Zend reports it as 5.3.3 ??? php -v reports also version 5.2.13 (cli)

Some of the server's info:
Code:

Zend Server Community Edition
Version        5.0.3
 
PHP
Version        5.3.3
 
PHP Configuration File        /usr/local/zend/etc/php.ini
 
Web Server
Server Name        localhost
 
Server Software        Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n PHP/5.3.3
 
OS Version        Linux
 
Zend Framework
Version        1.10.8
 
Installed Path        /usr/local/zend/share/ZendFramework
 
Zend Data Cache
Version        4.0
Status        On
 
Zend Debugger
Version        5.3
Status        On
 
Zend Guard Loader
Status        Not installed
 
Zend Java Bridge
Version        3.1
Status        Off
 
Zend Optimizer+
Version        4.1
Status        On

Anyways, suggestions are welcome as php and web stuff isnt my cup of tea! ;)
Thanks!

Peacedog 06-18-2013 09:52 PM

Hi lpallard, The 5.3.26 package is actually already built and ready for upgrade in the patches directory of the Slackware 13.1 file tree.Aside from that you should be able to upgrade php with the Slackware build script from the source directory. You may be required to upgrade some other packages based on the dependencies.

Good luck. ;-)

lpallard 06-18-2013 10:26 PM

Ok I went ahead and upgraded php package with the 5.3.26 from the patches folder from Slack's filetree..

immediately upon launching php to see if its all right, I get:

Code:

bash-4.1# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/dbase.so' - /usr/lib/php/extensions/dbase.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/mhash.so' - /usr/lib/php/extensions/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: idn: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 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

Trying to compile it from sources gives me:
Code:

./php.SlackBuild: line 73: cd: /tmp/mount/php-5.3.26/../alpine: No such file or directory
./php.SlackBuild: line 73: ./alpine.SlackBuild: No such file or directory

Im not off to a good start eh... ! I think I'd rather upgrade using a package management tool such as slackpkg (if feasible) instead of trying manually to install hundreds of dependencies.. Possible?

Celyr 06-19-2013 03:05 AM

Well, I think that the easiest solution for you now is to do a fresh 14.0 installation.
If you want to stick with 13.1 wich I don't suggest setup /etc/slackpkg/mirrors file with a 13.1 mirror then do the usual things
Code:

slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system

And no, you can't put there a 14.0 mirror and upgrade to it with slackpkg

ppr:kut 06-19-2013 04:18 AM

Quote:

immediately upon launching php to see if its all right, I get:
You forgot to handle .new files. php.ini changed with the update, you need to have a look.

lpallard 06-19-2013 08:14 AM

Quote:

Well, I think that the easiest solution for you now is to do a fresh 14.0 installation.
If you want to stick with 13.1 wich I don't suggest setup /etc/slackpkg/mirrors file with a 13.1 mirror then do the usual things
I agree but unfortunately, this is a "production server" and no downtime (at least significant) is allowed for now since there is a lot of work to do.

The best I could have to rebuild the server with Slack 14 or another OS is about 2 days top...

I am not so sure I can migrate the complete machine to a different OS. Hell Im not even sure I can upgrade the machine without problems.

I guess for now I will wait for the next period until we dont really need the machine and wipe clean and reinstall fresh.

Lots of stuff has to be upgraded at this point. Most of the front end applications are being upgraded from time to time, but the backend apps such as php or apache, mysql, etc are from Stock 13.1 and date back to 2010..

This short experience with simply upgrading php has renewed the feeling that sooner or later, I will have to migrate away from slackware, unless other distros are not offering easier management tools. I simply dont see myself sitting in front of the server for a week rebuilding and reinstalling everything from scratch or sources. Thats why I am still using 13.1. The only reason why I initially opted for Slack for this server was the fact that I was using slack on other machines and it was the distro I knew best. I need an OS that I can easily patch and upgrade without running into a dependency hell and endless manual operations..

Alien Bob 06-19-2013 09:03 AM

Quote:

Originally Posted by lpallard (Post 4974746)
This short experience with simply upgrading php has renewed the feeling that sooner or later, I will have to migrate away from slackware, unless other distros are not offering easier management tools.

A word of friendly advice - do not take this the wrong way. If you would have followed the Slackware security mailing list and had installed the Slackware 13.1 patches as they became available, you would already be running the desired PHP version.

One of your issues is that you attempted a software installation of Zend with apparently a separate version of PHP which now lives on your computer in /usr/local - which is the reason why Zend reports a different PHP version. Try to keep up to date with the Slackware official packages and patches, be very,very careful when upgrading individual pieces of Slackware-provided programs, and try to use SlackBuild scripts for all the additional software you install on a production server. That will make it easier to transition to a newer Slackware release or even to a newer custom software version.

Eric

lpallard 06-19-2013 09:09 AM

Quote:

Originally Posted by Alien Bob (Post 4974774)
A word of friendly advice - do not take this the wrong way. If you would have followed the Slackware security mailing list and had installed the Slackware 13.1 patches as they became available, you would already be running the desired PHP version.

One of your issues is that you attempted a software installation of Zend with apparently a separate version of PHP which now lives on your computer in /usr/local - which is the reason why Zend reports a different PHP version. Try to keep up to date with the Slackware official packages and patches, be very,very careful when upgrading individual pieces of Slackware-provided programs, and try to use SlackBuild scripts for all the additional software you install on a production server. That will make it easier to transition to a newer Slackware release or even to a newer custom software version.

Eric

Eric, I agree with you, this was one of the first slackware machine I was building.... I made a lot of mistakes by installing all kind of "crap" that was not necessary just because the readme or install instructions that came with the software I use required you to install the stuff... Zend is a good example. I am not even sure why I have this and quite frankly, I dont use it at all..

If I had to restart fresh with slack, I'd have to be very careful with what I install..

Now I am glad you said this:

Quote:

If you would have followed the Slackware security mailing list
I have registered 3 times to the maillist but never got any emails from it. I sent at least 5 emails to the maillist admins to inform them that something was wrong but didnt get any replies from them either. After about a year sporadically trying to register to that maillist, I gave up. You are a Slackware dev right? Can you help me with this? I can PM you.

Alien Bob 06-19-2013 09:48 AM

Quote:

Originally Posted by lpallard (Post 4974776)
I have registered 3 times to the maillist but never got any emails from it. I sent at least 5 emails to the maillist admins to inform them that something was wrong but didnt get any replies from them either. After about a year sporadically trying to register to that maillist, I gave up. You are a Slackware dev right? Can you help me with this? I can PM you.

I help with maintaining the distro but I do not have access to the mailing list manager. You should send volkerdi at slackware dot com a message about this.

Eric

lpallard 06-23-2013 09:15 PM

Quote:

Originally Posted by ppr:kut (Post 4974656)
You forgot to handle .new files. php.ini changed with the update, you need to have a look.

Ok after a system update with slackpkg, all is fine except the php errors I had..

ppr:kut, when you say that I forgot to handle .new files, I know that you are referring to the .old or .new files slackpkg creates if the config files had changed prior to upgrading the packages but I am not sure how to proceed with php in this case..

Can you explain how to proceed?

Thanks!

lpallard 06-23-2013 09:28 PM

Plain simple, I think that I may need to upgrade or install some extensions...

Rwading the output of "php -version", I see 3 different errors:

Code:

  • Unable to load dynamic library '/usr/lib/php/extensions/dbase.so' - cannot open shared object file: No such file or directory in Unknown on line 0

  • Unable to load dynamic library '/usr/lib/php/extensions/mhash.so' - cannot open shared object file: No such file or directory in Unknown on line 0

  • PHP Warning:  PHP Startup: fileinfo: Unable to initialize module

  • PHP Warning:  PHP Startup: idn: Unable to initialize module

  • PHP Warning:  PHP Startup: imagick: Unable to initialize module

  • PHP Warning:  PHP Startup: Unable to load dynamic library - /usr/lib/php/extensions/xmlrpc.so: undefined symbol: second_arg_force_ref in Unknown on line 0


I have looked around in the system, there is NO dbase.so neither there is mhash.so.. So I believe these extensions were never installed at first. COuld the previous php never had to use them?

"fileinfo", "idn" & imagick" are in /usr/lib/php/extensions but php cannot initialize them.. Perhaps upgrading them?

As for "xmlrpc.so", I dont know either but I belie also upgradint it could help? "Undefined symbol" almost sound to me like the current file is not compiled in accordance to what the new php expects..

EDIT: Googling a bit I have found a blog where someone suggested to comment out the relevant lines of dbase.so & mhash.so in php.ini but I am reluctant to do so because I dont know if I (or something else in the server) will need these extensions.. How do I know which extnsions to comment out? The fact that these extensions are not in the system tells me that I can safely comment out these extensions..

Alien Bob 06-24-2013 01:44 AM

lpallard,

Check the files "/etc/httpd/php.ini-*" which will have been installed by the upgraded php package. Check your existing php.ini for any modifications you have made in the past and copy the file to another name so it will not get overwritten. Select one of the two files php.ini-development php.ini-production - whatever suits your server best, usually that will be php.ini-production, and copy it to /etc/httpd/php.ini, overwriting your original.
Then merge the modifications you made to the original php.ini (you saved a copy).
That will get rid of the errors.

Eric

Celyr 06-24-2013 02:50 AM

I don't think you are skilled enough to be a system administrator of a production server. That's not the end of the world of course and that doesn't mean that you can't try. Maybe you'll find debian or ubuntu even simpler at first but in my experience that kind of systems gets really messy really soon if you don't take care and that's what happened to your slackware server that imho is less prone to this.
Again if you can move the server even temporarily and reinstall slackware to the newest stable version (and keep it update) that's is the way to go.
If you don't have the hardware you can rent a server for a moth or so, to keep it blindly going is just the way to disaster.

lpallard 06-24-2013 08:33 AM

Quote:

I don't think you are skilled enough to be a system administrator of a production server. That's not the end of the world of course and that doesn't mean that you can't try. Maybe you'll find debian or ubuntu even simpler at first but in my experience that kind of systems gets really messy really soon if you don't take care and that's what happened to your slackware server that imho is less prone to this.
Again if you can move the server even temporarily and reinstall slackware to the newest stable version (and keep it update) that's is the way to go.
If you don't have the hardware you can rent a server for a moth or so, to keep it blindly going is just the way to disaster.
Yeah. This server is for my personal usage mainly and some other people I work with, but nothing big leagues. You see, I cannot spend countless hours sitting in front of a computer just to make it work. I have other responsibilities in my life which are much more important than running a computer. That being said, I acknowledge my lack of skills because I never really had time to study it and understand it well. Perhaps in the future I will have some more time to spend? Who knows. I agree, except running my little box for every day use and this server I have managed to make work, my skills are limited, but everything I do I try to remember how to do it, what it does, how to replicate and what are the pros & cons.

Now a word of advice, I didnt take it personally because I see you are from Italy, and English *may* not be your primary language, but when you first throw a sentence like "I don't think you are skilled enough to be a system administrator of a production server." it may be taken personally and insulting to someone ;)

I once said something similar on another forum trying to be polite and make a constructive remark because the person I tried to help didnt even understand the concept of package dependencies and was trying to build a multi media machine :) I was burnt alive by other members just because my remark was not well understood.

Anyways, all that being said, I agree I need to sit down and rebuild this machine from scratch. Its necessary for several reasons, the machine architecture is obsolete (hardware specs), partition scheme is also not very efficient, I am using multi volume VG's to store terabytes of data, I have about 60 custom scripts running everywhere in the machine.. Its a wonder that it ran flawlessly for almost 3 years!

Something to remember: when I initially purchased the parts and built this machine, I only had in mind a NFS storage to remedy for the small laptop's HDD I had at that time. From a NFS mount to Sickbeard, CouchPotato, apache, MySQL, a document management system, a groupware, etc.. it evolved into more or less a server that we rely to store our data and databases...

Long story short, I will continue working on it for now and some day sooner than later I will rebuild from slack 14 or whatever will be released at that time (15 perhaps ;)

Celyr 06-25-2013 02:47 AM

Quote:

Originally Posted by lpallard (Post 4977542)
Now a word of advice, I didnt take it personally because I see you are from Italy, and English *may* not be your primary language, but when you first throw a sentence like "I don't think you are skilled enough to be a system administrator of a production server." it may be taken personally and insulting to someone ;)

English is not my first language and I'm sorry it sounded insulting. I'm trying to improve it.

lpallard 06-25-2013 05:23 AM

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! ;)

lpallard 06-25-2013 06:13 AM

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


lpallard 06-25-2013 07:27 AM

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.

lpallard 06-25-2013 08:55 AM

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!

Celyr 06-25-2013 11:06 AM

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 :D

lpallard 06-25-2013 11:43 AM

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?

Celyr 06-25-2013 06:09 PM

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.

lpallard 06-28-2013 10:43 AM

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

lpallard 06-29-2013 09:53 AM

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]


Alien Bob 06-29-2013 10:48 AM

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

lpallard 06-29-2013 11:16 AM

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?

lpallard 07-02-2013 11:40 AM

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.

ljb643 07-02-2013 07:56 PM

Quote:

Originally Posted by lpallard (Post 4982638)
...

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.

lpallard 07-03-2013 10:43 AM

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 ;)

lpallard 07-10-2013 08:14 AM

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?

ljb643 07-10-2013 05:07 PM

You might try this command: (1)
Code:

$ pear config-show | grep 'PEAR directory'
to see where PEAR thinks it lives.

Then try this: (2)
Quote:

$ php -r 'echo get_include_path() . PHP_EOL;'
Which tells you where PHP looks for stuff.

You want the output from (2) to include (1). On my system, (1) is /usr/lib/php and that is where PEAR lives, but I don't know if it is different on your 64-bit system.

lpallard 07-11-2013 04:28 PM

OK I have tried what you suggested and everything make sense.

Code:

pear config-show | grep 'PEAR directory'
outputs

Code:

PEAR directory                php_dir          /usr/lib64/php
And

Code:

php -r 'echo get_include_path() . PHP_EOL;'
outputs

Code:

.:/usr/lib64/php:/usr/include/php:/usr/lib64/php/PEAR
The paths that I got from these commands reflects exactly what I have entered in my php.ini. No surprises there. Then the paths output by (2) include the output of (1) as you mentioned.

The guys on the Horde maillist are convinced that Slackware's pear setup is broken somehow. I am not sure what to think. I dont know enough about this stuff but I am thinking that either Slackware 14 has major php issues (and other issues I wont talk about here) or the horde devs are not taking my issue seriously enough.

lpallard 07-15-2013 09:44 PM

Not sure what happened exactly, but I uninstalled everything in pear (from the horde channel) unregistered the horde channel, cleared cache, and reinstalled everything.

Works fine now!

Strange though, I tried on a Slack 14 VM before I succeded on my local server and it failed too.

I wonder if there;s something Horde doesnt like about Slackware or vice-versa?

Until next time, thanks everybody for the great help!

As usual, slackware rocks!

:Pengy:


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