• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Register_globals chango to off

dfutura

Basic Pleskian
Hi, I modify my file httpd.include in /home/httpd/vhosts/domain.com/conf/ and I change the line
<IfModule sapi_apache2.c>
php_admin_flag register_globals on
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/domain.com/httpdocs:/tmp"
</IfModule>

and it works prefectly, but spending time it returns to off and i dont know why

I have update to 7.5.3, could be this the problem?
 
Yep, updates to Plesk overwrite a few files. The best thing to do is to create a vhost.conf file for the domain.
 
Check the date/timestamp on the httpd.include file, see if it matches when you did your update/upgrade.

There are many times that these files can get overwritten, not just by Plesk, but by 3rd party software as well (such as 4PSA's Total Domain, which is good software,but does overwrite the domain's .conf and .include files).

You may want to put the register_globals into a .htaccess or vhost.conf file for each domain which needs it. AFAIK, none of these files has ever been overwritten by Plesk or other software without first alerting me.
 
Create a file named 'vhost.conf' and place it in the 'conf' folder of the domain, like this:

pico home/httpd/vhosts/domain.com/conf/vhost.conf

Place this in the file:

<Directory>
php_admin_flag register_globals on
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/domain.com/httpdocs:/tmp"
</Directory>

Remeber to restart Apache
 
For the reference, 4PSA Total Domains parses the files, it does not overwrite them :)
 
Hey hardweb, as of a month ago when I did further testing on TD, it appears to be overwriting my vhost vhost_ssl files instead of parsing them.

Anytime I make a change to a domain using TD, all my customizations to vhost/vhost_ssl disappear. This is why I stated that earlier.

TD 1.5.1

This has been the case for some time, on any fresh installed server I have tested (all RH9)

I have just today received notice that 1.5.2 has been released and will find time to test that one.

Besides, since many readers here do not have 4PSA products (but some do) and mostly they are advised to add customizations to vhost or vhost_ssl files, it is a good warning to them. From your own Total Domains PDF manual:

(from page 19, section 6) do not edit vhost.conf or vhost_ssl.conf because these files will be overwritten by 4PSA Total
Domains. Instead, add all your settings to:
vhost_in.conf (for HTTP)
vhost_ssl_in.conf (for HTTPS)
and instead of confusing those who do not use 4PSA products, I usually do not complicate the post by explaining 2 ways to modify (ie. vhost/vhost_ssl if you don't have 4PSA and vhost.in.conf/vhost_ssl.in.conf if you do), just easier to mention that they can be overwritten by TD. And if they do not have 4PSA products they ignore that part of the post. Simpler.

Do not misunderstand, I LOVE your products, I keep paying my money gladly every year.
 
I have create vhost.conf :
<Directory>
php_admin_flag register_globals on
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/website.hercesa.com/httpdocs:/tmp"
</Directory>

and uploaded to /home/httpd/vhosts/website.hercesa.com/conf and restarted apache but it dont work
 
Originally posted by dfutura
I have create vhost.conf :
<Directory>
Should have your domain's docroot path or whatever top path you want it to begin from
<Directory /home/httpd/vhosts/domain.com/httpdocs>

But do not change the </Directory>, leave this as it is.
 
I have tried all posiblities and i cant configure:

<Directory /home/httpd/vhosts/dfutura.net/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag register_globals on
php_admin_flag safe_mode off
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/dfutura.net/httpdocs:/tmp"
</IfModule>
</Directory>

<Directory /home/httpd/vhosts/dfutura.net/httpdocs>
php_admin_flag register_globals on
php_admin_flag safe_mode off
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/dfutura.net/httpdocs:/tmp"
</Directory>

only it works when i modify httpd.include

Why????????
 
In vhost.conf, try the following:

<Directory /home/httpd/vhosts/dfutura.net/httpdocs>
php_admin_flag engine on
php_admin_flag register_globals 1
php_admin_flag safe_mode 0
php_admin_value open_basedir "/home/httpd/vhosts/dfutura.net/httpdocs:/tmp"
</Directory>

Notice 1=on, 0=off

Restart apache.
 
only it works when i modify httpd.include

Why????????
The httpd.include file was pre-existing, and I suppose you used the linux editor on it. But the vhost you created under Windows. So then use the dos2unix program to strip out the ^M characters from your file (since you are using a Windows editor) :D
 
Back
Top