Re: [SLUG] escaping apostrophies in php/mysql

2008-01-31 Thread Voytek Eymont

On Thu, January 31, 2008 5:39 pm, Rich Buggy wrote:
 It could be that your old server had magic_quotes_gpc turned on in your
 php.ini.

Rich,

thanks !

so, do I need... .htaccess with something like 'php_magic_quotes_gpc = On'
??

old server:
# grep magic php.ini
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off

new server:

# grep magic php.ini
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off


-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] howto rerun Ubuntu/Debian keyboard detect program?

2008-01-31 Thread Sonia Hamilton
When setting up Ubuntu/Debian in 'advanced' mode, a screen comes up that
detects your keyboard by asking you to type in a series of characters.

How would I get that program to run again on a machine that's already
installed? I've swapped a (hardware) keyboard on a machine to a
different language layout, and I want the labels on the keys to map to
what is actually entered.

-- 
Sonia Hamilton
blog: http://SoniaHamilton.wordpress.com

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] howto rerun Ubuntu/Debian keyboard detect program?

2008-01-31 Thread Kristian Erik Hermansen
On Jan 31, 2008 10:05 AM, Sonia Hamilton [EMAIL PROTECTED] wrote:
 When setting up Ubuntu/Debian in 'advanced' mode, a screen comes up that
 detects your keyboard by asking you to type in a series of characters.

 How would I get that program to run again on a machine that's already
 installed? I've swapped a (hardware) keyboard on a machine to a
 different language layout, and I want the labels on the keys to map to
 what is actually entered.

I don't know the package that asks you to type the keys and
auto-magically determines the keyboard, so if you or anyone finds out,
I would like to know.  However, I do know that you can change the
keyboard this way (if you know the language layout)...

Old Debian/Ubuntu?
$ sudo dpkg-reconfigure console-data

New Debian/Ubuntu?
$ sudo dpkg-reconfigure console-setup
-- 
Kristian Erik Hermansen
Know something about everything and everything about something.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] BWOI: Hi

2008-01-31 Thread Matthew Hannigan
On Wed, Jan 30, 2008 at 08:27:38AM +, Rev Simon Rumble wrote:
 Good grief!  Is this output from some spam engine's scanning of the list 
 or is it the effect of writing COBOL on a human being's brain?

Not satisfied with being either rude or whiny,
today you've gone both!



-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] BWOI: Hi

2008-01-31 Thread Rev Simon Rumble
This one time, at band camp, Matthew Hannigan wrote:

 Not satisfied with being either rude or whiny,
 today you've gone both!

You telling me you were able to parse that post?

-- 
Rev Simon Rumble [EMAIL PROTECTED]
www.rumble.net

The Tourist Engineer
Just because you're on holiday, doesn't mean you're not a geek.
http://engineer.openguides.org/

War is God's way of teaching Americans geography.
 - Ambrose Bierce
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] BWOI: Hi

2008-01-31 Thread Matthew Hannigan
On Fri, Feb 01, 2008 at 11:09:33AM +1100, Rev Simon Rumble wrote:
 
 You telling me you were able to parse that post?

Sure, he was saying hello, giving a bit of personal
computing history, and telling us how he uses Linux now.

In a quite entertaining albeit idiosyncratic way.

Matt

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] apache htaccess setup allowoveride all ?

2008-01-31 Thread Voytek Eymont
what do I need to allow htaccess ?

as soon as I put this htaccess:

# cat .htaccess
php_flag magic_quotes_gpc on

I get '500 Internal server error';

error log says:

[Fri Feb 01 12:49:07 2008] [alert] [client 111.111.121.6]
/home/xxx.org.au/www/ad
min/.htaccess: php_flag not allowed here, referer:
http://www.xxx.org.au/admin/i
ndex.phtml

currently the /etc/httpd/conf.d has like:

AllowOverride All

the vhost conf has like:

Directory /home/xxx.org.au/www
  Options Indexes FollowSymLinks +IncludesNOEXEC
  AllowOverride AuthConfig Limit
  Order allow,deny
  Allow from all
/Directory

do I also need 'AllowOverride All' in vhost's conf ?



-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] web/domain redirection ?

2008-01-31 Thread Voytek Eymont

On Fri, January 25, 2008 7:59 pm, Sam Gentle wrote:
 On Jan 25, 2008 7:21 PM, Voytek Eymont [EMAIL PROTECTED] wrote:

 There are actually a number of ways to do this, but it depends what
 behaviour you want from the client and how much access you have to the
 server.

 All those methods except for mod_proxy are explained in more detail
 here: http://en.wikipedia.org/wiki/URL_redirection#Techniques
 the relevant section of mod_proxy's documentation:
 http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypassreverse

Sam,

thanks

in present scenario, domain rewrite seems the best choice, eventually, the
current domain will be dropped

.htaccess
---
RewriteEngine On

RewriteCond %{HTTP_HOST} ^.*oldwebsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.preferredwebsite.net/$1 [R=301,L]
-

how do interpret 'www.sub.domain.org.au' in above rewritecond: ?

RewriteCond %{HTTP_HOST} ^.*domain\.org\.au$ [NC]

?

-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] apache htaccess setup allowoveride all ?

2008-01-31 Thread Rick Welykochy

Voytek Eymont wrote:


currently the /etc/httpd/conf.d has like:

AllowOverride All

the vhost conf has like:

Directory /home/xxx.org.au/www
  Options Indexes FollowSymLinks +IncludesNOEXEC
  AllowOverride AuthConfig Limit
  Order allow,deny
  Allow from all
/Directory

do I also need 'AllowOverride All' in vhost's conf ?



see http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride


cheers
rickw


--
_
Rick Welykochy || Praxis Services

Experimentation is the best form of learning.
-- anon.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Netcomm Nb9W - any problems with Linux?

2008-01-31 Thread elliott-brennan

Hi all,

I'm with TPG and thinking of using their VOIP 
service. To do so I'll need to get an NB9W - my 
current modem only has one port and no phone port.


Apparently the NB9w uses an SPI firewall.

Wikipedia lists the following pitfall:

Microsoft's latest operating system, Windows 
Vista, uses TCP window scaling for non-http (web) 
connections. So do Linux kernels from versions 
2.6.8 on. This behavior is incompatible with some 
firewalls that use SPI (Stateful Packet 
Inspection) as found in routers like the 
Checkpoint NG R55, Cisco PIX and IOS, NetApp Cache 
Appliances, SonicWall, D-Link DI-724U, Netgear 
WGR614, and Linksys WRT54GS. [1] This may be 
related to previous failures to work properly. 
Pre-released (beta) versions of Vista allegedly 
had more problems, including failed http (web) 
connections through SPI firewalls.[2]


http://en.wikipedia.org/wiki/Stateful_firewall#Pitfalls

I've searched the Ubuntu forum and searched a 
little further, but come up with nothing specific.


Does anyone know if this information is accurate, 
or out-of-date?


Thanks for any information or referral.

Regards,

Patrick


--
Registered GNU/Linux User 368634
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html