Jump to content
Sign in to follow this  

[Invisionize.eu] Starting from Scratch - open_basedir and virtual hosts in PLESK

Recommended Posts

My mod relies on calling a command line executable. I keep this off the main website folder path to protect it.

But this means that the default PHP open_basedir restriction won't let it run.

The normal way of solving this on a LINUX server is to edit /etc/httpd.conf but in my PLESK environment, it's much more complicated.

Having blogged in the past about PLESK and recommended it, I thought I'd better document how to solve this problem.

  • In /var/www/vhosts/<domain>/conf/ , create a file vhost.conf with the new open_basedir path
  • Restart PLESK with /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<domain>

Editing the 'normal' httpd.conf and PLESK httpd.include is NOT the way to go. Any manual changes to these files are lost the next time the server is rebooted and PLESK restarts. PLESK 'recaches' these files in a similar way to IP.Board, by grabbing 'images' from the MySQL database.

Zobacz Artykuł w pełnej wersji

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

W celu świadczenie usług przez nasz Serwis na najwyższym poziomie, w ramach Serwisu wykorzystujemy pliki Cookies (tzw. ciasteczka). Korzystając ze stron Serwisu IPSBEYOND.PL bez zmiany ustawień przeglądarki będą one zapisane w pamięci urządzenia. Jeżeli nie dokonacie Państwo zmiany ustawień przeglądarki internetowej to wyrażacie zgodę na zapisywanie plików Cookies.