Project

General

Profile

Bug #2339

apps with php7 configuration issues

Added by sanjitchak 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
07/31/2018
Due date:
% Done:

0%

History

#1 Updated by sanjitchak 4 months ago

journalctl having the following line:-

Jul 31 16:23:18 hda.amahi.net httpd[3858]: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration 

Joomla,Adminer,vnStat and other similar apps being affected.

#2 Updated by sanjitchak 4 months ago

pydio gives the following error in /var/hda/web-apps/pydio/logs/error_log :-

[Tue Jul 31 16:49:21.911925 2018] [core:alert] [pid 6161:tid 139887219046144] [client 192.168.43.10:56910] /var/hda/web-apps/pydio/html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

#3 Updated by cpg 4 months ago

pydio has issues after fixing this https://bugs.amahi.org/issues/1671

curl http://pydio/
<?xml version="1.0" encoding="UTF-8"?><tree ><require_auth/></tree>

#4 Updated by sanjitchak 4 months ago

Tiki Wiki 15 systemctl status httpd.service

01:08:17 hda.amahi.net systemd[1]: Reloading The Apache HTTP Server.
Aug 01 01:08:17 hda.amahi.net httpd[15975]: AH00526: Syntax error on line 9 of /etc/httpd/conf.d/1000-tiki15.conf:
Aug 01 01:08:17 hda.amahi.net httpd[15975]: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configur
Aug 01 01:08:17 hda.amahi.net systemd[1]: httpd.service: Control process exited, code=exited status=1
Aug 01 01:08:17 hda.amahi.net systemd[1]: Reload failed for The Apache HTTP Server.

#5 Updated by sanjitchak 4 months ago

Apps like Tiki Wiki 15, vTiger, TCExam, ILibrarian, eXtplorer, Encode Explorer having following error when reloading httpd after installing:-

Job for httpd.service failed because the control process exited with error code.

#6 Updated by sanjitchak 4 months ago

in /etc/httpd/conf.d/1000-APP-NAME.conf

replacing:-
 <Files *.php>
php_value memory_limit 128M
php_value max_execution_time 90
</Files>

with :-

 <IfModule  mod_php7.c>
php_value memory_limit 128M
php_value max_execution_time 90
</IfModule >

TCExam, ILibrarian, eXtplorer, Encode Explorer passed

Tiki Wiki 15, vTiger having following similar error:-

Unable to load URL: http://vtiger// because of error loading http://vtiger//: Internal Server Error

#7 Updated by sanjitchak 4 months ago

vtiger

Some PHP config files of the app are using php4/php5 modules.

#8 Updated by cpg 4 months ago

I changed Tiki Wiki 15, vTiger, TCExam, ILibrarian, eXtplorer, Encode Explorer to use the new way. Please test them and see if they pass (if not, report it here).

#9 Updated by sanjitchak 4 months ago

in /etc/httpd/conf.d/1000-joomla.conf
Change :-

 <Files *.php>
php_value output_buffering Off
</Files>

To :-

<IfModule mod_php7.c>
php_value output_buffering Off
</IfModule>

Also available in: Atom