Page 1 of 1
[OK] Install mantis, PHP problem
Posted: 04 Jan 2013, 13:53
by Whitehawk
Hi, I am installing mantis 1.2.12.
I have a problem, probably with the php.ini file configuration.
See attachement piece, I think something is absent .. (PHPIniDir ? impossible to make it work)
Thank you for your help.
Re: Install mantis, PHP problem
Posted: 06 Jan 2013, 13:19
by cas
Which database are you planning to use?
The correct php extension needs to be activated.
Try un-commenting extension = php_mysql.dll
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 08:18
by Whitehawk
Thanks for answer.
I use mysql, I have created a database nammed 'bugtracker'.
Try un-commenting extension = php_mysql.dll : Yes I try it before post here, same problem when un-commented.
I think it's maybe a problem in my php.ini file configuration ..
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 08:37
by cas
Did you check your settings in config_inc.php?
It should have this line:
$g_db_type = 'mysql';
If that is ok, request info on php via the website.
Create a small script called test.php.
Content should be:
<?PHP
phpinfo();
Copy the script to the root of your webserver.
Now run this script and check the ouput.
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 09:52
by Whitehawk
Did you check your settings in config_inc.php?
It should have this line:
$g_db_type = 'mysql';
> Yes, it's OK
Test.php OK, see file.
What I notice :
1) php.ini must be in C:/Windows ? I put it here but no changement.
2) I can't use .php file extension.. it make filename.php.txt ..
3) I don't have libmysql.dll
4) File httpd.conf needs to have that ?? :
LoadModule php5_module "C:\php\php5apache2_2.dll (or 2_4.dll)
When I add this line, apache don't start because it don't find the file ..
Thank you, sorry for mistakes i'm french

Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 10:00
by cas
Suggest you first get your system properly implemented.
The test script should generate much more output than what you showed in your posting.
Once that is settled, try implementing Mantis again.
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 10:08
by Whitehawk
It's just an extract, there is effectively more output, it's very long.
Do you want to see all?
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 10:30
by cas
Well what does it say about mysql?
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 10:50
by Whitehawk
I just found mysqlnd ..
See file.
mysqlnd statistics are all at '0'.
It's that you wanted ?
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 10:59
by cas
There should be a section about mysql. If not, your php is not properly configured.
How many php.ini files do you have on your system?
In principal you should have only one.
Keep the one within your php directory and remove others.
Check if mysql is enabled and restart oyur webservices.
Run the script again and see if mysql is listed
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 11:24
by Whitehawk
I have not mysql section ..
I do what you say, no change.
How to see if mysql is well enabled? I have mysql service start
I had php.ini-production and php.ini-development, i have configured php.ini-production, renamed it at php.ini and deleted the other.
Re: Install mantis, PHP problem
Posted: 07 Jan 2013, 11:41
by cas
Your php is not prpoerly configured to use a mysql database hence the message when installing mantis.
Suggest you use yor friend google to give instructions on how to install php on your system.
You always can try something like XAMPP which will make your life a lot easier.
Then Apache/Mysql & PHP are installed in one go!

Re: Install mantis, PHP problem
Posted: 08 Jan 2013, 13:34
by Whitehawk
Hi,
I've just installed XAMPP, put Mantis in 'htdocs', and go 127.0.0.1/mantis ..
Very easy this way ..
Thank you for help
