I am unable to access my website though http while using a proxy On some networks like my schools load balancing
1 is IPv6 I think
yeah
I use IPv6 all the time…
I never doo
but that entry is annoying
spheard, you should
I know, I know
nice
I can add icons to index files using _log
how can I change the appearance of the apache directory listing ?
Ok, wtf. This just started a few hours ago, and I can't figure out why… but when I load my blog page's /feed/ link, I get a blank page, and the log indicates that the child process is segfaulting.
I have several wordpress blog web hosting installs on the server for various projects, and the others work fine
How can I get more verbosity about why this is happening?
Oh weird… now it just magically started working again
grrr
After 200 reloads and segfaults, I come here to bitch, and now it starts working fine.
is there a room for struts2 assist?
I know this will be a OS war question but do you know the Time per request is larger when running RHEL 4 Apache/2.0.52 vs Debian Etch Apache/2.2.3?
how is it an OS war when using different apache versions and the same OS?
you know some people will say oh because its debian and debian is better than redhat.
thats all
I am about to test rhel apache 2.2.3 but not 100% sure it will match up
I am unable to access my website though http while using a proxy. On some networks (like my school's load balancing setup) i can access the page if i use https instead. It isn't my firewall. fyi I am using DynDNS and my isp is Cox - has anyone even heard of problems like this?
well, the difference between distros is mainly which software is included and the mechanisms used to manage the software, not performance so much because they are the same operating system
yeah i hear you. I need to switch from debian to rhel due to some commercial products and just noticed that there is a time per request. I mean its pretty significant.
I'm in the process of moving from rhel to debian,
yeah i rather stay on debian but really dont have a choice.
apr-1-config ever run into that as a dep on rhel? I thought it was in apr-devel but I guess not
are you using default configs? some stuff like enabling .htaccess files can caue a sizeable hit when measuring high performance(due to extra system calls for every request)
I actually don't use the rhel packages for apache, I compiled myself+mod_perl
yeah well we do alot of virtualhost and we have to have .htaccess enabled
never mind - my isp blocked port 80
I am having a problem getting Apache to run on Fedora Core 6. It says that it can not bind to port 80 because port 80 is in use, however if i change Listen to point to port 81 everything works. Netstat does not tell me that anything else is listening on port 80. Can anyone offer any
sugestions as to how I can debug this. I do not see anything useful in the logs.
where would be the apache configuration settings for ubuntu server?
Ed_L1 try to do "lsof -p 80"
actually that is the wrong command. Sorry.
change it back to port 80, stop apache. Then do netstat -anlp | grep 80
to see what i listening.
is*
mm should i be removing previous apache if i'm compiling new one from source?
alright, I'm hurting from this… no matter what kind of informational options I try to apache, I'm getting that it can't find a shared library object… and it's driving me insane… I ldd'd all of my modules (.so) but none of them link to the offending .so file
Gentoo?
it's very frustrating because I can't track it down and I can't even get a line number
yup
HOW DID I GUESS~!
was there a problem with the latest emerge version or something?
for my next trick I will suggest installing Centos
?
why?
because
Gentoo is crazy making
no advertisment please… because I use ubuntu here at home and I'm quite happy
I avoid it because I like things to work without so much trouble
so I'm sorry I can't help
but anyway, how did you guess it was gentoo?
okay, well there goes that glimmer of hope
because it is exactly the kind of problem gentoo is notorious for
conflicts, breaking no reason, hammer/computer, crazy making
gentoo has its place. I've seen real advanatges from rebuilding everything for processors with certain limitiations like small cache as with the via nemiah procs.
other than linux from scratch, I'm not aware of any other distros that allow you to rebuild everything to your spec so easily
also great for small systems, or embedded ones. making sure only what you really need is linked in
we're fiddling with a some ICC build from china
using ICC instead of gcc for the hole shebang
oh what's that other distro I've used that's all barebones and compiled
….
hurm its a real thin deal
for clusters and servers
can't recall at the moment
fyi wife was impressed with Ashland, updating resume now
ah ha CAOS
awesome!
hmm, not familiar with that one, or ICC either. I'll give them a look.
ICC is intel's compilre
and caos comes from http://www.infiscale.com/
we use warewulf for provisioning one of our sites
oh yes I am, familiar with ICC that is. It just didnt click.
and I was evaluating caos as our server platform
btw my boss is from Iowa
yeah where?
went to UoI
cool
he'd happily tell you how Medford compares to Iowa
just up the road
heh, Iowa City is ok, des moines is way better though.
He's a HawkEye then.
that's too bad
lol
I dont think he'll hold that against you
has he been to the state fair?
you'll have to ask him after I hire you
ask him if he ever saw the butter cow.
its legendary.
butter cow? I'm afraid to ask
cow made of butter…
figured
gah
heh
hey, not much to do here, we have to be creative
noted
welp time for me to go home! I look forward to the resume
ttyl
see ya
I'm new to apache. Under Arch linux, the default DocumentRoot is /home/httpd/html. Should I change DocumentRoot, or is it fine?
That's fine
Great, thanks
hi could anyone else me out? I'm trying to compile apache 2.2 from source on ubuntu server and having awful problems (http://pastebin.com/m52f6d70c look at the bottom)
anathematic, Why not just use the packages?
so it auto enables the modules i need
anathematic, The Ubuntu packages have the modules you need
Is this an AMD64 machine?
yeah it is, i need mod_proxy_balancer installed
which i'm being told doesn't come enabled / installed whatever
And why can't you use apxs to build it?
install the default Ubuntu apache packge, then build mod_proxy_balancer (or whatever) from source with apxs
sorry? I'm not the most linux-based person so yeah you may need to explaint o em a little more
okay then i'll install the package now
Oh wait, its part of core
okay
Ok, install the default Ubuntu apache2 packages, then use 'a2enmod proxy_balancer'
okay i'll try t hat now
if you are comfortable with building from source please do.
haha well building from source is playing up
arreyder, He's not a Linux person, and as much as I hate the Debian apache packaging, this is pain-free
i wouldn't mind knowing what the problem is from there
it is *MUCH* preferred over using the bastardized layout that most of the distro's provide
pain free?
karma debian
debian has karma of -314
well here is the problem http://pastebin.com/m52f6d70c when i go to make it
karma ubintu
ubintu has neutral karma
if i could just get around that problem
karma ubuntu
ubuntu has karma of -23
i could go from there
You could try rebuilding with -fPIC enabled in your CFLAGS
looking.
looking is a good start.
how would i go to do that?
Don't forget to rebuild php and mysql also
export CFLAGS="-fPIC" for starters
oh yeah i think that rest of that is covered in my tutorial as well
trivial.
trivial is adj. 1. Too simple to bother detailing. 2. Not worth the speakers time. 3. Complex, but solvable by methods so well known that anyone not utterly cretinous would have thought of them already. 4. Any problem one has already solved (some claim that hackish `trivial usually evaluates to
`Ive seen it before). Hackers notions of triviality may be quite at variance with those of non-hackers. See nontrivial, uninteresting.
your tutorial?
your tutorial is failing for noobs, megaspaz?
http://www.simplisticcomplexity.com/2006/8/13/apache-2-2-mod_proxy_balancer-mongrel-on-ubuntu-6-06
http://code.gnu-designs.com/apachebuild/
Or my single-pass script to do it all
What is 'mongrel'?
whoa okay *does a lot of reading*
mongrel is for ruby on rails web applications
What is it?
it's a server for ruby for hosting ruby web applications
uhm… can't ruby work under Apache?
setuid this is just what everyone saids to do
fajita, mongrel?
mongrel is http://mongrel.rubyforge.org/
I dunno, I'd rather use mod-ruby
fajita, pound?
pound is =a HTTP load balancer available at: http://www.apsis.ch/pound/
ruby on rails to mongrel and then apache to mongrel using mod_proxy_balancer
eek
So I guess performance isn't a concern then
well mongrel performance is a concern
I should update my build-ap2 script for current apache, its a couple of years old in versions
hence you run it through apache to handle all your static files
anathematic, add squid in there somethere too
squid?
Squid + Apache2 == bad.
You rolled a 9, arreyder!
Squid is not multithreaded
wow
[ tdd19842] hey guys whats a good way to accept credit cards through my site with out a login?
double wow
I did some pretty thorough tests against Squid vs. Apache on port 80, and Squid (w/Apache2 behind) was getting about 1,200 reqs/sec.
might as well add as much as possible
i must confess i'm still having awful problems compiling apache
Apache listening on port 80 was about 5k reqs/sec.
: why is this so hard
anathematic, its not hard at all
anathematic, Look at my scripts, and see how I'm building it
Its all very well-commented
http://code.gnu-designs.com/apachebuild/ is that it?
what gave you the idea that squid is not threaded?
arreyder, The Squid devs in #squid
arreyder, Squid doesn't support SMP _at all_
At least not as of about 2 months ago
that doesnt mean it's not threaded…
anathematic,
http://tinyurl.com/3bvc3a
whoa what is this setuid ?
anathematic, its a link to the answer to your AMD64/libz.a issues
hi, any derby users here; Im wondering about a handful of performance issues with regards to database layout
Ok, I guess I should test a build of the latest apache 2.x with my single-pass script
having a look now
who am i?
ooh, a sentient being.
heheh… just wanted to check my handle
over and out, good buddy
while I'm at it… I'm getting 403 errors.
403?
403 is Forbidden or don't forget to look in the error log
there you go
there are two files in /var/www/html with the same owner and permissions. One gets served, the other 403's. Could it be MIME type?
permissions
Files need to be readable by the Apache user (e.g. 644). Directories and scripts need the X bit too (e.g. 755). That includes *all* parent directories of a resource. If you have a symlink, check both the source and target. If you have AllowOverride for an unreadable directory, the error message
will refer to .htaccess. See also selinux
access to xxxxx demied
err denied
(13)
(13) indicates a file permissions problem. Make sure that Apache can read the file(s) and directories being accessed. See also http://wiki.apache.org/httpd//13PermissionDenied
See above
namei
namei follows a pathname until a terminal point is found. Use namei -m /path/to/files to check the permissions of the file and the path up to it. See http://sial.org/howto/debug/unix/parsepath if your system doesn't have namei
hm. One file in the same directory with the same owner and permissions works. The other doesn't.
those should help.
namei?
namei follows a pathname until a terminal point is found. Use namei -m /path/to/files to check the permissions of the file and the path up to it. See http://sial.org/howto/debug/unix/parsepath if your system doesn't have namei
I've never heard of that before
Weird… 13 years of Linux, and I've never even heard of that one
ok. I have that…. checking.
(using FC6, btw)
doesnt suprise me since you somehow also missed libpthread being used in every squid build since the beginnig of time.
:P
touche
i'm stil having problems understand this
If you truly know a way to get better performance out of Squid on SMP, with Apache behind it, I'm all ears. When I moved from UP to SMP, the performance went way down, until I realized that Squid wasn't able to serve to the children on the other proc.
You said squid wasnt multithreaded.
namei is of no help
It is.
it shows the same thing for both files.
compliant regex for any directory in /home/ that is NOT called 'www'?
what's the file that is not serving please?
f8t1.iso
hypnotoad.jpg works fine
do you have a Addhandler for iso defined somewhere?
how large is the iso file?
791MB
is it on a local filesystem?
addhandler…. where would I look? /etc/mime.types does have an iso setting
yes it's local. It's in /var/www/html
and yet… I get the permission denied error.
one sec, bit distrcted atm
no problem at all… any advice here is WELL worth the price
and the wait
what's the mime type for it set to please?
checking…
application/octet-stream bin dms lha lzh exe class so dll img iso
no .htaccess file in the dir is there?
Is there some size limit?
no. I try not to have any .htaccess anywhere at all.
loading mod_mime?
mod_mime_magic, mod_mime are both loaded
almost has to be handler/mod_mime related
and that means… what?
put up your config please?
apc
Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'. or Alternative PHP Cache and does what php refuses to do: Optimize fajita's PHP code. http://pecl.php.net/package/APC
rafb.net/paste
rafb.net/paste is a good choice
which? /etc/httpd/conf/httpd..conf?
sure for starters
anathematic, You still around?
anathematic, Looks like my single-pass script works great with current php/apache/mm/mod_ssl/etc. so far, I'm running a 4th test to be sure
http://apache.pastebin.ca/649400
i have to be approaching this wrong, /home/(?!www(/|$)).+
I have a question, *WHAT* are the implications of someone submitting a username and password in *GET* on an "https" url? i.e. https://www.something.com/?user=blah&password=bleh
Would I be accurate in saying that this information can be seen on every hop all the way to the final site?
I got this from someone else: ^\/home\/(?!www\/).*\/$
hi folks, i'd like to use mod_expires in apache 2.0.x. does the module support reloading of changed files on the server?
.* is wrong isn't it?
that's a similiar expression
It might be. Does that match any directory starting with www?
No wait
Anything not starting with www
not given up yet, trying to recreate your problem locally
thanks!
i am now
sorry i had run off to lunch for a second
anathematic, No worries, I've found a missing package, rebuilding again now
ahh i see no problem setuid
i may need a little bit of help on how to use it would you mind?
Sure, you'll need my updated versions
okay let me know when they are up
It will build the latest php/apache/mod_ssl/etc. from upstream sources
Yep, I'll let you know
thanks
any help folks?
Ok, this works perfectly now
selinux
selinux is The New Universal Scapegoat! http://www.nsa.gov/selinux/ httpd FAQ: http://fedora.redhat.com/docs/selinux-apache-fc3/ TIP: Use 'setenforce 0' to set permissive and test, man the
following: chcon, getsebool, setsebool - Use `ls -alZ` to see context; More: http://fedoraproject.org/wiki/SELinux - http://danwalsh.livejournal.com/
is this fedora?
yep. fc6
http://code.gnu-designs.com/apachebuild/
anathematic, Fetch functions, source.md5 and build-ap2, and stick them in some directory (I use /var/build/apache). Then just run ./build-ap2
It will fetch, md5sum, verify, unpack, configure, build and install apache 2.2.4, php 5.3.2, mm, mod_ssl, mod_perl, etc. for you
By default, they go into /usr/local/, but you can change that… its all well-commented
Yes. FC6; apache package is httpd-2.2.4-2.1.fc6
check out the selinux links fajita provided, another apache supporter just suggested it may be the problem
i use's wget to download all those functions but then i go sudo ./build-ap2 is saids command not found?
Are you sure you're executing it from the right directory? Does it have +x permissions?
i'm just remaking the directory to make sure i do it correctly now
You need 'functions', 'source.md5', and 'build-ap2' in the same directory
well lookie there.
You better make sure your doing something right if you're following setuid's instructions. buyer beware…
arreyder, fajita, etc, that was it. I have to keep that in mind.
barreyder, fajita, etc, that was it. I have to keep that in mind./b
many thanks
thank megaspaz
Thanks!
megaspaz++
nope no luck
anathematic, pastebot the full output
ls -l /var/build/apache/build-ap2
pumpkin time for me. take care.
/quite
Right, chmod +x build-ap2
yep
http://pastebin.com/m1d3e09f7
anathematic, install lex
part of the 'flex' package
You should also install apt-file or dlocate, and use them to find which packages upstream, contain the missing files you'll need
anathematic, keep going… install openssl
haha going now
this chat is for the apache web server?
Mixmasterxp, Yes, as /topic indicates
anathematic, Check /var/build/apache, do those tarballs exist in the dir?
Wait… your copy is out of date
mod_perl is 2.0.2, not 2.0.1 in the updated version
ahh i see
where to go from here?
Re-fetch the source.md5 and build-ap2 script from the same location
You must have an older copy, fetched before I copied in the updated versions about 20 minutes ago
Oh, you know what, I do see a smallish bug…
haha i see
Some kind of weird caching, I had to force a server reload of the build-ap2 to refresh the updated copy
Just make sure lines 62-76 are showing the latest versions
mostly, yes
i seem to be having that problem with command not found again for "./build-ap2"
mm
oh it was the permissions
Right
compiling again now
http://pastebin.com/m1c1be539
Did your version of build-ap2 (around line 74 or so), reference mod_perl 2.0.1? Or 2.0.2?
It should be 2.0.2
i didn't open the build-ap2 at all, i'll do it now
new problem http://pastebin.com/m1d129c67
Install libgdbm-dev
Then re-rnu
er, re-run
going again
http://pastebin.com/m317c4ada
is it normal to have this many problems?
These aren't problems, your system lacks the proper tools to build Apache fully
missing headers, libraries and so on
ahh i see, yeah i've only got the basic install i guess