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.
|
|
08-08-2006, 11:21 PM
|
#1
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Changing over to apache2
I'm currently running Apache 1.3 on my webservers. I d/l etc. Apache 2.
It does work for my top level domain/website, however, I have a few virtual domains in my old config that don't work. Any ideas on what to do?
Maybe a guide that steps out changing over from 1.3 to 2?
EDIT**** Yes, updated php and mysql also.
ADDITIONAL EDIT ****
It is a fully functioning webserver that can't go offline, so I'm experimenting with a backup server that I don't care what happens. All pages, configs, etc are exact copies from main server.
Last edited by cwwilson721; 08-08-2006 at 11:27 PM.
|
|
|
08-08-2006, 11:39 PM
|
#2
|
Member
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102
Rep:
|
What screwed me up when switching over to apache2 was that the config files were no longer in /etc/apache/ but in /etc/apache2/.
I kept editing /etc/apache/httpd.conf over and over again thinking I had made errors in my virtual host sections.
Maybe you already know this and have a different problem, but hopefully it's just as simple as it was for me.
|
|
|
08-08-2006, 11:51 PM
|
#3
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
I know that one, thanks.
Some how, they now work...
I have NO clue what I did...
|
|
|
08-09-2006, 12:38 AM
|
#4
|
Member
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344
Rep:
|
apache2 extra configurations
Hi
I have been using Apache2 for a while.
At least in the 2.2.x series (don't remember really how it was in 2.0.x), there is a separate /etc/apache/extra dir for all the "miscelaneous" or "extra" configurations, like for example how directories that do not have an index have to be browsed, etc.
You have to activate them from the httpd.conf
Greetings, and may the Source be with you!
|
|
|
08-09-2006, 01:09 AM
|
#5
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Just noticed that the bugger is 2.0.58 Just tried compiling 2.2, and having issues..
Will get back.
|
|
|
08-09-2006, 07:24 PM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
OK.
Here's the scoop so far: - Was running 1.3 from Slackware -current, with multiple virtual websites. All working fine, except I could not transfer large files.
- Downloaded Apache 2.0 package from Linuxpackages, installed, reconfigured the /etc/apache2/httpd.conf file, is running OK, but no large file support (My bad, thought it was 2.2)
- Downloaded source for Apache 2.2, configured (./configure --prefix=/usr), make, checkinstall. Then had a heck of a time finding the httpd.conf file (was in /usr/conf). Never got it running right, was always saying that it was started, but was not.
- Uninstalled 2.2, 2.0, 1.3 and reinstalled 1.3, then 2.0 w/php 5. That's what is running now. Still want 2.2 for large file support.
Does anybody know where a running package is of Apache 2.2? The source route is EVENTUALLY usuable, but what a bugger it is.
|
|
|
08-11-2006, 05:53 PM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
OK. Redid everything.
/
Instead of
Code:
./configure --prefix=usr
I did That way the thing setsup to the directories in the docs. Then did a 'make', 'checkinstall', then
Code:
rm /usr/sbin/apachectl ## To remove the old apachectl from 1.3 and 2.0
ln -s /usr/local/apache2/bin/apachectl /usr/sbin/apachectl ##To make sure that typing 'apachectl' will work
I also removed the old /etc/apache/httpd.conf and /etc/apache2/httpd.conf directories.
Now, for configuring for multiple virtual directories, and directory browsing...
Last edited by cwwilson721; 08-11-2006 at 06:35 PM.
|
|
|
08-11-2006, 06:10 PM
|
#8
|
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158
Rep:
|
Quote:
Originally Posted by cwwilson721
Does anybody know where a running package is of Apache 2.2? The source route is EVENTUALLY usuable, but what a bugger it is.
|
I have compiled 2.2.3 version that I haven't got time to test. I did a rather lengthy configure and actually followed the original slackware layout. I will post the configure options for you later today if you want.
I am still a bit confused (or haven't got a hang) of the new httpd.conf and how everything comes together.
Tux,
|
|
|
08-11-2006, 06:35 PM
|
#9
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
I also
Code:
ln -s /usr/local/apache2/conf/httpd.conf /etc/apache2/httpd.conf
just so that part is normal...
|
|
|
08-12-2006, 12:29 AM
|
#10
|
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158
Rep:
|
As promised...here's my configure options for apache 2.2.3
Quote:
### apache 2.2.3 config
./configure --prefix=/usr --exec-prefix=/usr --libexecdir=/usr/libexec/apache2 --mandir=/usr/man --sysconfdir=/etc/apache2 --datadir=/var/www --includedir=/usr/include/apache2 --localstatedir=/var --with-apxs --disable-actions --disable-autoindex --disable-cgi --disable-dir --enable-cache --enable-charset-lite --enable-deflate --enable-disk-cache --enable-expires --enable-ext-filter --enable-file-cache --enable-headers --enable-info --enable-logio --enable-mem-cache --enable-mime-magic --enable-rewrite --enable-so --enable-speling --enable-ssl --enable-unique-id --enable-imagemap --enable-log-forensic --enable-version --enable-static-support --enable-usertrack --enable-vhost-alias --enable-auth-dbm --with-mpm=worker --enable-mods-shared='rewrite headers ssl' --enable-shared-support
|
Hopefully that helps to customize the install.
Tux,
|
|
|
08-12-2006, 12:38 AM
|
#11
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Cool. Too late for me (already configured it...lol)
I'll definately use it next time tho...
|
|
|
08-12-2006, 01:36 AM
|
#12
|
Member
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344
Rep:
|
SlackBuild
Why don't you use a SlackBuild? Take the original Slackware SlackBuild for Apache1 as a starting point, then modify it to fit your needs. That's what I did.
It is not only the compile-time options. Take a look inside the SlackBuild. Take a good look. Now build your package the same way Pat would do, but this time this package will be only for you, and you only will be its Master. Isn't it an art?
At the beginning, it gave me lots of problems. But with some time playing with these toys, I can tell I do not regret having upgraded to Apache2. And as it's a package of mine I fitted it to suit my needs like an Armani fit-tailored suit . That's the good thing about using the Source.
May the Source be with you!
|
|
|
08-12-2006, 01:41 AM
|
#13
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
My main constraint was time. Since I ran out, I just did it. When 11 comes out, I'll redo my webserver and backup server, then I'll do Apache 2.2 w/good Slackbuild. I now have the time, and can come up with one, and test it on my backup webserver.
Thanks for all the advice and ways to go.
|
|
|
All times are GMT -5. The time now is 07:26 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
|
|