Loading...
 
Skip to main content

Architecture / Installation


Admin Username - Not a n00b issue.

posts: 4

FTP-only web server running PHP 2.x, MySQL 3.x, Apache 4.x, Tiki 1.8.

Installation ran smoothly up to the point where I log in for the first time. Reconfigured the db\tiki-db.php file to the appropriate names and passwords, however when I attempt to access the Index or Admin pages I get an Access Denied error.

The application is attempting to log in to the database using the name 'admin', even though I specified the appropriate username and password in the tiki-db.php file.

Do I need to go through every line of code changing each instance of 'admin' to the admin username? Is there (please God) a centralized connection file somewhere?

Any help would be greatly appreciated.

posts: 71 United States
It would be better for you to use tiki-install.php to configure local.php rather than editing tiki-db.php.

posts: 2881 United Kingdom

Using the local.php variation is a must in 1.8 as its used for when session storage is set to the database. tiki-db.php values should never be used from 1.8 onwards

Damian


posts: 4

I followed the online instructions to the letter for installing on a FTP-only server. This included manually uploading the tiki.sql table file to PHPMyAdmin and editing the tiki-db.php file. Using the tiki-install.php file never worked, presumably because it was trying to access the database with username 'admin' instead of the one I specified. I'd input the appropriate settings, click Submit, and the page would reload without any changes being made.

I just tried to download the local.php file (didn't know this was created by the application), edit the username back, and overwrite the old copy, but it seems pretty insistant on using 'admin' as the administrative database username.


posts: 4

Just had to delete the existing local.php to get the new file to upload.

I can log in and access the page now, but I'm getting a ton of errors.

Admin page throws the following errors:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/domains/blah.com/docs/tiki/db/tiki-db.php:151) in /var/www/domains/blah.com/docs/tiki/tiki-setup_base.php on line 178

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/domains/blah.com/docs/tiki/db/tiki-db.php:151) in /var/www/domains/blah.com/docs/tiki/tiki-setup_base.php on line 178


After logging in I get an error page with:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/domains/blah.com/docs/tiki/db/tiki-db.php:151) in /var/www/domains/blah.com/docs/tiki/tiki-setup_base.php on line 178

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/domains/blah.com/docs/tiki/db/tiki-db.php:151) in /var/www/domains/blah.com/docs/tiki/tiki-setup_base.php on line 178

Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/blah.com/docs/tiki/db/tiki-db.php:151) in /var/www/domains/blah.com/docs/tiki/tiki-login.php on line 26


posts: 4

Solved the problem.

I had done a Select All->Copy->Paste to Notepad from IE with tiki-db.php because the formatting of the code was all buggered when viewing in raw text mode. There were two carriage returns that copied over. After deleting them and uploading the file everything runs fine.