Support ⇒ New installations :: Archives ⇒ Don't write to new config.php in includes :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexNew installations

Archived ⇒ Don't write to new config.php in includes


Runnin upgrade to 9.1.1, and on step 2 a new config.php-file is created in the includes-folder, i guess for further use in installation.

But there are two problems:

1. I get error as follows:
"Notice: Undefined index: localhost"
(and so on for each variable for login to database, i.e. username, etc).
Then "Saving configuration succeeded" - the new config-file in inludes is created. But empty on variables!
Hence:

2. I get the following error-message on proceeding:

On /install.php
While executing query "SHOW VARIABLES"

the following error occured: Access denied for user 'nobody'@'localhost' (using password: NO)

In: /home/psykago/public_html/install.php on line: 82


Of course, there are no variables in the new config to use.

I tried modifying the file, but get access denial, as the file was created by the server ...

What can I do to get the installation to put in the variables properly in the config.php-file it creates itself?

Thanks in advance!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
xp/1.3.36Unix/MySQL4.1.19Standard/4.4.2/9.1.2.1


remove the just created includes/config.php and restart the installation .. just make sure that you correctly use db username and db password

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux 6.6 / Apache 2.4 LSAPI / MySQLi 5.5 / PHP 5.5 / DCVS


Thank for quick reply!

Well, I'm afraid I have deleted the file, and restarted the installation a few times now ... same same ...

The username and password are correct. The problem seems to be that when the installation is to proceed it has no values to fetch, because the config.php-file is empty on those values (all from host to prefix, through username, etc).

So on step two, and the creation of the new config-file, those values are not written ...

Hm ...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
xp/1.3.36Unix/MySQL4.1.19Standard/4.4.2/9.1.2.1


MySQL or MySQLi extension?

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux 6.6 / Apache 2.4 LSAPI / MySQLi 5.5 / PHP 5.5 / DCVS


MySQL. I have also uploaded the update files in db for 9.1.1, so it should communicate right ...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
xp/1.3.36Unix/MySQL4.1.19Standard/4.4.2/9.1.2.1


Ops missed this part ...
a_silva wrote
1. I get error as follows:
"Notice: Undefined index: localhost"
(and so on for each variable for login to database, i.e. username, etc).


Make sure you upload all files please

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux 6.6 / Apache 2.4 LSAPI / MySQLi 5.5 / PHP 5.5 / DCVS


Well, all files are uploaded (including modules, blocks and themes) but no change.

I wrote and uploaded the file myself, and then it worked.

So I proceeded to create the database, and that worked fine, but when the intallation tells me to delete install.php and the install-directory, from there on there is no "Next" och "Proceed"-button ...

So, pointing to index.php or admin.php: blank page ...

Does this have anything to do with my writing the config.php-file myself (note: absolute copy of the one that is created, but filled with variables for connection and login).

I'm sorry if this explanation is a bit shatterad. How important is it to upgrade? I feel like I have no control of how this update evolves ...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
xp/1.3.36Unix/MySQL4.1.19Standard/4.4.2/9.1.2.1


a_silva wrote
Well, all files are uploaded (including modules, blocks and themes) but no change.

What about admin, includes, install ....? you need to upgrade all files without skipping one.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux 6.6 / Apache 2.4 LSAPI / MySQLi 5.5 / PHP 5.5 / DCVS


The only folder I haven't updated is "images". I know, maybe being stubborn there, but I can't imagine that would have anything to do with my problems ...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
xp/1.3.36Unix/MySQL4.1.19Standard/4.4.2/9.1.2.1


blank page meanes that you have adited congi.php with an not utf-8 editor like notepad .... try not to complicating things when they can be very very easy.

Just make sure to upload all files, remove the includes/config.php and hit install.php again then if you have problems we start from there.

Between there is another install/config.php which it doesn't have to be modified at all. The system will use install/config.php as 'template' to build the includes/config.php ... you touch one then you screw the other one.

If you have modified install/config.php make sure to greb a fresh one from DragonflyCMS package.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux 6.6 / Apache 2.4 LSAPI / MySQLi 5.5 / PHP 5.5 / DCVS


Well, making sure config had the right encoding was enough. But I'm afraid I have tweeked and modified a few things on the old version (9.0.6.1), so the amount of work I'd have to do to run the 9.1.1. is just ... to much right now. I'll be going back to the old one for this community, starting up a new one would be with the new one though.

Thanks for all the help, really appreaciated. It is nice to see that the community is so alive! Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
xp/1.3.36Unix/MySQL4.1.19Standard/4.4.2/9.1.2.1

All times are UTC