LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2017, 01:07 PM   #1
Datsys
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Rep: Reputation: 0
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?
 
Old 12-24-2017, 01:54 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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
 
Old 12-24-2017, 09:24 PM   #3
Datsys
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by keefaz View Post
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?
 
Old 12-25-2017, 02:27 AM   #4
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,373

Rep: Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539
Short "Is it plugged in?" questions:
After you edit php.ini, did you restart Apache?
 
Old 12-25-2017, 09:05 AM   #5
Datsys
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by scasey View Post
Short "Is it plugged in?" questions:
After you edit php.ini, did you restart Apache?
Thanks for the response. Yes.
 
Old 12-25-2017, 10:15 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTPD & PHP & MySQL Installation praneethdamera Linux - Software 14 01-28-2014 03:07 AM
application/x-httpd-php download rewards Linux - Server 3 09-11-2012 01:47 AM
httpd,php & mysql paruhang Linux - Newbie 17 10-20-2011 06:50 PM
You have chosen to open which is a: application/x-httpd-php cucolin@ Linux - Server 4 02-02-2007 11:38 AM
How to uninstall httpd & PHP dhammika Linux - Software 4 04-28-2004 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration