RE: templating system opinions (axkit?)

2003-07-23 Thread Hauck, William B.
Hi,

I've been considering using a template system for an app that I'm working, but decided 
against it as the designers who would be putting the actual pages together (look n 
feel) use Adobe GoLive which does 'bad things' to non-html stuff (at least in my 
experience).

What i've done is just use completely external html files with html-compliant comments 
indicating the data field. (example !-- APPNAME_USER_FIRST_NAME --).  My application 
just reads in the html on startup and does a series of substition statements over the 
file as necessary to replace the comments with the actual data.  Thus, each type of 
page has one base html (or html file pieces) that are merged with each other and data 
as necessary allowing all logic to be kept in the program.

It's certainly not the most robust system in the world, but it's simple and compatible 
with existing skill sets and design tools.  Also, it only reads those html files once 
at startup so if you change designs on the fly the application needs to be restarted.  
I'll be adding a function to either stat the files before using the cached version or 
just automatically reload the files every 15 minutes regardless of changes to 
eliminate the SIGHUP issue.

Please do note that I'm only expecting, on the VERY high side, a few thousand users to 
be hitting it each day.

good luck,

bill


-Original Message-
From:   Matt Sergeant [mailto:[EMAIL PROTECTED]
Sent:   Wed 2003-07-23 4:00 AM
To: Patrick Galbraith
Cc: [EMAIL PROTECTED]
Subject:Re: templating system opinions (axkit?)
On Mon, 21 Jul 2003, Patrick Galbraith wrote:

 Anyone on this list use AxKit? I'm curious how it pans out.

 I like the idea of XSLT/XML, though I find myself trying to read between
 the lines of hype vs. something that's actually very useful. I don't know,
 so I don't have any opinions. I do know I'd like to use XSLT/XML so as to
 have a project to use it for, hence learn it.

I'm just about to roll out a site using AxKit that has to do about 3
million hits/day out of the box.

The main reason I like AxKit is it prevents me from screwing up and
creating XSS bugs, because everything has to be well formed. I almost
never have to use html or URL encode/decode functions - I just write
straight perl code.

I barely notice that I'm using XML.

It's also worth noting that XSLT is a portable skill, with lots of great
offline tools.

It's also worth saying: never listen to hype. Evaluate solutions based on
your criteria. AxKit matches mine but it doesn't mean it will match yours.

Matt.







CONFIDENTIALITY NOTICE: This E-Mail is intended only 
for the use of the individual or entity to which it is addressed and may contain 
information that is privileged, confidential and exempt from disclosure under 
applicable law. If you have received this communication in error, please do not 
distribute and delete the original message.  Please notify the sender by E-Mail at the 
address shown. Thank you for your compliance.



RE: Apache config problem .. please help

2003-07-03 Thread Hauck, William B.
You can use
netstat -a
to list all the ports in use--look for your configured port or 'http'

you might wanna try
ps -ef | grep http
to search for a process not in top's display (can you see all?  Try
setting n=100 and expanding xterm (if using one)).

If 'ps -ef | grep http' returns nothing check to make sure your PID file
isn't still there.  Most likely /usr/local/apache/logs/httpd.pid .  If
it is there and you're sure httpd's not running remove the file and try
/usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl start

good luck,

bill


-Original Message-
From: Ranga Nathan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 03, 2003 1:51 PM
Cc: mod_perl Mailing List
Subject: Re: Apache config problem .. please help

Ged Haywood wrote:

Hi there,

On Thu, 3 Jul 2003, Dennis Stout wrote:

  

I made a simple mod_perl change to the config and when restarting
Apache 
I got this error:
(98)Address already in use: make_sock: could not bind to address 
0.0.0.0:2250
no listening sockets available, shutting down
/usr/local/apache/bin/apachectl: line 87: 16512 Segmentation fault

$HTTPD $ARGV

I then backed out the change and retried, got the same error.
  

killall httpd

then try it again :)



httpd was not running and I have been running Apache 2x with mod_perl
1.99x for over two months now. It started with a problem I traced to
env. var $ENV{HTTP_ACCEPT}. I figured out that I needed PerlOptions
+SetupENV. So I added this, stopped and tried to start Apache. That's
when I got this shock.



In other words there's an Apache still running when you're trying to
start a second one which wants to listen on the same socket that the
first Apache is already listening on.  That isn't permitted.

But you shouldn't be getting segmentation faults in that case so
something else is probably wrong too.  Did you build from source?  
Did you follow the instructions in the Guide?  Linux?  1.3.27/1.27?
DSO?  Maybe you can post the information requested in the docs?

73,
Ged.

  

The 'top' output is :  3:38am  up 8 days, 22:58,  1 user,  load average:

0.00, 0.00, 0.00
22 processes: 21 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.0% user,  0.3% system,  0.0% nice, 99.6% idle
Mem:   970768K av,  212504K used,  758264K free,7852K shrd,   98668K

buff
Swap:  530104K av,3216K used,  526888K free   88104K

cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
16688 kairanga  10   0   996  996   800 R 0.3  0.1   0:00 top
1 root   0   076   6448 S 0.0  0.0   0:10 init
2 root   0   0 00 0 SW0.0  0.0   0:00 kflushd
3 root   8   0 00 0 SW0.0  0.0  34:03 kupdate
4 root   0   0 00 0 SW0.0  0.0   9:07 kswapd
5 root   0   0 00 0 SW0.0  0.0   0:00 keventd
   57 root   0   0   232  232 0 S 0.0  0.0   0:00 rc.M
   77 root   2   0   272  272   160 S 0.0  0.0   2:20 syslogd
   80 root   0   0   640  640   128 S 0.0  0.0   0:00 klogd
   82 root   0   0   368  324   220 S 0.0  0.0   0:04 sshd
   86 root   6   0   336  336   240 S 0.0  0.0   0:00 crond
   93 root   2   0   692  488   292 S 0.0  0.0   0:03 sendmail
  100 root   0   0  2352 1708   936 S 0.0  0.1   0:07 poprelayd
  102 root   0   0  2668 1248   292 S 0.0  0.1   0:00
miniserv.pl
  104 root   0   0   220  168   148 S 0.0  0.0   0:00 inetd
  105 root   0   0   184  184 0 S 0.0  0.0   0:00
safe_mysqld
  127 mysql  0   0  2384 2384  1364 S 0.0  0.2   0:00 mysqld
  129 mysql  0   0  2384 2384  1364 S 0.0  0.2   0:00 mysqld
  130 mysql  0   0  2384 2384  1364 S 0.0  0.2   0:00 mysqld
16316 root   0   0  1284 1268  1124 S 0.0  0.1   0:00 sshd
16318 kairanga   0   0  1364 1352  1208 S 0.0  0.1   0:00 sshd
16319 kairanga   3   0  1240 1240   964 S 0.0  0.1   0:00 bash

There has been no change to Apache httpd.conf other than the addition 
of  PerlOptions +SetupEnv which I commented out anyway.

How can I get a list of ports being used so I can kill the processes? As

far as I can tell httpd is not running. The IP is 208.179.25.28

I dont see any apparent signs of hacking either.






CONFIDENTIALITY NOTICE: This E-Mail is intended only 
for the use of the individual or entity to which it is addressed and may contain 
information that is privileged, confidential and exempt from disclosure under 
applicable law. If you have received this communication in error, please do not 
distribute and delete the original message.  Please notify the sender by E-Mail at the 
address shown. Thank you for your compliance.