LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-18-2006, 07:13 AM   #1
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Rep: Reputation: 2
Unhappy installing apache 1.3.35 and php 5.1.4 on my Slackware 10.2


In an attempt to get php and postgres working together I have attempted installing apache 1.3.35 and php 5.1.4 on my Slackware 10.2 linux server.
Neither build from source gave any errors but I cannot get httpd to start with apachectl start. The error I see in /var/log/apache/error_log is:-
*** glibc detected *** double free or corruption (!prev): 0x08170ce8 ***

and when browsing to the site the browser gets:-

Server Error
The following error occurred:

[code=CANT_CONNECT] Could not connect because of networking problems. Contact your system administrator.

Please tell me what I have done wrong.

Last edited by stockton; 05-18-2006 at 07:15 AM.
 
Old 05-18-2006, 07:51 AM   #2
dkpw
Member
 
Registered: Sep 2003
Location: Scotland
Distribution: LinuxMint16 & Ubuntu 12.0.4 LTS
Posts: 218

Rep: Reputation: 30
Why not use the Slackware packages?

Anyway check your httpd.conf file for a conflicting LoadModule entry which PHP may have added.
 
Old 05-18-2006, 08:34 AM   #3
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Backoff to std Slackware packages for Apache & PHP

I cannot see any conflicts and in fact would be quite happy to back off to the standard Slackware packages but do not know how.
Suggestions please on how to get back.
 
Old 05-18-2006, 09:17 AM   #4
dkpw
Member
 
Registered: Sep 2003
Location: Scotland
Distribution: LinuxMint16 & Ubuntu 12.0.4 LTS
Posts: 218

Rep: Reputation: 30
Now you're asking.

I'm not sure of the most efficient method for uninstalling Apache when it's been compiled. Some programs have an uninstall option or you can make with an uninstaller, this may be your best bet. If not someone else may be able to assist. This may also apply to PHP.

This is also why using Slackware packages is so convenient, you can uninstall the entire application with one command:

Code:
removepkg apache-1.3.35-i486-2_slack10.2.tgz
Once you have stopped httpd and managed to uninstall it you can set about installing the Slackware packages.

To install the apache and PHP packages, please visit Slackware.com on the "Get Slackware" link and find a nearby FTP mirror. I assume you are using stable rather than current.

You need to download the following packages which will be in Patches, as these are security updates since the release of 10.2.

apache-1.3.35-i486-2_slack10.2.tgz
php-4.4.2-i486-3.tgz
mod_ssl-2.8.26_1.3.35-i486-1_slack10.2.tgz

You'll note that this is PHP4 which may not be what you are after. Download to one folder and try this command:

Code:
upgradepkg *.tgz
Once they have been installed restart apache with either:

Code:
apachectl start
or

Code:
apachectl startssl
if you use mod_ssl:

Let us know how you get on.

Regards

dkpw
 
Old 05-19-2006, 03:39 AM   #5
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Thank you for your suggestions however no success as yet.
I have done all that you said, the only change being I am using current rather than stable.
The error I see in /var/log/apache/error_log is:-
*** glibc detected *** double free or corruption (!prev): 0x08170cc8 ***
almost the same as I had before.
I have also done a reinstall of glibc all without avail.
apachectl configtest tells me
Syntax OK
so I do not suspect the httpd.conf.
 
Old 05-19-2006, 11:33 AM   #6
dkpw
Member
 
Registered: Sep 2003
Location: Scotland
Distribution: LinuxMint16 & Ubuntu 12.0.4 LTS
Posts: 218

Rep: Reputation: 30
Hi Stockton,

Sorry to hear that you are still experiencing problems. I must confess that I am at the end of my suggestions and so hopefully someone else on the forum may be able to assist.

My only remaining comment would be to suggest a reinstall of Slackware, which depending on the amount of other configuration you have performed, may be the quickest route to a working system.

Good luck

dkpw
 
Old 05-20-2006, 08:12 AM   #7
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Unhappy Thank you

I am going to avoid a reinstall as long as possible but thank you for your help and suggestions.
 
Old 05-20-2006, 04:41 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
One problem you'll be facing is that the PHP that Pat delivers
knows nothing about postgres.

I'd suggest to do a standard install of slack (minus PHP) and
grab the source-package and install-script for PHP of Pat,
edit the build-script to accommodate postgres and all should
be well with the world.

As far as your own builds go: in which directories did you
install the stuff, did you remove the originals?


Cheers,
Tink

Last edited by Tinkster; 05-20-2006 at 04:43 PM.
 
Old 05-21-2006, 06:57 AM   #9
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Reinstalling from scratch sounded too much like a Windows solution to me so being somewhat hard headed I did not do that.
My solution so far, with some guidance from Patrick J. Volkerding, is as follows:-
I altered my swaret.conf settings to 10.2, and "upgraded" Apache and glibc and removed all references to php from httpd.conf and restarted Apache and as I can now browse to the site(www.stockton.co.za) I am happy that the Apache part of the problem is resolved.
Next trick is to get php to work again and here I am going to try your suggestion.
 
Old 05-21-2006, 01:21 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Good luck, and I don't use swaret or tools the like for reasons
just like that - if anyone is to break my system it's me ;}

The php-approach should work - no troubles. I've done that before
in exactly that way (well, I also removed the references to MySQL
since I have no desire to use that heap of bovine excrement).


Cheers,
Tink
 
Old 05-22-2006, 05:57 AM   #11
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
In an email I received from Patrick Volkerding, he said and I quote
I'm on record as being no huge fan of Swaret though... it's messed up more machines than I can count.
end quote
So yes I will go along with your suggestion and not allow someone else to break my system. I will do it myself.......:-)
BTW Your comment re MySQL interests me. Why would you postgresSQL rather than MySQL?
 
Old 05-22-2006, 01:24 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by stockton
In an email I received from Patrick Volkerding, he said and I quote
I'm on record as being no huge fan of Swaret though... it's messed up more machines than I can count.
end quote
So yes I will go along with your suggestion and not allow someone else to break my system. I will do it myself.......:-)
Excellent choice ;}

Quote:
Originally Posted by stockton
BTW Your comment re MySQL interests me. Why would you postgresSQL rather than MySQL?
Let's just say the licensing aspect and standard compliance.
MySQL has done a dis-service to StandardSQL like MS has to
HTML to begin with ...

And many other things :}
Read here:
http://groups.google.com/group/pgsql...0b2027f04dff0e
and
http://groups.google.com/group/pgsql...11b0e5b8791a65

And of course:
http://sql-info.de/mysql/gotchas.html

I'm not saying that PostgreSQL is flawless, it had (and
has) a few issues; but over all it's way more mature
that MySQL is;
http://sql-info.de/postgresql/postgres-gotchas.html




Cheers,
Tink
 
Old 05-23-2006, 12:48 PM   #13
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Talking if you want to build from source... use the SlackBuild

Hi people

I have Apache 2.2.2 and PHP 5.1.4 built from source and running. No problems so far. I just made the packages using the great SlackBuilds (just as Pat does). (modifying them to suit my needs of course). I think the better way to use the Source is to use it the same way the Master does

May the Source be with you!
 
Old 05-23-2006, 01:36 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by folkenfanel
Hi people

I have Apache 2.2.2 and PHP 5.1.4 built from source and running. No problems so far. I just made the packages using the great SlackBuilds (just as Pat does). (modifying them to suit my needs of course). I think the better way to use the Source is to use it the same way the Master does ;)

May the Source be with you!
What an excellent suggestion, this must be why I made it
three days ago ;}


Cheers,
Tink
 
Old 05-25-2006, 09:00 AM   #15
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Can you give me a bit more info please.
I have the Slackware 10.2 CDs here in South Africa and my server is in Texas USofA.
On the Extra CD from the Slackware 10.2 in the n directory I find a php directory containing:-
-rw-r--r-- 1 root root 152 2002-03-03 08:06 doinst.sh.gz
-rw-r--r-- 1 root root 343 2003-11-13 23:43 mod_php.conf.example
drwxr-xr-x 2 root root 2048 2005-08-30 19:11 pear
-rw-r--r-- 1 root root 4086074 2005-07-11 12:07 php-4.4.0.tar.bz2
-rw-r--r-- 1 root root 619 2003-11-16 23:26 php.ini.diff.gz
-rwxr-xr-x 1 root root 4717 2005-09-05 04:53 php.SlackBuild
-rw-r--r-- 1 root root 834 2003-11-16 23:27 slack-desc


My first thought is to pack the whole lot into a bz2 and copy it to my server, which is fine and easy, but now what.
Do I need to unpack the php-4.4.0.tar.bz2 into a suitable directory, make the alterations I need, ie add --with-pgsql=/usr/local/pgsql/ (this is where postgresSQL has been installed to) to the php.SlackBuild and run the php.SlackBuild in the same directory where I unpacked the php-4.4.0.tar.bz2 file?

Last edited by stockton; 05-25-2006 at 09:06 AM.
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache with PHP in Slackware 9.0 traveldanimal Slackware 3 09-28-2004 12:41 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-03-2004 11:49 PM
Apache/PHP Help on Slackware wenberg Linux - Software 7 01-03-2004 10:04 PM
php and apache and slackware 9 joel112 Linux - Software 4 07-10-2003 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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