Trie et rangement divers

This commit is contained in:
Alan Garcia 2013-02-19 17:42:02 +00:00
parent 53ab1d301b
commit 5c017c4581
11 changed files with 54 additions and 16 deletions

View File

@ -11,12 +11,6 @@ launching :
in a debian server could help finding the right way to do it (eg: bind9 ) ;)
Questions:
- what do we do about /var/alternc/exec.usr/ ?
- we don't need our own php session folder don't we ? (or maybe for alternc-panel writable only ?)
W: alternc: non-standard-dir-perm var/alternc/sessions/ 1733 != 0755
=> /var/alternc/tmp => not easy to decide, cf #1458
=> we must check if alternc can work with memcached sessions (or force disks sessions)
- some binaries / scripts don't have a man page
@ -52,6 +46,8 @@ Should be fixed, need more test:
- /var/alternc/db => not used anymore, drop
- /var/alternc/mla => not used anymore, drop
- there is /var/alternc/cgi-bin/ is forgotten and now we use the standard /usr/lib/cgi-bin/
- /var/alternc/exec.usr/ => usr/lib/alternc/safe_mode_exec_dir
- /var/alternc/sessions/ disapear for the standard PHP sessions dir.
********************************************************************************
FIXED:

5
debian/alternc.dirs vendored
View File

@ -11,14 +11,13 @@ etc/phpmyadmin
etc/postfix
etc/sudoers.d
usr/bin
usr/lib/alternc
usr/share/alternc/panel
usr/lib/alternc
usr/lib/alternc/install.d
usr/lib/alternc/safe_mode_exec_dir
usr/sbin
usr/share/alternc/install
usr/share/locale/fr/LC_MESSAGES
var/alternc/exec.usr
var/alternc/tmp
var/backups/alternc
/var/lib/alternc/apache-vhost
/var/lib/alternc/bind

2
debian/rules vendored
View File

@ -63,7 +63,7 @@ install: build
chown -R 1999:1999 debian/alternc/usr/share/alternc/panel
chmod -R 644 debian/alternc/usr/share/alternc/panel
chmod -R a+X debian/alternc/usr/share/alternc/panel
chown -R www-data:www-data debian/alternc/var/log/alternc debian/alternc/var/alternc/tmp
chown -R www-data:www-data debian/alternc/var/log/alternc
chmod a+x debian/alternc/usr/share/alternc/install/alternc.install debian/alternc/usr/share/alternc/install/dopo.sh debian/alternc/usr/share/alternc/install/mysql.sh debian/alternc/usr/share/alternc/install/newone.php debian/alternc/usr/share/alternc/install/reset_root.php debian/alternc/usr/share/alternc/install/upgrade_check.sh debian/alternc/usr/share/alternc/install/upgrades/*.php debian/alternc/usr/share/alternc/install/upgrades/*.sh
mkdir -p debian/alternc/var/run/alternc/

View File

@ -1,3 +1,8 @@
# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want
# to modify this file.
#
# This module is loaded in /etc/apache/modules, and enabled by apache-modconf
# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
@ -30,7 +35,7 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
php_admin_flag safe_mode off
AddDefaultCharset UTF-8
# open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/var/run/alternc/:/usr/share/alternc/panel/:%%ALTERNC_HTML%%/:/var/alternc/tmp:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:%%ALTERNC_LOGS%%/:/etc/awstats/
php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/var/run/alternc/:/usr/share/alternc/panel/:%%ALTERNC_HTML%%/:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:%%ALTERNC_LOGS%%/:/etc/awstats/
</Directory>
@ -42,13 +47,17 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Allow from all
php_admin_flag safe_mode_gid off
php_admin_flag safe_mode off
php_admin_value disable_functions chmod,chown,chgrp,link,symlink
php_admin_value safe_mode_exec_dir /var/alternc/exec.usr
php_admin_value disable_functions chgrp,link,symlink
php_admin_flag enable_dl off
php_admin_value upload_tmp_dir /var/alternc/tmp
php_admin_value disable_functions chmod,chown,chgrp,link,symlink
php_admin_value safe_mode_exec_dir /usr/lib/alternc/safe_mode_exec_dir
php_admin_value disable_functions chgrp,link,symlink
php_admin_value sendmail_path /usr/lib/alternc/sendmail
# Default upload_tmp_dir is /tmp . Be carefull, this value MUST be surcharged
# by the vhost to be a directory INSIDE the home of the user. If you don't do
# that, ACLs could be "strange" or inexistent.
php_admin_value upload_tmp_dir /tmp
</Directory>
<Directory /usr/share/phpmyadmin>

View File

@ -1,3 +1,9 @@
# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want
# to modify this file.
#
LogFormat "%{LOGIN}e %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %{Host}i" alternc
CustomLog "|| /usr/sbin/vlogger -u alterncpanel -g alterncpanel -s access.log -t \"access-%Y%m%d.log\" %%ALTERNC_LOGS%%" alternc

View File

@ -1,3 +1,8 @@
# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want
# to modify this file.
#
# envvars - default environment variables for apache2ctl
# this won't be correct after changing uid

View File

@ -1,3 +1,8 @@
# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want
# to modify this file.
#
connect=host=%%dbhost%% dbname=%%dbname%% user=%%db_mail_user%% password=%%db_mail_pwd%%
#connect = host=localhost dbname=mails user=testuser password=pass

View File

@ -1,3 +1,9 @@
# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want
# to modify this file.
#
# This file is opened as root, so it should be owned by root and mode 0600.
#
# http://wiki.dovecot.org/AuthDatabase/SQL

View File

@ -1,3 +1,8 @@
# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want
# to modify this file.
#
## Dovecot configuration file
# If you're in a hurry, see http://wiki.dovecot.org/QuickConfiguration

View File

@ -1,2 +1,4 @@
# WARNING: Do not edit this file, edit the one in /etc/alternc/templates and launch alternc.install again.
/var/run/alternc/ IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_update_domains.sh

View File

@ -1,3 +1,8 @@
# AUTO GENERATED FILE
# Modify template in /etc/alternc/templates/
# and launch alternc.install if you want
# to modify this file.
#
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").