US: 1-941-4621-069
Cyprus: 3-572-2052-781

Go Back Forums > ISPmanager > General technical discussion


Thread Tools
Old 04-27-2017, 03:38 AM   #1
Join Date: Aug 2016
Posts: 40
NCbeasty is on a distinguished road
Default How to edit DocumentRoot?

I need to have
DocumentRoot /var/www/%username%/data/www/%sitename%/public_html

When I try to edit /etc/httpd/conf/vhosts/%username%/%sitename% in ISPmanager Lite, docroot does not apply the changes and, and when I edit the website, DocumentRoot is overwritten.
NCbeasty is offline   Reply With Quote
Old 04-28-2017, 03:38 AM   #2
ISPsystem team
Join Date: Jul 2014
Posts: 443
ksenya is on a distinguished road

ISPmanager keeps all data in the database. You can edit a home directory in the ''ispmgr.db'' table.

# /usr/local/mgr5/sbin/sqlite3 /usr/local/mgr5/etc/ispmgr.db
SQLite version 2013-01-09 11:53:05
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>select * from webdomain;
id|name|name_idn|docroot|email|charset|dirindex|se cure|ssl_port|ssl_cert|framework|autosubdomain|php |php_mode|cgi|cgi_ext|active|int_suspend|users|dro pped_down|log_access|log_error|rotation_period|rot ation_size|rotation_count|analyzer|analyzer_period |analyzer_lang|foreground|redirect_http
1|domain.test|domain.test|/var/www/vgj/data/www/domain.test|webmaster@domain.test_day||10|off|||of f|off

sqlite> update webdomain set docroot="/var/www/vgj/data/www/domain.test/pub" where id=1;
ksenya is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 09:54 PM.