Skocz do zawartości

[IPS Blog] Starting from Scratch - open_basedir and virtual hosts in PLESK


Rekomendowane odpowiedzi

Opublikowano

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 całą wiadomość

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.