Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-18-2006, 08:13 AM
|
#1
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Rep:
|
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 08:15 AM.
|
|
|
05-18-2006, 08:51 AM
|
#2
|
Member
Registered: Sep 2003
Location: Scotland
Distribution: LinuxMint16 & Ubuntu 12.0.4 LTS
Posts: 218
Rep:
|
Why not use the Slackware packages?
Anyway check your httpd.conf file for a conflicting LoadModule entry which PHP may have added.
|
|
|
05-18-2006, 09:34 AM
|
#3
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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.
|
|
|
05-18-2006, 10:17 AM
|
#4
|
Member
Registered: Sep 2003
Location: Scotland
Distribution: LinuxMint16 & Ubuntu 12.0.4 LTS
Posts: 218
Rep:
|
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:
Once they have been installed restart apache with either:
or
if you use mod_ssl:
Let us know how you get on.
Regards
dkpw
|
|
|
05-19-2006, 04:39 AM
|
#5
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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.
|
|
|
05-19-2006, 12:33 PM
|
#6
|
Member
Registered: Sep 2003
Location: Scotland
Distribution: LinuxMint16 & Ubuntu 12.0.4 LTS
Posts: 218
Rep:
|
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
|
|
|
05-20-2006, 09:12 AM
|
#7
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
Thank you
I am going to avoid a reinstall as long as possible but thank you for your help and suggestions.
|
|
|
05-20-2006, 05:41 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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 05:43 PM.
|
|
|
05-21-2006, 07:57 AM
|
#9
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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.
|
|
|
05-21-2006, 02:21 PM
|
#10
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
05-22-2006, 06:57 AM
|
#11
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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?
|
|
|
05-22-2006, 02:24 PM
|
#12
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
05-23-2006, 01:48 PM
|
#13
|
Member
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342
Rep:
|
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!
|
|
|
05-23-2006, 02:36 PM
|
#14
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
05-25-2006, 10:00 AM
|
#15
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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 10:06 AM.
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|