Mantis Logo
Mantis Manual
Manual
Configuration

Database
Path
Webserver
Version
Email
Language
Display
Time
JpGraph
Date
News
Default Preferences
Summary
Bugnote
File Upload
HTML
Authentication
Status Settings
Filters
Misc
Colors
Cookies
Database Tables
Speed Optimisation
Reminders
Bug History
Sponsorship
Source Control Integration
Custom Fields
My View Settings
Relationships
System Logging


Partner Links


Path
Last Modified: August 21, 2003 15:08PM
(Any)
Description

$g_path URL to your installation as seen from the web browser; this is what you type into the URL field. Requires trailing '/' character.

 eg. $g_path = 'http://www.example.com/mantis/'; 


In the following example https protocol is used:
 eg. $g_path = 'https://www.example.com/mantis/'; 


Mantis will default this to the correct value. However, in some cases you might need to override the default.
$g_icon_path This is the URL to the icons (images) directory as seen from the web browser. All Mantis images/icons are loaded from this URL. The default value for this URL is based on $g_path, hence, if you override $g_path, you will have to override this one as well.
$g_absolute_path This is the absolute path to your installation, it is defaulted to the directory where config_defaults_inc.php resides. This is the path that you see when you make a telnet or ssh connection to the server. You can type pwd to find out. Requires trailing '/' character.

 eg. $g_absolute_path = '/usr/apache/htdocs/mantis/'; 


Before Mantis 0.17.3 symbolic links were not allowed due to the way file downloads were handled. This has been fixed.
$g_core_path This is the path to the core directory of your installation. The default value is usually OK, unless you move the 'core' directory out of your webroot. Requires trailing '/' character.

$g_manual_url This is the url to the Mantis manual. It is defaulted to the Mantis Online manual. Mantis links to this URL for full documentation, it will also be used in the future to link for the [?] form hints. Requires trailing '/' character.

These path settings are important for proper linking within Mantis. In most scenarios the default values should work fine, and you should not need to override them.

User Contributed Notes
Path
Add Notes About Notes
guepi(at)free.fr
28-Jan-2004 5:45
#62
Hi !
I would like to know if the is a possibility to use dynamic path?
Like that :

$g_path=(!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
                       . $_SERVER['SERVER_NAME']
                       . (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '')

Thanks for your answers.
alex_portilla@hotmail.com
05-May-2005 14:56
#431
I have followed the instalation steps as per your instructions. It seems my paths are messed up or something. I have installed mantis on c:\mantis

I am running:
Windows NT SERVER 5.1 build 2600
Apache/2.0.53 (Win32) DAV/2 mod_ssl/2.0.53 OpenSSL/0.9.7d SVN/1.1.3 PHP/5.0.3
mysql 4.0.23

My issue is when I try to go to the c:/mantis directory from a web link, all I get is a list of all the files in the directory. Also, when I run: /mantis/admin/index.php it works but when I do a check, this is all I get:

Version
Mantis requires at least PHP 4.0.6. If you are not running this version or above, you or your administrator will need to upgrade your build of PHP.

You are running PHP 5.0.3
 
Checking your installation
Opening connection to database [mantisbugs] on host [localhost:9050] with username [MantisAdmin]

9050 is the port im using for the web server. Any ideas?
If I click on "system utilities" ill get a blank page. You help is much appreciated.

Thanks,
Alex
sandra.salazar@trintech.com
04-Jul-2005 16:36
#497
Hi, I have the same problem that the previously guy... Any ideas? only that my index.php doesn´t work...

Thanks
Sandra
papril@wolfandco.com
03-Aug-2005 10:49
#551
I'm not sure if this is true or not, but I remember being told in a training class back in May that on Windows PHP5 would not work properly with MySQL and they recommended we stay with version 4x of PHP until the connection problems were resolved with MySQL.

Just thought I'd share that little bit of info.

Patti
b.duclos@clipack.com
22-Oct-2005 10:26
#664
I have a problem with Mantis behind an Apache Web Proxy. In effect, when I try to connect to the web application, all works fine but CSS stylesheet, icons and images are not available.

So I look for the web source page from my web browser, and I note that the URL of this MISC components are absolute path like http://host/mantis/images/... The problem is that this web host is (of course) not visible from the NET. Moreover the Apache directive "ProxyPassReverse" doesn't work for link href .

To resume, my question is : Is it possible to make relative URL to this images like this : href="./images/..." ?

Thanks in advance for your answers.
laxmikant.balapure@impactinfosys.com
27-Dec-2005 1:40
#782
I am using windows 2000 sp4, php 5.1.1,mysql 3.23, apache tomcat 2.0, I deployed the mantis on tomcat it means i copied the mantis directory in "D:\Program Files\Apache Group\Apache2\htdocs\mantis".
When i access admin/check.php the i get

You are running PHP 5.1.1

Checking your installation
--------------------------------------------------------------------
Opening connection to database on host [localhost:3306] with username [root]
--------------------------------------------------------------------

It means my PHP is installes proper, but unable to connect to mysql.
I did all the required changes in config_inc.php

Any body who has solved this problem please help me out.
balapure@gmail.com
27-Dec-2005 1:45
#787
I am using windows 2000 sp4, php 5.1.1,mysql 3.23, apache tomcat 2.0, I deployed the mantis on tomcat it means i copied the mantis directory in "D:\Program Files\Apache Group\Apache2\htdocs\mantis".
When i access admin/check.php the i get

You are running PHP 5.1.1

Checking your installation
--------------------------------------------------------------------
Opening connection to database on host [localhost:3306] with username [root]
--------------------------------------------------------------------

It means my PHP is installes proper, but unable to connect to mysql.
I did all the required changes in config_inc.php

Any body who has solved this problem please help me out.
surbhi.gupta@studiosmile.com
27-Dec-2005 10:26
#789
when i am runnimng the file for the index.php , i am getting the erors , notices and warnings
Warning: main(C:\Documents and Settings\surabhi\Desktop\mantis\mantis-0.19.4\config_inc.php): failed to open stream: No such file or directory in C:\Documents and Settings\surabhi\Desktop\mantis\mantis-0.19.4\core.php on line 44

Fatal error: main(): Failed opening required 'C:\Documents and Settings\surabhi\Desktop\mantis\mantis-0.19.4\config_inc.php' (include_path='.;c:\php4\pear') in C:\Documents and Settings\surabhi\Desktop\mantis\mantis-0.19.4\core.php on line 44
how can i specify the path
any body can answer
huangchonggnu@gmail.com
11-Jul-2006 23:33
#1190
I face the same problem as the up. The diff is that I use linux system. the message:

Warning: main(/usr/local/apache2/htdocs/mantis/config_inc.php): failed to open stream: Permission denied in /usr/local/apache2/htdocs/mantis/core.php on line 44

Fatal error: main(): Failed opening required '/usr/local/apache2/htdocs/mantis/config_inc.php' (include_path='.:/usr/local/lib/php') in /usr/local/apache2/htdocs/mantis/core.php on line 44

Could anyone give me some advices. Thanks in advance.
zhenghanjiang@ghlsystems.com
13-Feb-2007 1:20
#1572
who can help me ?
i have Finish the Installation ,but I have a Problems ,i dont konw administrator Account Information ,the administrator name & password, In the installation process ,i Not seen the administrator Account Information .
who can help me ?
Add Notes About Notes
Last updated: Fri, 16 May 2008 - 11:10:10

Mantis @ SourceForge