LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-08-2006, 10:21 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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 10:27 PM.
 
Old 08-08-2006, 10:39 PM   #2
ryanoa
Member
 
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102

Rep: Reputation: 15
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.
 
Old 08-08-2006, 10:51 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
I know that one, thanks.

Some how, they now work...

I have NO clue what I did...
 
Old 08-08-2006, 11:38 PM   #4
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
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!
 
Old 08-09-2006, 12:09 AM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Just noticed that the bugger is 2.0.58 Just tried compiling 2.2, and having issues..

Will get back.
 
Old 08-09-2006, 06:24 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 08-11-2006, 04:53 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
OK. Redid everything.
/
Instead of
Code:
./configure --prefix=usr
I did
Code:
./configure
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 05:35 PM.
 
Old 08-11-2006, 05:10 PM   #8
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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,
 
Old 08-11-2006, 05:35 PM   #9
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
I also
Code:
ln -s /usr/local/apache2/conf/httpd.conf /etc/apache2/httpd.conf
just so that part is normal...
 
Old 08-11-2006, 11:29 PM   #10
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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,
 
Old 08-11-2006, 11:38 PM   #11
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Cool. Too late for me (already configured it...lol)

I'll definately use it next time tho...
 
Old 08-12-2006, 12:36 AM   #12
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Wink 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!
 
Old 08-12-2006, 12:41 AM   #13
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
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.
 
  


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
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt SUSE / openSUSE 14 04-18-2006 11:36 AM
Problem changing the video adapter setting and changing the screen resolution habiblove Linux - General 3 02-18-2006 05:10 PM
Apache2 apache2-common WebDav timgerr Linux - Networking 1 08-25-2005 09:41 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM

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

All times are GMT -5. The time now is 06:11 AM.

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