[OK] Install mantis, PHP problem

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Whitehawk

[OK] Install mantis, PHP problem

Post 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.
Attachments
php-mantis.png
php-mantis.png (31.52 KiB) Viewed 16583 times
Last edited by Whitehawk on 08 Jan 2013, 13:34, edited 1 time in total.
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Install mantis, PHP problem

Post by cas »

Which database are you planning to use?
The correct php extension needs to be activated.
Try un-commenting extension = php_mysql.dll
Whitehawk

Re: Install mantis, PHP problem

Post 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 ..
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Install mantis, PHP problem

Post 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.
Whitehawk

Re: Install mantis, PHP problem

Post 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 :)
Attachments
phpinfo.png
phpinfo.png (26.53 KiB) Viewed 16562 times
Last edited by Whitehawk on 07 Jan 2013, 10:02, edited 1 time in total.
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Install mantis, PHP problem

Post 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.
Whitehawk

Re: Install mantis, PHP problem

Post by Whitehawk »

It's just an extract, there is effectively more output, it's very long.
Do you want to see all?
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Install mantis, PHP problem

Post by cas »

Well what does it say about mysql?
Whitehawk

Re: Install mantis, PHP problem

Post by Whitehawk »

I just found mysqlnd ..
See file.

mysqlnd statistics are all at '0'.

It's that you wanted ?
Attachments
phpinfo2.png
phpinfo2.png (16.16 KiB) Viewed 16557 times
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Install mantis, PHP problem

Post 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
Whitehawk

Re: Install mantis, PHP problem

Post 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.
Attachments
php.png
php.png (92.02 KiB) Viewed 16556 times
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Install mantis, PHP problem

Post 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! :mrgreen:
Whitehawk

Re: Install mantis, PHP problem

Post 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 :)
Post Reply