Jump to content
  • 0

FluxCP - Server Status


wabbu

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  01/20/19
  • Last Seen:  

I’m Having trouble connecting the FluxCP Server Status (Login, Char, Map). My Ragnarok server is running through a Raspberry Pi, and independently the web server is running the FluxCP.

My ports in the Raspberry Pi are open (6900, 6121, 5121) and working.

Also, I want to add that all the files from FluxCP have 777 permissions.

1.thumb.png.c325b0afd62a0f43f11083ddfed8be36.png

Here is my server.php configuration:

<?php
return array(
	// Example server configuration. You may have more arrays like this one to
	// specify multiple server groups (however they should share the same login
	// server whilst they are allowed to have multiple char/map pairs).
	array(
		'ServerName'     => 'NetRO',
		// Global database configuration (excludes logs database configuration).
		'DbConfig'       => array(
			//'Socket'     => '/tmp/mysql.sock',
			//'Port'       => 3306,
			//'Encoding'   => 'utf8', // Connection encoding -- use whatever here your MySQL tables collation is.
			'Convert'    => 'utf8',
				// -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
				// -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
			'Hostname'   => '__Web_HostName__',
			'Username'   => '__Web_User__',
			'Password'   => '__Web_Pass__',
			'Database'   => '__Web_Database__',
			'Persistent' => true,
			'Timezone'   => null // Example: '+0:00' is UTC.
			// The possible values of 'Timezone' is as documented from the MySQL website:
			// "The value can be given as a string indicating an offset from UTC, such as '+10:00' or '-6:00'."
			// "The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'." (see below continuation!)
			// **"Named time zones can be used only if the time zone information tables in the mysql database have been created and populated."
		),
		// This is kept separate because many people choose to have their logs
		// database accessible under different credentials, and often on a
		// different server entirely to ensure the reliability of the log data.
		'LogsDbConfig'   => array(
			//'Socket'     => '/tmp/mysql.sock',
			//'Port'       => 3306,
			//'Encoding'   => null, // Connection encoding -- use whatever here your MySQL tables collation is.
			'Convert'    => 'utf8',
				// -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
				// -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
			'Hostname'   => '__Web_HostName__',
			'Username'   => '__Web_User__',
			'Password'   => '__Web_Pass__',
			'Database'   => '__Web_Database__',
			'Persistent' => true,
			'Timezone'   => null // Possible values is as described in the comment in DbConfig.
		),
		// Login server configuration.
		'LoginServer'    => array(
			'Address'  => '__Ragnarok_Server_IP__',
			'Port'     => 6900,
			'UseMD5'   => false,
			'NoCase'   => true, // rA account case-sensitivity; Default: Case-INsensitive (true).
			'GroupID'  => 0,    // Default account group ID during registration.
			//'Database' => 'ragnarok'
		),
		'CharMapServers' => array(
			array(
				'ServerName'      => 'NetRO',
				'Renewal'         => true,
				'MaxCharSlots'    => 9,
				'DateTimezone'    => null, // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
				//'ResetDenyMaps'   => 'sec_pri', // Defaults to 'sec_pri'. This value can be an array of map names.
				//'Database'        => 'ragnarok', // Defaults to DbConfig.Database
				'ExpRates' => array(
					'Base'        => 1800, // Rate at which (base) exp is given
					'Job'         => 1800, // Rate at which job exp is given
					'Mvp'         => 300  // MVP bonus exp rate
				),
				'DropRates' => array(
					// The rate the common items (in the ETC tab, besides card) are dropped
					'Common'      => 1000,
					'CommonBoss'  => 1000,
					// The rate healing items (that restore HP or SP) are dropped
					'Heal'        => 1000,
					'HealBoss'    => 1000,
					// The rate usable items (in the item tab other then healing items) are dropped
					'Useable'     => 1000,
					'UseableBoss' => 1000,
					// The rate at which equipment is dropped
					'Equip'       => 1000,
					'EquipBoss'   => 1000,
					// The rate at which cards are dropped
					'Card'        => 1000,
					'CardBoss'    => 1000,
					// The rate adjustment for the MVP items that the MVP gets directly in their inventory
					'MvpItem'     => 1000
				),
				'CharServer'      => array(
					'Address'     => '__Ragnarok_Server_IP__',
					'Port'        => 6121
				),
				'MapServer'       => array(
					'Address'     => '__Ragnarok_Server_IP__',
					'Port'        => 5121
				),
				// -- WoE days and times --
				// First parameter: Starding day 0=Sunday / 1=Monday / 2=Tuesday / 3=Wednesday / 4=Thursday / 5=Friday / 6=Saturday
				// Second parameter: Starting hour in 24-hr format.
				// Third paramter: Ending day (possible value is same as starting day).
				// Fourth (final) parameter: Ending hour in 24-hr format.
				// ** (Note, invalid times are ignored silently.)
				'WoeDayTimes'   => array(
					//array(0, '12:00', 0, '14:00'), // Example: Starts Sunday 12:00 PM and ends Sunday 2:00 PM
					//array(3, '14:00', 3, '15:00')  // Example: Starts Wednesday 2:00 PM and ends Wednesday 3:00 PM
				),
				// Modules and/or actions to disallow access to during WoE.
				'WoeDisallow'   => array(
					array('module' => 'character', 'action' => 'online'),  // Disallow access to "Who's Online" page during WoE.
					array('module' => 'character', 'action' => 'mapstats') // Disallow access to "Map Statistics" page during WoE.
				)
			)
		)
	)
);
?>

Here my cache files from ConfigServers.cache.php is as follows:

<
? php exit("Forbidden."); ? > O: 11: "Flux_Config": 3: {
    s: 22: " Flux_Config configArr";a: 1: {
        i: 0;a: 5: {
            s: 10: "ServerName";s: 5: "NetRO";s: 8: "DbConfig";a: 7: {
                s: 7: "Convert";s: 4: "utf8";s: 8: "Hostname";s: 12: "__Web_HostName__";s: 8: "Username";s: 13: "__Web_User__";s: 8: "Password";s: 10: "__Web_Pass__";s: 8: "Database";s: 13: "__Web_Database__";s: 10: "Persistent";b: 1;s: 8: "Timezone";N;
            }
            s: 12: "LogsDbConfig";a: 7: {
                s: 7: "Convert";s: 4: "utf8";s: 8: "Hostname";s: 12: "__Web_HostName__";s: 8: "Username";s: 13: "__Web_User__";s: 8: "Password";s: 10: "__Web_Pass__";s: 8: "Database";s: 13: "__Web_Database__";s: 10: "Persistent";b: 1;s: 8: "Timezone";N;
            }
            s: 11: "LoginServer";a: 5: {
                s: 7: "Address";s: 13: "__Ragnarok_Server_IP__";s: 4: "Port";i: 6900;s: 6: "UseMD5";b: 0;s: 6: "NoCase";b: 1;s: 7: "GroupID";i: 0;
            }
            s: 14: "CharMapServers";a: 1: {
                i: 0;a: 10: {
                    s: 10: "ServerName";s: 5: "NetRO";s: 7: "Renewal";b: 1;s: 12: "MaxCharSlots";i: 9;s: 12: "DateTimezone";N;s: 8: "ExpRates";a: 3: {
                        s: 4: "Base";i: 100;s: 3: "Job";i: 100;s: 3: "Mvp";i: 100;
                    }
                    s: 9: "DropRates";a: 11: {
                        s: 6: "Common";i: 100;s: 10: "CommonBoss";i: 100;s: 4: "Heal";i: 100;s: 8: "HealBoss";i: 100;s: 7: "Useable";i: 100;s: 11: "UseableBoss";i: 100;s: 5: "Equip";i: 100;s: 9: "EquipBoss";i: 100;s: 4: "Card";i: 100;s: 8: "CardBoss";i: 100;s: 7: "MvpItem";i: 100;
                    }
                    s: 10: "CharServer";a: 2: {
                        s: 7: "Address";s: 13: "__Ragnarok_Server_IP__";s: 4: "Port";i: 6121;
                    }
                    s: 9: "MapServer";a: 2: {
                        s: 7: "Address";s: 13: "__Ragnarok_Server_IP__";s: 4: "Port";i: 5121;
                    }
                    s: 11: "WoeDayTimes";a: 0: {}
                    s: 11: "WoeDisallow";a: 2: {
                        i: 0;a: 2: {
                            s: 6: "module";s: 9: "character";s: 6: "action";s: 6: "online";
                        }
                        i: 1;a: 2: {
                            s: 6: "module";s: 9: "character";s: 6: "action";s: 8: "mapstats";
                        }
                    }
                }
            }
        }
    }
    s: 30: " Flux_Config defaultSetOptions";a: 2: {
        s: 9: "overwrite";b: 1;s: 5: "force";b: 1;
    }
    s: 27: " Flux_Config exceptionClass";s: 10: "Flux_Error";
}

Here attached you can find a screenshot of my tmp directory:

 

1 (1).png

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

5 hours ago, wabbu said:

I’m Having trouble connecting the FluxCP Server Status (Login, Char, Map). My Ragnarok server is running through a Raspberry Pi, and independently the web server is running the FluxCP.

My ports in the Raspberry Pi are open (6900, 6121, 5121) and working.

Also, I want to add that all the files from FluxCP have 777 permissions.

1.thumb.png.c325b0afd62a0f43f11083ddfed8be36.png

Here is my server.php configuration:


<?php
return array(
	// Example server configuration. You may have more arrays like this one to
	// specify multiple server groups (however they should share the same login
	// server whilst they are allowed to have multiple char/map pairs).
	array(
		'ServerName'     => 'NetRO',
		// Global database configuration (excludes logs database configuration).
		'DbConfig'       => array(
			//'Socket'     => '/tmp/mysql.sock',
			//'Port'       => 3306,
			//'Encoding'   => 'utf8', // Connection encoding -- use whatever here your MySQL tables collation is.
			'Convert'    => 'utf8',
				// -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
				// -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
			'Hostname'   => '__Web_HostName__',
			'Username'   => '__Web_User__',
			'Password'   => '__Web_Pass__',
			'Database'   => '__Web_Database__',
			'Persistent' => true,
			'Timezone'   => null // Example: '+0:00' is UTC.
			// The possible values of 'Timezone' is as documented from the MySQL website:
			// "The value can be given as a string indicating an offset from UTC, such as '+10:00' or '-6:00'."
			// "The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'." (see below continuation!)
			// **"Named time zones can be used only if the time zone information tables in the mysql database have been created and populated."
		),
		// This is kept separate because many people choose to have their logs
		// database accessible under different credentials, and often on a
		// different server entirely to ensure the reliability of the log data.
		'LogsDbConfig'   => array(
			//'Socket'     => '/tmp/mysql.sock',
			//'Port'       => 3306,
			//'Encoding'   => null, // Connection encoding -- use whatever here your MySQL tables collation is.
			'Convert'    => 'utf8',
				// -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
				// -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
			'Hostname'   => '__Web_HostName__',
			'Username'   => '__Web_User__',
			'Password'   => '__Web_Pass__',
			'Database'   => '__Web_Database__',
			'Persistent' => true,
			'Timezone'   => null // Possible values is as described in the comment in DbConfig.
		),
		// Login server configuration.
		'LoginServer'    => array(
			'Address'  => '__Ragnarok_Server_IP__',
			'Port'     => 6900,
			'UseMD5'   => false,
			'NoCase'   => true, // rA account case-sensitivity; Default: Case-INsensitive (true).
			'GroupID'  => 0,    // Default account group ID during registration.
			//'Database' => 'ragnarok'
		),
		'CharMapServers' => array(
			array(
				'ServerName'      => 'NetRO',
				'Renewal'         => true,
				'MaxCharSlots'    => 9,
				'DateTimezone'    => null, // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
				//'ResetDenyMaps'   => 'sec_pri', // Defaults to 'sec_pri'. This value can be an array of map names.
				//'Database'        => 'ragnarok', // Defaults to DbConfig.Database
				'ExpRates' => array(
					'Base'        => 1800, // Rate at which (base) exp is given
					'Job'         => 1800, // Rate at which job exp is given
					'Mvp'         => 300  // MVP bonus exp rate
				),
				'DropRates' => array(
					// The rate the common items (in the ETC tab, besides card) are dropped
					'Common'      => 1000,
					'CommonBoss'  => 1000,
					// The rate healing items (that restore HP or SP) are dropped
					'Heal'        => 1000,
					'HealBoss'    => 1000,
					// The rate usable items (in the item tab other then healing items) are dropped
					'Useable'     => 1000,
					'UseableBoss' => 1000,
					// The rate at which equipment is dropped
					'Equip'       => 1000,
					'EquipBoss'   => 1000,
					// The rate at which cards are dropped
					'Card'        => 1000,
					'CardBoss'    => 1000,
					// The rate adjustment for the MVP items that the MVP gets directly in their inventory
					'MvpItem'     => 1000
				),
				'CharServer'      => array(
					'Address'     => '__Ragnarok_Server_IP__',
					'Port'        => 6121
				),
				'MapServer'       => array(
					'Address'     => '__Ragnarok_Server_IP__',
					'Port'        => 5121
				),
				// -- WoE days and times --
				// First parameter: Starding day 0=Sunday / 1=Monday / 2=Tuesday / 3=Wednesday / 4=Thursday / 5=Friday / 6=Saturday
				// Second parameter: Starting hour in 24-hr format.
				// Third paramter: Ending day (possible value is same as starting day).
				// Fourth (final) parameter: Ending hour in 24-hr format.
				// ** (Note, invalid times are ignored silently.)
				'WoeDayTimes'   => array(
					//array(0, '12:00', 0, '14:00'), // Example: Starts Sunday 12:00 PM and ends Sunday 2:00 PM
					//array(3, '14:00', 3, '15:00')  // Example: Starts Wednesday 2:00 PM and ends Wednesday 3:00 PM
				),
				// Modules and/or actions to disallow access to during WoE.
				'WoeDisallow'   => array(
					array('module' => 'character', 'action' => 'online'),  // Disallow access to "Who's Online" page during WoE.
					array('module' => 'character', 'action' => 'mapstats') // Disallow access to "Map Statistics" page during WoE.
				)
			)
		)
	)
);
?>

Here my cache files from ConfigServers.cache.php is as follows:


<
? php exit("Forbidden."); ? > O: 11: "Flux_Config": 3: {
    s: 22: " Flux_Config configArr";a: 1: {
        i: 0;a: 5: {
            s: 10: "ServerName";s: 5: "NetRO";s: 8: "DbConfig";a: 7: {
                s: 7: "Convert";s: 4: "utf8";s: 8: "Hostname";s: 12: "__Web_HostName__";s: 8: "Username";s: 13: "__Web_User__";s: 8: "Password";s: 10: "__Web_Pass__";s: 8: "Database";s: 13: "__Web_Database__";s: 10: "Persistent";b: 1;s: 8: "Timezone";N;
            }
            s: 12: "LogsDbConfig";a: 7: {
                s: 7: "Convert";s: 4: "utf8";s: 8: "Hostname";s: 12: "__Web_HostName__";s: 8: "Username";s: 13: "__Web_User__";s: 8: "Password";s: 10: "__Web_Pass__";s: 8: "Database";s: 13: "__Web_Database__";s: 10: "Persistent";b: 1;s: 8: "Timezone";N;
            }
            s: 11: "LoginServer";a: 5: {
                s: 7: "Address";s: 13: "__Ragnarok_Server_IP__";s: 4: "Port";i: 6900;s: 6: "UseMD5";b: 0;s: 6: "NoCase";b: 1;s: 7: "GroupID";i: 0;
            }
            s: 14: "CharMapServers";a: 1: {
                i: 0;a: 10: {
                    s: 10: "ServerName";s: 5: "NetRO";s: 7: "Renewal";b: 1;s: 12: "MaxCharSlots";i: 9;s: 12: "DateTimezone";N;s: 8: "ExpRates";a: 3: {
                        s: 4: "Base";i: 100;s: 3: "Job";i: 100;s: 3: "Mvp";i: 100;
                    }
                    s: 9: "DropRates";a: 11: {
                        s: 6: "Common";i: 100;s: 10: "CommonBoss";i: 100;s: 4: "Heal";i: 100;s: 8: "HealBoss";i: 100;s: 7: "Useable";i: 100;s: 11: "UseableBoss";i: 100;s: 5: "Equip";i: 100;s: 9: "EquipBoss";i: 100;s: 4: "Card";i: 100;s: 8: "CardBoss";i: 100;s: 7: "MvpItem";i: 100;
                    }
                    s: 10: "CharServer";a: 2: {
                        s: 7: "Address";s: 13: "__Ragnarok_Server_IP__";s: 4: "Port";i: 6121;
                    }
                    s: 9: "MapServer";a: 2: {
                        s: 7: "Address";s: 13: "__Ragnarok_Server_IP__";s: 4: "Port";i: 5121;
                    }
                    s: 11: "WoeDayTimes";a: 0: {}
                    s: 11: "WoeDisallow";a: 2: {
                        i: 0;a: 2: {
                            s: 6: "module";s: 9: "character";s: 6: "action";s: 6: "online";
                        }
                        i: 1;a: 2: {
                            s: 6: "module";s: 9: "character";s: 6: "action";s: 8: "mapstats";
                        }
                    }
                }
            }
        }
    }
    s: 30: " Flux_Config defaultSetOptions";a: 2: {
        s: 9: "overwrite";b: 1;s: 5: "force";b: 1;
    }
    s: 27: " Flux_Config exceptionClass";s: 10: "Flux_Error";
}

Here attached you can find a screenshot of my tmp directory:

 

1 (1).png

 

            'Hostname'   => '<server IP or Link>',
            'Username'   => '<phpMyadminUser',
            'Password'   => 'phpMyAdminPass',
            'Database'   => '<phpMyAdminDB',

Did you try to enable those port in your FireWall?

Edited by chatterboy
Rok On!
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  01/20/19
  • Last Seen:  

4 hours ago, chatterboy said:

            'Hostname'   => '<server IP or Link>',
            'Username'   => '<phpMyadminUser',
            'Password'   => 'phpMyAdminPass',
            'Database'   => '<phpMyAdminDB',

Did you try to enable those port in your FireWall?

Thank you for the fast reply chatterboy.
What firewall are we talking about?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

10 hours ago, wabbu said:

Thank you for the fast reply chatterboy.
What firewall are we talking about?

try this ->>   systemctl stop firewalld

If that not work check this for reference Here!

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

9 minutes ago, chatterboy said:

systemctl stop firewalld

this is better

systemctl Allow DDOS

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

please go ask your web hosting provider to open the ports needed.

Link to comment
Share on other sites

×
×
  • Create New...