Page 1 of 1

I must have missed a setting? Help

PostPosted: Fri Apr 25, 2008 12:18 pm
Author: Allen
Your phpBB Version: 2.0.23
phpBB Type: Integramod 141
MODs: No
Your knowledge: Beginner
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

The message simply says....

Your Daily Database Backup Failed.

but I can't find a setting to correct the issue. And I can find anything in the portal manual or in the forums.

Thanks in advance

Re: I must have missed a setting? Help

PostPosted: Fri Apr 25, 2008 1:03 pm
Author: Helter
Im assuming you have set your backup folder file permissions to 777, so check this first
go to acp/.: Security :./special
change the number of admins and save. Now check and see if it saved the correct number of admins.

Re: I must have missed a setting? Help

PostPosted: Sat Apr 26, 2008 12:00 am
Author: Allen
Sorry no I have not set any permissions. The install instruction told me to skip that step.

I unzipped using cpanel.

And the Special doesn't wanna save any number I put in there and save the protect admin setting is switching back disabled.

Re: I must have missed a setting? Help

PostPosted: Sat Apr 26, 2008 7:34 am
Author: CaNNon
You'll need to do the permissions they do need to be able to write to those folders.

Re: I must have missed a setting? Help

PostPosted: Sat Apr 26, 2008 9:20 am
Author: Allen
Ok!

I went down the list and set all the permissions. Only one of them was set correctly.

I must have misunderstood which server I was on.

Re: I must have missed a setting? Help

PostPosted: Sat Apr 26, 2008 1:09 pm
Author: Helter
did this solve your problem in acp/.: Security :./special/
number of admins?

Re: I must have missed a setting? Help

PostPosted: Sat Apr 26, 2008 9:23 pm
Author: Allen
It still returns to blank setting after I save special settings. and even now the permissions are correct i still got an email tonight saying that backup failed again.

I do not know why it will not hold the setting in special. I am the only admin and I set it to 1 admin allowed but returns to blank after saving.

Re: I must have missed a setting? Help

PostPosted: Sat Apr 26, 2008 11:45 pm
Author: Helter
it is because when you installed your forum, includes/phpbb_security.php was not chmodded to 666 so the install was not able to write to the file. You will have to edit the file to match the database entry.
in your database open phpbb_config.
look for these thee entries and thier following values.

sec_admin
sec_mods
sec_name

open includes/phpbb_security.php
find

function phpBBSecurity_AdminConfigName()
{
return 'phpBBSecurity_max_admins';
}

function phpBBSecurity_ModConfigName()
{
return 'phpBBSecurity_max_mods';
}

function phpBBSecurity_UseSpecial()
{
return 'phpBBSecurity_use_max';
}

replace the info in red with the values from the database fields
*note... the values are auto generated and will look something like kxucgncqteynvtykgiusb
after you have edited this file, set the chmod to 644

Re: I must have missed a setting? Help

PostPosted: Sun Apr 27, 2008 12:47 am
Author: Allen
Done!

Now I can save max admins. But Since I did not know exactly which server I was on and did not set the permissions prior to loading the install screen., would it be best to re install setting the correct permissions before loading the install screen?

Are there not going to be more issues like this I have to correct? I ask now because this site is a learning curve for me. I wont be live with it until for at least another week.

Re: I must have missed a setting? Help

PostPosted: Sun Apr 27, 2008 2:18 am
Author: Helter
that and config.php are the only ones that are critical at install time. You will want to be sure your includes/def_* files are 666 also.
If your board is new and still working, you should be fine to set your chmods now.

Re: I must have missed a setting? Help

PostPosted: Mon Apr 28, 2008 6:36 pm
Author: Allen
Still receiving emails stating Database Backup Failed.

The Max admins seems to be fine. Still holding setting of 1. I have checked the includes/def_* files and the permissions are still the same as they are listed in the above post.

Re: I must have missed a setting? Help

PostPosted: Fri May 09, 2008 11:19 am
Author: Allen
Still getting daily messages about the back failing.

Re: I must have missed a setting? Help

PostPosted: Fri May 09, 2008 11:20 am
Author: Allen
Still getting daily messages about the back failing.

Re: I must have missed a setting? Help

PostPosted: Fri May 09, 2008 12:27 pm
Author: DjPorkchop
Ive been getting that for years now and yes....My backup folder is chmod to 777

1 user on my server says his worked for a short time then stopped working suddenly. I have never been able to get mine to work. So i just go to my control panel on the server and download a backup of my db.

Re: I must have missed a setting? Help

PostPosted: Fri May 09, 2008 2:30 pm
Author: Helter
try this

OPEN includes/phpbb_security.php

FIND
Code: Select all
            system("/usr/bin/mysqldump -u". $dbuser ." -p". $dbpasswd ." -h ". $dbhost ." ". $dbname ." > ". (($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] ]) . $board_config['.script_path'] . $backup_folder ."/". $backup_file  ."-". date('Y-m-d') .".sql", $fp);  


REPLACE WITH

Code: Select all
    include_once($phpbb_root_path .'includes/functions.'. $phpEx);    $my_path = search_mysqldump();    system($my_path ."mysqldump -u". $dbuser ." -p". $dbpasswd ." -h ". $dbhost ." ". $dbname ." > ". (($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] ]) . $board_config['.script_path'] . $backup_folder ."/". $backup_file  ."-". date('Y-m-d') .".sql", $fp);