Hi...
Following a server migration from server A (Fedora 3) to server B (Debian4) with same versions of directadmin, i have met several errors in backups on server B.
Most important is :
.Awstats statistics misconfigured.
.Database Access rights lost.
.chmods not correct (from 777 to 755 to respect suphp requirements...)
I wish to do the following modifications, if possible under some sort of scripts, but i do not know where to start... (i'm willing to learn and understand with documented examples, not forcely a premade script)
- Awstats :
On fedora all files were under /etc/awstats (including stats per domain)
I wish to make a script, that will :
1-
parse all awstats.[domain].conf files present in /etc/awstats
check in each file
AllowAccessFromWebToFollowingAuthenticatedUsers="[user]"
and get [user]
check in each file if param :
DirData="/etc/awstats" is present and if yes, then comment out line, and insert :
DirData="/home/[user]/domains/[domains]/stats/"
And save fille
2-
Parse all files in /etc/awstats/backup
Copy each file awstats{date}.[domain].txt and dnscachelastupdate.[domain].txt to /home/[user]/domains/[domains]/stats/
Remove files awstats{date}.[domain].txt and dnscachelastupdate.[domain].txt in /etc/awstats.backup
- Database access rights :
Our clients under Orange ISP are allowed an access on server on a joker % access... (%.orange.fr)
I wish to make an automatic check of all databases to verify if joker is present. If not must be added...
- Chmods :
Since migration, in each /home/[user]/domains/[domains]/public_html
I have a unzip file that was formally under chmod 777 and now must be under 755...
I would like to parse all folders check chmod of file, and replace if necessary by correct chmod...
Another problem :
We have in France regular spamblocking due to lack of quality isp's...
Certain of our clients get therefore their own clients blocked through antispam Rbl rules... I have therefore setup under /etc/virtual/ a file named whitelist_senders_rules that holds list of granted access email adresses...
I wish to implement in a skin a page (already made) where our clients can by themselves add their clients email adress that will be automatically whitelisted on our servers (except for antivirus)
How do i cope system file modifications through the web panel, so that email adresses get added in the file ???
Yours
Tdldp
Following a server migration from server A (Fedora 3) to server B (Debian4) with same versions of directadmin, i have met several errors in backups on server B.
Most important is :
.Awstats statistics misconfigured.
.Database Access rights lost.
.chmods not correct (from 777 to 755 to respect suphp requirements...)
I wish to do the following modifications, if possible under some sort of scripts, but i do not know where to start... (i'm willing to learn and understand with documented examples, not forcely a premade script)
- Awstats :
On fedora all files were under /etc/awstats (including stats per domain)
I wish to make a script, that will :
1-
parse all awstats.[domain].conf files present in /etc/awstats
check in each file
AllowAccessFromWebToFollowingAuthenticatedUsers="[user]"
and get [user]
check in each file if param :
DirData="/etc/awstats" is present and if yes, then comment out line, and insert :
DirData="/home/[user]/domains/[domains]/stats/"
And save fille
2-
Parse all files in /etc/awstats/backup
Copy each file awstats{date}.[domain].txt and dnscachelastupdate.[domain].txt to /home/[user]/domains/[domains]/stats/
Remove files awstats{date}.[domain].txt and dnscachelastupdate.[domain].txt in /etc/awstats.backup
- Database access rights :
Our clients under Orange ISP are allowed an access on server on a joker % access... (%.orange.fr)
I wish to make an automatic check of all databases to verify if joker is present. If not must be added...
- Chmods :
Since migration, in each /home/[user]/domains/[domains]/public_html
I have a unzip file that was formally under chmod 777 and now must be under 755...
I would like to parse all folders check chmod of file, and replace if necessary by correct chmod...
Another problem :
We have in France regular spamblocking due to lack of quality isp's...
Certain of our clients get therefore their own clients blocked through antispam Rbl rules... I have therefore setup under /etc/virtual/ a file named whitelist_senders_rules that holds list of granted access email adresses...
I wish to implement in a skin a page (already made) where our clients can by themselves add their clients email adress that will be automatically whitelisted on our servers (except for antivirus)
How do i cope system file modifications through the web panel, so that email adresses get added in the file ???
Yours
Tdldp