Page 1 of 1

Magic Quotes Question.

Posted: Wed Apr 30, 2008 1:35 pm
by Galactic Zero
Hello Scott and others.

Since I can't post this on the Parallels forums for some odd reason I'll ask it here.

I'm having problems with magic quotes, I've put this code in the vhost.conf file for the domain I want the quotes on.

Code: Select all

<Directory /var/www/vhosts/capriccioristorante.com/httpdocs/News/lists/>
<IfModule mod_php5.c>
  php_flag magic_quotes_gpc on
</IfModule>
</Directory>
EDIT*** Yes I have run the reconfigure script for vhosts.conf
Is this the correct format?

Posted: Wed Apr 30, 2008 5:33 pm
by scott
if you mean websrvmng, yes, but only one time. That adds an include statement into the domains httpd.include file.

Posted: Thu May 01, 2008 1:31 am
by Galactic Zero
by one time do you mean only add that statement to one vhost.conf file and then run the websrvmng?

Or can I put that statement in each domain that needs magic quotes on?

Posted: Thu May 01, 2008 9:03 am
by scott
I would create all your vhost.conf's first, then run websrvmng -a, that should update every domains config all in one shot.

Posted: Thu May 01, 2008 12:08 pm
by Galactic Zero
ok, thanks...

any issues running that later on if someone requests a change?

Posted: Thu May 01, 2008 1:29 pm
by breun
No. But if you're just making a change to an existing vhost.conf there is no need to run websrvmng. A quick service httpd reload should be enough.