LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-15-2017, 01:11 PM   #1
roburton
LQ Newbie
 
Registered: Feb 2017
Posts: 2

Rep: Reputation: Disabled
PHP 7 or 5 with OCSng


Installed GLPI now working on getting OCSng up and communicating with GLPI. When I attempt to get to OCS I get the following message, :ERROR: MySQL for PHP is not properly installed.
Try installing MySQL for php package (Debian: php5-mysql)"
Not sure how to overcome this as I"ve had many issues with PHP5 trying to get OCSng(and GLPI) to work.
Any suggestions?
 
Old 02-15-2017, 01:44 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
what version of PHP are you currently using? If you go to PHP7, you'd have to use php-mysqli or php-pdo since php-mysql was removed for various reasons such as it's inability to handle prepared statements. Not familiar with OCSng but the only remaining supported version of PHP5 is PHP5.6 which is already out of active support: http://php.net/supported-versions.php

Anything still using PHP5 should be looking to migrate to PHP7 which means going from php-mysql to php-mysqli or php-pdo.
 
Old 02-15-2017, 03:25 PM   #3
roburton
LQ Newbie
 
Registered: Feb 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
PHP7 with OCSng

I'm running PHP7. I did try using PHP 5 a week ago. I couldn't get GLPI up and running with PHP5 though. Noted in blogs that version 5 was not workable with the newest OCSng, V2.3
My mentor, a former VP where I used to work described setting up GLPI and OCSng as "cat herding"
This is on Ubuntu Server 16.04. I'm thinking maybe Cent OS would be more forgiving? Thoughts?
I"m also going to experiment with Fusion if I can't find a workable solution with OCSng.
 
Old 02-15-2017, 04:15 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
do they need to work together or just work? I mean if they both just need to work on the same server and not necessarily together then running PHP as a CGI may work, thinking mainly PHP-FPM. Run an instance of PHP-FPM for PHP7.0+ and another instance for PHP5.6
 
Old 02-17-2017, 01:32 PM   #5
brightrif
LQ Newbie
 
Registered: Feb 2017
Posts: 2

Rep: Reputation: Disabled
Did you check the prerequisites for both? You can check this site.
 
Old 02-17-2017, 03:02 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What was the requirement the last time you installed it?
 
  


Reply



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
After upgrading php 5.3.8 to php 5.4.30 php files are not being executed kingkashif Linux - Server 5 06-26-2014 10:15 AM
Error to install OCSNG for linux sanjay2004 Linux - Server 2 06-06-2014 12:53 AM
[SOLVED] Am trying to install packages like net-snmp, php-mysql, php-snmp, php but with errors Maj Linux - Newbie 1 07-26-2013 02:12 PM
LXer: Streamline software inventory management with OCSNG LXer Syndicated Linux News 0 06-01-2006 01:33 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:31 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
Open Source Consulting | Domain Registration