Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: edb 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
-
hmmm, maybe you can ask this specific question on dev-info.
RequestedDeletion
-
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
-
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
-
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