DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • May 25, 2019, 08:12:52 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Recommended version PHP, MySQL & Apache/nginx?  (Read 618 times)
0 Members and 1 Guest are viewing this topic.
Smirnov
Militia
**
Offline Offline

Posts: 5


View Profile
« on: April 09, 2019, 01:10:59 AM »

Can you recommend version PHP, MySQL & Apache/nginx for logd 1.1.2? I cann't install game on PHP 7 but on PHP 5.6 and MySQL 5.6 it's working (with some issues).
Becouse version 5.6 is not supported now and the hosting site may not support it.
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1929


You're welcome.


View Profile WWW
« Reply #1 on: April 09, 2019, 02:07:02 AM »

Why can't you install it on PHP 7? The "LoGD 1.1.2 with Bug Fixes (Recommended, 2017)" version should be able to be installed on PHP 7.
Logged

Smirnov
Militia
**
Offline Offline

Posts: 5


View Profile
« Reply #2 on: April 09, 2019, 02:18:47 AM »

On first step I have an error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\lotgd\lib\dbwrapper_mysql.php:136 Stack trace: #0 C:\xampp\htdocs\lotgd\common.php(124): db_connect(NULL, NULL, NULL) #1 C:\xampp\htdocs\lotgd\installer.php(13): require_once('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\lotgd\lib\dbwrapper_mysql.php on line 136

my config:
Database server
Server: 127.0.0.1 via TCP/IP
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.1.38-MariaDB - mariadb.org binary distribution
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)

Web server
Apache/2.4.38 (Win64) OpenSSL/1.1.1b PHP/7.3.3
Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f2 67f48e167c2abb23 $
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 7.3.3
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1929


You're welcome.


View Profile WWW
« Reply #3 on: April 09, 2019, 03:56:42 AM »

In lib/dbwrapper.php, change DBTYPE from mysql to mysqli_proc.
« Last Edit: April 10, 2019, 11:58:13 PM by Aeolus » Logged

Smirnov
Militia
**
Offline Offline

Posts: 5


View Profile
« Reply #4 on: April 09, 2019, 01:54:42 PM »

thanks
I change:
lib\dbwrapper.php
line 16:
        from
          define('DBTYPE',"mysql");
        to
          define('DBTYPE',"mysqli_proc");

lib\installer\installer_stage_5
from mysql to mysqli (4 times)

modules\advertising
lines 42, 45
    from
     $i = split("x",$key);
     $i = split(",",$val);
    to
     $i = explode("x",$key);
     $i = explode(",",$val)

on stage 6:

PHP Warning: "mysqli_select_db() expects exactly 2 parameters, 1 given"
in C:\xampp\htdocs\logd\lib\installer\installer_stage_5.php at 16.
Call Stack:
2: mysqli_select_db("logd") called from C:\xampp\htdocs\logd\lib\installer\installer_stage_5.php on line 16
3: require_once("C:\xampp\htdocs\logd\lib\...") called from C:\xampp\htdocs\logd\installer.php on line 123
PHP Warning: "mysqli_query() expects at least 2 parameters, 1 given"
in C:\xampp\htdocs\logd\lib\installer\installer_stage_5.php at 18.
Call Stack:
2: mysqli_query("SHOW TABLES") called from C:\xampp\htdocs\logd\lib\installer\installer_stage_5.php on line 18
3: require_once("C:\xampp\htdocs\logd\lib\...") called from C:\xampp\htdocs\logd\installer.php on line 123
PHP Warning: "mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given"
in C:\xampp\htdocs\logd\lib\installer\installer_stage_5.php at 19.
Call Stack:
2: mysqli_fetch_assoc(NULL) called from C:\xampp\htdocs\logd\lib\installer\installer_stage_5.php on line 19
3: require_once("C:\xampp\htdocs\logd\lib\...") called from C:\xampp\htdocs\logd\installer.php on line 123

Game is working but I have many errors like this
Logged
TGTarheel
Mod God
*****
Offline Offline

Posts: 533


View Profile
« Reply #5 on: April 10, 2019, 11:46:58 PM »

You needed to change it in dbconnect.php, not dbwrapper.php
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1929


You're welcome.


View Profile WWW
« Reply #6 on: April 10, 2019, 11:48:46 PM »

You needed to change it in dbconnect.php, not dbwrapper.php

This is wrong. Change what? dbconnect is the core database credentials file, dbwrapper is the lib database functions file.

If you meant my original comment, I've corrected the typo, and Smirnov appears to have edited the correct file.
« Last Edit: April 10, 2019, 11:59:04 PM by Aeolus » Logged

TGTarheel
Mod God
*****
Offline Offline

Posts: 533


View Profile
« Reply #7 on: April 18, 2019, 07:42:12 PM »

You needed to change it in dbconnect.php, not dbwrapper.php

This is wrong. Change what? dbconnect is the core database credentials file, dbwrapper is the lib database functions file.

If you meant my original comment, I've corrected the typo, and Smirnov appears to have edited the correct file.

OK.  I was going by what you had originally typed.

It has been some time since I, myself had to make the same modification.

You, yourself said your original post was incorrect - a typo.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
112 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search