Koozali.org: home of the SME Server

magic_quotes_gpc settings

Offline edb

  • *
  • 548
  • +0/-0
magic_quotes_gpc settings
« on: November 26, 2004, 04:01:57 PM »
If "magic_quotes_gpc=Off" here is the error I get when accessing server-manager. :cry:

Proxy Error
The proxy server received an invalid response from an upstream server.

The proxy server could not handle the request GET /e-smith-manager.
Reason: Could not connect to remote machine: Connection refused

This error happened after I disabled magic_quotes in the PHP template file. If I switch it back to magic_quotes_gpc=On then I can access server-manager again but I need to have magic_quotes disabled to run an e-commerce application. Is there a way to specify to turn off but only for one application? Thanks

Ed
......

guest22

magic_quotes_gpc settings
« Reply #1 on: November 27, 2004, 09:49:55 AM »
hmmm, maybe you can ask this specific question on dev-info.

RequestedDeletion

bigbri100

magic_quotes_gpc settings
« Reply #2 on: November 27, 2004, 04:21:20 PM »
You can copy your E-Commerce folder to /opt/ecommerce and use an Apache template similar to the following.

# mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
# pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98ecommerce  

Paste something like this into the file and save:

Alias /store /opt/ecommerce
<Directory /opt/ecommerce>
RequireSSL on
AddType application/x-httpd-php .php .php3 .phtml
Options Indexes +Includes FollowSymLinks
order deny,allow
deny from all
allow from all
php_flag magic_quotes_gpc off
</Directory>

Expand apache template
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
# service httpd restart

Offline edb

  • *
  • 548
  • +0/-0
magic_quotes_gpc settings
« Reply #3 on: November 27, 2004, 10:50:09 PM »
Thanks. I'll give that a try and let you know.

One more thing ... I have to add an environment varriable to let apache know to look in the path /home/e-smith/files/ibays/store/include for "ini" files. Where and how would I do that?
 
Thanks again
......

Offline edb

  • *
  • 548
  • +0/-0
magic_quotes_gpc settings
« Reply #4 on: November 27, 2004, 11:45:37 PM »
I figured it out. Thanks for your pointing me in the right direction.

Here is what I had to put in the 90ecommerce file:

<Directory /home/e-smith/files/ibays/store/html>
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_admin_value open_basedir /home/e-smith/files/ibays/store
    php_flag magic_quotes_gpc off
</Directory>

Worked like magic... thanks
......