Jump to content
  • 0

FluxCP not installing/missing pages


Hisouten

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   2
  • Joined:  08/05/14
  • Last Seen:  

! Sorry for posting in the wrong section: I couldn't create new topics in the Web Support forum for unknown reasons.

 

Greetings rAthena,

 

I've been trying to install FluxCP, but I'm getting weird errors everywhere. I've downloaded the latest Flux from http://rathena.github.io/FluxCP/ , and then installed it in my www/ folder. Afterwards, I configured both config/application.php and config/servers.php (only minimal editsto set it running). They're like this:

 

application.php

	'ServerAddress'				=> 'localhost',				// This value is the hostname:port under which Flux runs. (e.g., example.com or example.com:80)
	'BaseURI'					=> 'cp',						// The base URI is the base web root on which your application lies.
	'InstallerPassword'			=> 'whatever',		// Installer/updater password.
	'RequireOwnership'			=> true,					// Require the executing user to be owner of the FLUX_ROOT/data/ directory tree? (Better for security)
[...]
	'DebugMode'					=> true,					// Set to false to minimize technical details from being output by Flux. WARNING: DO NOT USE THIS OPTION ON A PUBLICALLY-ACCESSIBLE CP.

servers.php

			'Username'   => 'myusername',
			'Password'   => 'mypassword',
			'Database'   => 'myserverdatabase',

Quite obviously, 'InstallerPassword', 'Username', 'Password' and 'Database' above contain dummy values. However, I'm pretty sure they are correct ('InstallerPassword' cannot even BE wrong, can it), since I've used CeresCP before (and it worked perfectly), the username specified has full privileges, all that stuff.

 

On to the actual error, the problem is that it won't install. From reading tutorials or watching videos on how to install Flux, the next step would be to access localhost/cp/ through the browser, and then it'd install (and ask me for the 'InstallerPassword' and all. That is not happening. Instead, the CP shows up as if it had been installed, and everything displays correctly (or almost), but none of the links work at all, and instead, I get the following message:

 

Missing View!

Module: install, Action: index

Request URI: /cp/?module=install

File system location: C:/Program Files (x86)/VertrigoServ/www/cp/themes/install/index.php

 

That's for the main page and won't change no matter which link I click. Then, I've read somewhere (sorry, I cannot remember what topic I was in) that I should delete data/schemas/charmapdb and data/schemas/logindb should this be my first installation. If I do that, the CP seems to work at first (yet still no install) - the home message changes to a heartwarming green message that reads:

 

Flux Control Panel

If you are seeing this page, it's likely that you've successfully installed Flux.

Would you like to change this page? Well, here's how you can:

  1. Open "C:\Program Files (x86)\VertrigoServ\www\cp\themes\default\main\index.php" in your text editor.

  2. Edit the file from your editor and save your changes.

 

However, a lot is broken. A few examples are the News, Downloads and Item Database links. Whenever clicked, they display the "Critical Error" screen, and their errors read, respectively:

 

Message: MySQL error (SQLSTATE: 42S02, ERROR: 1146): Table 'myserverdatabase.cp_cmsnews' doesn't exist

Message: MySQL error (SQLSTATE: 42S02, ERROR: 1146): Table 'myserverdatabase.cp_cmspages' doesn't exist

Message: MySQL error (SQLSTATE: 42S02, ERROR: 1146): Table 'myserverdatabase.cp_itemshop' doesn't exist

 

Now, from what little I understand, I'd say I'm missing those cp_* tables in my server database. I... think.

 

So... what ARE those databases? Where do I find the .sql files I should import them from? Is this even the issue? Why won't Flux show its install page like it does in those fairy tale video tutorials?

Any light on these problems, no matter how dim, would be greatly appreciated. Thanks in advance.

Edited by Descending Sky
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   2
  • Joined:  10/12/13
  • Last Seen:  

http://rathena.org/board/files/file/2332-flux-cp-cms-addon/

try it

Regards,
Fenix

Edited by Fenix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   2
  • Joined:  08/05/14
  • Last Seen:  

Thanks for the suggestion Fenix, but unfortunately it won't work.

 

I cannot even follow the installation instructions for the addon, since it requires a properly installed FluxCP in step 3. In any case, I tried moving the content_management folder to my addons folder (just in case), but I keep getting the same error as before. I really don't get why the CP won't install when I first access it, it makes no sense.

 

Any other ideas?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   2
  • Joined:  10/12/13
  • Last Seen:  

what for a flux cp use u?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  244
  • Reputation:   17
  • Joined:  11/19/11
  • Last Seen:  

Click my signature below.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   2
  • Joined:  08/05/14
  • Last Seen:  

@Fenix

Sorry, I don't understand your question.

 

@Microsoft

I had found your topic and followed your guide before. This time, I found something different in step 8 (I had set privileges by going to my server's database then adding all privileges to the user 'root', this time I did it exactly as it is told, and added the database-specific privileges through the main privileges options). So I did it this other way this time around, but still no success. Yes, the user is 'root'@'%'.

What's worse (or better, I wouldn't know), I, once again, tried deleting my whole 'cp' folder and re-downloading Flux from GitHub ( https://github.com/rathena/FluxCP ) then reconfiguring it for a clean install with your guide. Here's what happens when I visit:

 

localhost/cp:

 

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in C:\...\cp\lib\Flux\Config.php on line 113

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files (x86)\VertrigoServ\www\cp\lib\Flux\Config.php:113) in C:\...\cp\lib\Flux\Template.php on line 791

 

localhost/cp/?module=install

 

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in C:\...\cp\lib\Flux\Config.php on line 113

Warning: Flux_Template::include(themes//errors/missing_view.php) [flux-template.include]: failed to open stream: No such file or directory in C:\...\www\cp\lib\Flux\Template.php on line 363

Warning: Flux_Template::include() [function.include]: Failed opening 'themes//errors/missing_view.php' for inclusion (include_path='lib;.;C:\Program Files (x86)\VertrigoServ\Smarty') in C:\...\cp\lib\Flux\Template.php on line 363

 

I'm starting to think Flux is a living being and it's toying with my feelings. Did I fall deeper into the pitch-black hole of non-Fluxing or is this actually an easier error to fix or something?

 

@Akkarin

This may be a matter of lack of sleep, extreme bad luck, perhaps a curse, or maybe simply divine punishment for previous lives I've led wrong, but the way I see it, most guides I find are useful and help most users just fine. 'Most' users because there's me, and I'm pretty skilled at overlooking minor yet critical details or summoning accursed fortune to ruin the simplest of tasks or events. :(

Edited by Descending Sky
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   2
  • Joined:  08/05/14
  • Last Seen:  

Bump, anyone?

 

These past weeks I have tried reinstalling and updating everything countless times to no avail. The closest I got to make it work was with CalciumKid's version of Flux, which brought me the following issue and doubt:

 

Is it ready to run in a renewal environment or does it require any specific config to do so? It's distributed as a renewal flux, but whenever I manage to partially (because my original problems remain) install it, it still asks me for all the pre-re dbs (such as item_db, when I believe it should be checking my item_db_re db instead, which I have uploaded).

 

Secondly, it has been last authored in 2012. Is it not missing important updates, fixes or features I'll be missing in the long run?

 

Thanks again in advance, any help would be appreciated.

Link to comment
Share on other sites

×
×
  • Create New...