Forum

Projeqtor under Ngi...
 
Notifications
Retirer tout

Projeqtor under Nginx

46 Posts
2 Utilisateurs
0 Reactions
49.6 K Vu
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 
[#2386]

Hi Guys,

at first (as i think it is my Problem at the moment) it would be very nice if there would be an addition how i could handle Projeqtor with Nginx.

Kind regards,

Chris


 
Posté : 25/06/2015 2:45 am
(@babynus)
Posts: 14952
Membre Admin
 

At first glance, I don't see any issue to replace Apache with Nginx.
You'll have to install PHP with Nginx, what is less easy than PHP as Apache module, but this can be done using PHP-FPM.
You'll find some tutorilas on the web for that : https://www.howtoforge.com/installing-nginx-with-php5-and-php-fpm-and-mysql-support-lemp-on-debian-wheezy


 
Posté : 25/06/2015 11:58 am
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 

Hi Babynus,

thank you for your answer. Nginx with PHP5-FPM and MySQL are already running (for example with MediaWiki on the same host) - no errors, running fine and smooth. Just when trying to install Projeqtor (no matter which version 4.5.x, 5.0.0, 5.0.1) i am running into issues with Database - therefore i am not sure if its a general connectivity problem or a failing redirect?

But for now i am getting an error running the check tool /tool/configCheck.php -> Module PDO for is not available - check your php configuration (php.ini)

but when trying to run php5-fpm -i the result is, that pdo is enabled for mysql? Any hints for?

Thank you!

PS:

2015-06-29 00:13:28.820 ** ERROR ** #2 Parameter->getGlobalParameter called at [/var/www/project/model/User.php:132]
2015-06-29 00:13:28.820 ** ERROR ** #3 User->__construct called at [/var/www/project/tool/projeqtor.php:2582]
2015-06-29 00:13:28.820 ** ERROR ** #4 getSessionUser called at [/var/www/project/tool/projeqtor.php:125]
2015-06-29 00:13:28.820 ** ERROR ** #5 require_once called at [/var/www/project/tool/saveDataToSession.php:30]
2015-06-29 00:13:28.820 ** ERROR ** Exception-[42S02] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'projeqtor29.parameter' doesn't exist


 
Posté : 29/06/2015 2:09 am
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

First, logged issue is not a real issue : it appears on clean installs before V5.0 (these errors are hidden on V5.0), because database is empty.

Next, if you really get error "Module PDO for is not available - check your php configuration (php.ini)", it means you did not specify the database type.
If should be "mysql" or "pgsql".
Try and reconfigure or set $paramDbType='mysql' in parameters.php file;


 
Posté : 29/06/2015 11:42 am
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 

Hi,

seems to be alright. $paramDbType='mysql' is set in parameters PHP File. Even the first configurator runs fine. Login is impossible and it seems as the Database isn't filled at all?


 
Posté : 29/06/2015 5:00 pm
(@babynus)
Posts: 14952
Membre Admin
 

Could you post result of phpinfo(); ?


 
Posté : 29/06/2015 5:58 pm
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 

Hi,

yes, of course, as you can see in the attachment everything seems to be ok? Or is it the Wrong version for?


 
Posté : 29/06/2015 7:58 pm
(@babynus)
Posts: 14952
Membre Admin
 

I cannot see much.
(no attached file)


 
Posté : 29/06/2015 8:20 pm
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 

Hi,

attached is the phpinfo. As i read it pdo is also defined as it should be?

(Sorry, html was blocked)

Failed to upload file '20150629 PHPINFO.pdf': The file size (5635884) exceeds the maximum set by the administrator.

Can i send it to you via mail?


 
Posté : 30/06/2015 1:36 am
(@babynus)
Posts: 14952
Membre Admin
 

send at support@projeqtor.org


 
Posté : 30/06/2015 2:17 am
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 

thanks, was sent to you.


 
Posté : 30/06/2015 12:56 pm
(@babynus)
Posts: 14952
Membre Admin
 

Good.
No issue on phpinfo : all required modules are set : 'mysql', 'pdo', 'pdo_mysql' and even 'mbstring'
Only possible issue with modules is incompatibility of version between pdo_mysql and database, but I really don't think issue is here.

Do you still have error message "Module PDO for is not available - check your php configuration (php.ini)" ?
What is weird is that it should display "Module PDO for mysql is not available".
Error message makes me think that $paramDbType is not set.

What you can try :
1) check file /tool/parametersLocation.php : $parametersLocation will tell you which parameters.php file is used.
Open this parameters.php and check value of $paramDbType (check all file to be sure it is not overwritter in the end)

2) if $paramDbType is correctly set, try and add some debug lines in /tool/configCheck.php
For instance, on line 38, add :

var_dump($param);

 
Posté : 30/06/2015 2:14 pm
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 

uhm..something is really going wrong here.

Now it doesn't show anything @checkConfig.php

1. leads forward to files/config/parameters.php which tells me that $paramDbType is set to "mysql"

2. returns just NULL, well that seems problematic.any hints?


 
Posté : 30/06/2015 4:52 pm
(@babynus)
Posts: 14952
Membre Admin
 

delete /tool/parametersLocation.php to run config again.


 
Posté : 30/06/2015 4:59 pm
(@chri-s)
Posts: 32
Eminent Member
Début du sujet
 

Hi,

done, configuration and database were created.
rerun configCheck => NULL?

seems to be a bigger Problem behind all or should i redownload the whole programm once?


 
Posté : 30/06/2015 5:22 pm
Page 1 / 4
Share:
Retour en haut