LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Application Issues with PHP & HTTPD (https://www.linuxquestions.org/questions/linux-newbie-8/application-issues-with-php-and-httpd-4175620240/)

Datsys 12-24-2017 12:07 PM

Application Issues with PHP & HTTPD
 
Seasons Greetings,
I'm a newb to all of this and I really need some help. Setting up an application (vTiger CRM Open Sourece 7.0.1) on a CentOS 7 vps but not getting everything to work as I know it should. Installed Apache 2.4.6 with PHP 5.6.32 all with YUM install. I have found that the application works fine but when I go to the url for the Customer Portal I get a warning about the time zone being set as UTC by default. From what I have read the problem seems to be related to getting this version of PHP to run as a module of Apache. Everything I have found so far to install/enable/configure mod_php is not working.

Interestingly, when I upgraded PHP to 7, it was fairly simple to get it as a module in Apache and the note in the phptest file went away and the Customer Portal url worked. I however noticed that not only did it kill the phpMyAdmin install (which suggest that phpMyAdmin does not do well with PHP 7) but I am only able to get to the Login Page of the main application, after login the rest of the pages of the application do not load in the browser (suggesting that vTiger 7.0.1 does not really play well with PHP 7

Is there some kind person who would point my thick head to a step by step guide that will make it all work (including phpMyAdmin) either by getting PHP 5.6.32 to be a module of HTTPD using mod_php OR everything to work on php 7?

keefaz 12-24-2017 12:54 PM

The time zone has to be set either in the php script file with a call to date_default_timezone_set() or in the php configuration php.ini file setting a value to date.timezone

I would not upgrade to php7 before making sure that all the php apps in the system are ready

Datsys 12-24-2017 08:24 PM

Quote:

Originally Posted by keefaz (Post 5797318)
The time zone has to be set either in the php script file with a call to date_default_timezone_set() or in the php configuration php.ini file setting a value to date.timezone

I would not upgrade to php7 before making sure that all the php apps in the system are ready

Thanks for taking the time to respond. I tend to agree with your suggestion about upgrading to PHP 7 currently, as I am noticing some very popular things that do not play well with it.

The time zone issue has been a bother for some time now and has prevented to roll out of this application to members of my little team. I had made the change in the php.ini but that didn't fix it. Can you tell me how to make & where to make the changes in the script? Or perhaps it might be easier to tell me how to get php 5.6 to actually work as a module of httpd?

scasey 12-25-2017 01:27 AM

Short "Is it plugged in?" questions:
After you edit php.ini, did you restart Apache?

Datsys 12-25-2017 08:05 AM

Quote:

Originally Posted by scasey (Post 5797479)
Short "Is it plugged in?" questions:
After you edit php.ini, did you restart Apache?

Thanks for the response. Yes.

keefaz 12-25-2017 09:15 AM

Maybe you edited a wrong php.ini (a php.ini for another php than the apache module)

Not sure about your question for 5.6.32 in Centos, you probably need to install php56w according to:
https://webtatic.com/packages/php56/

(not the fpm package, it's CGI not module)


All times are GMT -5. The time now is 08:40 AM.