After deploying ZenTao, "zentao" is still in the URL. You might want to know how to remove it. That’s quite easy and follow the steps below.
1. Configure the one-click installation package
There is configuration template for the one-click installation package. What you need to do is to turn on relevant parameters. Find xampp\apache\config\httpd.conf and xampp\runner\res\apache\conf\httpd.conf in Windows to change or /opt/zbox/etc/apache/httpd.conf in Linux. If use Lampp in Linux, find /opt/lampp/etc/httpd.conf.
Find virtual host, comment it and then restart Apache.
#If you want visit zentao like http://localhost/, uncomment these lines. #<VirtualHost *:80> # ServerAdmin [email protected] # DocumentRoot "D:/xampp/zentao/www" # ServerName localhost:80 # <Directory /> # AllowOverride all # Require all granted # # <Files "index.php"> # SetHandler application/x-httpd-php # </Files> # <Files "upgrade.php"> # SetHandler application/x-httpd-php # </Files> # <Files "install.php"> # SetHandler application/x-httpd-php # </Files> # <Files "checktable.php"> # SetHandler application/x-httpd-php # </Files> # # </Directory> # <DirectoryMatch "D:/xampp/zentao/www/.+/.*"> # <FilesMatch ".+\.ph(p[3457]?|t|tml)$"> # SetHandler text/plain # </FilesMatch> # </DirectoryMatch> # # ErrorLog "D:/xampp/apache/logs/error_log" # CustomLog "D:/xampp/apache/logs/access_log" combind #</VirtualHost>
After you delete the comment, it should be
# If you want visit zentao like http://localhost/, uncomment these lines. <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "D:/xampp/zentao/www" ServerName localhost:80 <Directory /> AllowOverride all Require all granted <Files "index.php"> SetHandler application/x-httpd-php </Files> <Files "upgrade.php"> SetHandler application/x-httpd-php </Files> <Files "install.php"> SetHandler application/x-httpd-php </Files> <Files "checktable.php"> SetHandler application/x-httpd-php </Files> </Directory> <DirectoryMatch "D:/xampp/zentao/www/.+/.*"> <FilesMatch ".+\.ph(p[3457]?|t|tml)$"> SetHandler text/plain </FilesMatch> </DirectoryMatch> ErrorLog "D:/xampp/apache/logs/error_log" CustomLog "D:/xampp/apache/logs/access_log" combind </VirtualHost>
2. General configuration
If you configured Apache server yourself, please refer to the following steps.2.1 Find configuration files of Apache. File locations are different in different systems. Usually, they are saved in the directory of apache/conf in Windows and /etc/apache or /etc/httpd in Linux.
2.2 Find configuration files of the virtual machine. Some have separated httpd-vhost.conf, while other are written in httpd.conf.
2.3 When you find the configuration files of the virtual machine, configure the followings.
<VirtualHost *:80> ServerName pms.zentao.net # the serverName is your actual domain name. DocumentRoot /home/www/zentaopms/www/ # www refers to your actual www directory in zentao. <Directory /> Options FollowSymLinks AllowOverride All </Directory> </VirtualHost>
2.4 Find the file zentao/config/my.php. If it is $config-> webRoot equals getWebRoot (), skip this step. Otherwise, change it to $config-> webRoot = '/' and restart Apache.
$config->webRoot = '/';