Giter VIP home page Giter VIP logo

alternc's Introduction

AlternC: Web and Email Hosting Software Suite

AlternC is a software helping system administrators to handle Web and Email services management. It should be easy to install, based only on free software.

This software consist of an automatic install and configuration system, a web control panel to manage hosted users and their web services such as domains, email accounts, ftp accounts, web statistics...

Technically, AlternC is based on Debian GNU/Linux distribution and it depends on other software such as Apache, Postfix, Dovecot, Mailman (...). It also contains an API documentation so that users can easily customize their web desktop.

This project native language is French, and the code is commented in English. The packages are available at least in French and English, German and Spanish interfaces are usually available too.

Installation

To install AlternC, please follow our install documentation

Pour installer AlternC, merci de suivre la documentation d'installation

Upgrading from AlternC 3.[1,2,3].11 or earlier

The recommended process for upgrading is to upgrade to 3.3.12 before upgrading to 3.5. If you choose to upgrade directly to 3.5 from an earlier version, please read this information as there is a risk of a loss of data.

AlternC >= 3.5 removes integrates alternc-ssl and alternc-admintools in the the core AlternC package.

As a result, both alternc-ssl and alternc-admintools will be removed during installation. When alternc-ssl is removed, it will mark many of the sub domain types suffixed with '-ssl' and '-mixssl' for deletion.

To safely upgrade between these versions:

  • Backup your AlternC database
  • Stop the cron service: /etc/init.d/cron stop
  • Install alternc (>= 3.5)
  • Run the following queries against the alternc database (here, it's called "alternc"):
mysql alternc -e 'update sub_domaines set web_action = "OK" where type like "%-mixssl";'
mysql alternc -e 'update sub_domaines set web_action = "OK" where type like "%-ssl";'
  • Run alternc.install
  • Start the cron service again: /etc/init.d/cron start

Developper information

  • This software is built around a Debian package for Stretch whose packaging instructions are located in debian/ folder (this package can be installed on Jessie safely too)

  • To build the packages, clone this repository in a Debian machine and use debuild or dpkg-buildpackage from source code root.

  • The web control panel pages written in PHP are located in bureau/admin and the associated PHP classes doing the stuff are in bureau/class.

Nightly build

We have 1 nightly build repositories:

and 3 nightly from former Debian releases (now unmaintained)

To use one of them, create a file named /etc/apt/sources.list.d/alternc-nightly-stable-3.5.list (for debian Jessie or Stretch) as follow :

 deb http://stable-3-5.nightly.alternc.org/ latest/

The repository and the packages are signed by the pgp key of AlternC nightly build user :

wget http://stable-3-5.nightly.alternc.org/nightly.key -O - | apt-key add -

License

AlternC code and translation are distributed under the GPL v2 or later license. See COPYING.

Note : AlternC's translations (po files) until 31 January 2024 was distributed under the Creative Commons CC0 license.

Don't participate to the code or translation if you don't agree to publish any contribution under that license.

alternc's People

Contributors

albancrommer avatar asso-infini avatar baldurmen avatar camlafit avatar drousseau avatar fser avatar fufroma avatar fulax avatar grinours avatar guillaumefromage avatar innoticfr avatar jluc avatar kent1d avatar kienanstewart avatar lelutin avatar mazamazine avatar pilou- avatar quenenni avatar santiagomr avatar sebas891 avatar skhaen avatar soul9 avatar squidly avatar thifranc avatar tuxayo avatar vincib avatar welmoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alternc's Issues

[crash] upgrade alternc 1 to 3.1.8 or 3.1.8 to 3.2.8

I want to update an alternc from v1 to v3.1.8 on a debian squeeze :

Paramétrage de alternc (3.1.8) ...
quota: Mountpoint (or device) / not found or has no quota enabled.
quota: Les points de montage spécifiés n'utilisent pas tous les quotas.
dpkg-statoverride: Une dérogation pour « /var/spool/postfix/var/run/saslauthd » existe déjà, Abandon.
vmail:x:1998:
vmail:x:1998:1998::/var/alternc/mail:/bin/sh
Updating /etc/alternc/local.sh
Granting users...
Trying debian.cnf: ok!
Updating mysql configuration in /etc/alternc/my.cnf
Updating mysql configuration in /etc/alternc/my_mail.cnf
Checking for MySQL connectivity
MYSQL.SH OK!
installing AlternC schema in alternc...

ERROR 1050 (42S01) at line 388: Table 'variable' already exists
cannot load database schema
ERROR 1142 (42000) at line 1: GRANT command denied to user 'sysusr'@'localhost' for table 'dovecot_view'

dpkg : erreur de traitement de alternc (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
configured to not write apport reports
                                      Des erreurs ont été rencontrées pendant l'exécution :
 alternc
E: Sub-process /usr/bin/dpkg returned an error code (1)

The problem appears in the /usr/share/alternc/install/mysql.sh file:

$mysql <<EOF
$grant_mail
EOF    

if i delete this, it's run smoothly

[jessie] configuration apache2 ssl

Petit problème de configuration pour le ssl:

janv. 25 13:36:02 alternc apache2[21857]: Output of config test was:
janv. 25 13:36:02 alternc apache2[21857]: AH00526: Syntax error on line 2 of /etc/apache2/conf-enabled/alternc-ssl.conf:
janv. 25 13:36:02 alternc apache2[21857]: Invalid command 'SSLHonorCipherOrder', perhaps misspelled or defined by a module n

alternc.install -- add just a "/"

Hi,

Can you just add a "/" to the result for the script alternc.install:

before:

The following configuration files has changed since last AlternC
installation :
    etc/postfix/master.cf

after:

The following configuration files has changed since last AlternC
installation :
    /etc/postfix/master.cf

Thx

BDD non accessible

Suite à la création d'une bdd et d'un utilisateur, la bdd n'est pas accessible ( par exemple via la commande mysql -u USER -p).

Le problème se situe dans le champ Host de la table User (base de données mysql) qui a comme valeur % et non localhost.

Correction possible :

mysql> update user set Host="localhost" where User="USER";

Le véritable problème provient sans doute de la table db de la base alternc, et plus précisément de client :

mysql> select * from db;

| id | name    | host      | login  | password   | client |
+----+---------+-----------+--------+------------+--------+
|  1 | Default | 127.0.0.1 | sysusr | xxxxxxx | %      |
+----+---------+-----------+--------+------------+--------+

debian wheezy
alternc 3.2.8
alternc-api 3.2.8
ialternc-roundcube 3.2.8
ialternc-ssl 3.2.8

[alternc 3.2.8] wrong color for notification (red -> need green)

if you change the permissions for a SQL user, the notification "La droits ont été appliqués avec succès à l'utilisateur" is in red with a sign like an interdiction.

Debian Wheezy
alternc 3.2.8
alternc-api 3.2.8
alternc-awstats 3.2.8
alternc-mailman 3.2
alternc-php52 3.2
alternc-roundcube 3.2.8
alternc-ssl 3.2.8

alternc-changepass 1.0
alternc-php44 1.1

Erreur ajout domaine en eu

Lors de l'ajout d'un .eu Alternc retourne :
Notice: Undefined variable: tmp in /usr/share/alternc/panel/class/m_dom.php on line 1002

[jessie] configuration apache

Après une installation clean sur une debian fraichement installée:

janv. 25 13:21:02 alternc apache2[21238]: Starting web server: apache2 failed!
janv. 25 13:21:02 alternc apache2[21238]: The apache2 configtest failed. ... (warning).
janv. 25 13:21:02 alternc apache2[21238]: Output of config test was:
janv. 25 13:21:02 alternc apache2[21238]: AH00526: Syntax error on line 45 of /etc/apache2/conf-enabled/alternc.conf:
janv. 25 13:21:02 alternc apache2[21238]: Either all Options must start with + or -, or no Option may.
janv. 25 13:21:02 alternc apache2[21238]: Action 'configtest' failed.
janv. 25 13:21:02 alternc apache2[21238]: The Apache error log may have more information.
janv. 25 13:21:02 alternc systemd[1]: apache2.service: control process exited, code=exited status=1
janv. 25 13:21:02 alternc systemd[1]: Failed to start LSB: Apache2 web server.

Environment target

Hi guys,

Just forked today to help you a bit but i need some enlightenments :

  • What is the php target version ? (mostly about OOP php features)
  • What about implementing php PSR rules (http://www.php-fig.org/psr/) ?

Cheers ;)

si domaine en "noerase"

mettre message d'avertissement dans les onglets non affichés pour prévenir que seul l'administrateur peut le déverouiller à partir du panneau d'administrateur > liste des domaines installés

Mail Cleanup interface

pop/imap email hosted by AlternC now have a "last login" date field.

We should have an interface to

  • tell the account admin or the email owners that their email will be destroyed
  • purge those old emails (and/or replace them by autoresponder)

underscore dans un NdD

AlternC autorise la création de nom de domaine comme redmine_test.exemple.org que bind ne prend pas en compte (car non valide) mais sans message d'erreur du panel.

[install jessie] messages non traduits au cours de l'installation

Au cours de l'installation, des message ne semblent pas traduits concernant:

  • La machine ne porte pas une adresse IP publique
  • L'utilisation d'un serveur mysql sur une autre machine
  • Le chemin vers les fichiers html des utilisateurs
  • Le chemin vers les boites mails des utilisateurs
  • Le chemin vers les logs
  • Serveur MySQL détecté sur la machine

avelsieve pas dans les dépôts

Lors de l'installation d'alternc-squirrelmail :

alternc-squirrelmail : Dépend: avelsieve mais il n'est pas installable

parce qu'il n'est plus présent dans les dépôts de wheezy

Création d'un nouveau domaine

Lors de l'ajout d'un nouveau domaine sur un compte, l'option "Yes, redirect this new domain to this one:" ne permet pas de choisir un autre domaine du même compte.

problème de droit de la conf alternc-roundcube

depuis plusieurs mises à jour, à chaque fois, les droits des fichiers de /etc/roundcube/ sautent (ou apache n'a pas accès à ces fichiers). Il s'agit de debian-db.php et main.inc.php:

-rw-r--r--  1 alternc-roundcube root      1116 févr.  4  2012 apache.conf
-rw-r--r--  1 alternc-roundcube root      2578 avril 28  2012 db.inc.php
-r--rw----  1 www-data          root       542 oct.  29  2013 debian-db.php
-rw-r--r--  1 alternc-roundcube root      1303 avril 28  2012 htaccess
-rw-r--r--  1 alternc-roundcube root       567 févr.  4  2012 lighttpd.conf
-r--rw----  1 www-data          root     33588 janv. 20 09:27 main.inc.php
-rw-r-----  1 alternc-roundcube www-data 33450 oct.  29  2013 main.inc.php.ucf-dist
-rw-r--r--  1 alternc-roundcube root      2450 janv. 17  2012 mimetypes.php
drwxr-xr-x 11 alternc-roundcube root      4096 janv. 25  2013 plugins

Il faut à chaque fois les repasser en owner alternc-roundcube.

Impossible de supprimer un domaine et un compte

En tentant de supprimer un domaine, rien ne se passait et aucun message d'erreur, juste redirigé sur une page classique (menu à gauche), mais page vide.

Du coup, j'ai essayé de supprimer le compte, et là, j'ai obtenu une page blanche.
Rien dans les logs du bureau, j'ai trouvé ça dans les logs php:

Oct 21 20:34:55 barbot apache2: PHP Notice:  Undefined variable: db in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:34:55 barbot apache2: PHP Fatal error:  Call to a member function query() on a non-object in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:35:15 barbot apache2: PHP Notice:  Undefined variable: db in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:35:15 barbot apache2: PHP Fatal error:  Call to a member function query() on a non-object in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:35:51 barbot apache2: PHP Notice:  Undefined variable: db in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:35:51 barbot apache2: PHP Fatal error:  Call to a member function query() on a non-object in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:35:56 barbot apache2: PHP Notice:  Undefined variable: db in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:35:56 barbot apache2: PHP Fatal error:  Call to a member function query() on a non-object in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:37:15 barbot apache2: PHP Notice:  Undefined variable: db in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:37:15 barbot apache2: PHP Fatal error:  Call to a member function query() on a non-object in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:39:09 barbot apache2: PHP Notice:  Undefined variable: db in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:39:09 barbot apache2: PHP Fatal error:  Call to a member function query() on a non-object in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:39:19 barbot apache2: PHP Notice:  Undefined variable: db in /usr/share/alternc/panel/class/m_mail.php on line 454
Oct 21 20:39:19 barbot apache2: PHP Fatal error:  Call to a member function query() on a non-object in /usr/share/alternc/panel/class/m_mail.php on line 454

[install jessie] alternc.install alternc.ini pour php

alternc.install essaye de déposer un lien dans /etc/$php/conf.d/ qui n'existe pas :
ln -fs /etc/alternc/alternc.ini /etc/$php/conf.d/alternc.ini

On pourrait déposer le lien plutôt dans les dossiers suivants :

  • /etc/$php/apache2/conf.d
  • /etc/$php/cli/conf.d

[dovecot] fichier 96_ssl.conf

Suite à la mise à jour, le fichier 96_ssl.conf dans lequel j'avais des conf perso a disparu, il est revenu dans la forme d'origine proposée par alternc, alors qu'il n'y a pas de template dans /etc/alternc/templates.

Problème de droits suite à décompression

J’ai uploadé avec FileZilla une archive tar.gz (un owncloud), l'ai dé-taré sur mon compte avec la commande "extraire" de l'interface AlternC, et lorsqu’il s’est agi de modifier un de ces fichiers via l’éditeur de texte d’AlternC, il m’a été opposé un refus (bandeau rouge « droits d’accès insuffisants »).

mailman ne fonctionne pas totalement à l'installation

Mailman ne fonctionne pas totalement lors de l'installation, certaines URLs sont sous la forme "local.domain" dû au proxy se trouvant dans le vhost apache2 (ce patch sert à contourner les owners (www-data / lists / 200* d'alternc)

Voir avec Benjamin pour le patch

Utilisateur ou mot de passe incorrect suite à nouvelle installation

Bonjour, j'ai suivi le lien de la documentation du site Alternc avec les consignes suivantes à suivre pour l'installation :

Clone this repository ex:

git clone https://www.github.com/AlternC/easy-install.git

cd easy-install

./install.sh

Follow questions and wait for install to occur

Profit!

Après accès à l'interface nouvellement créée, le test le couple Login/password d'usine (Admin/Admin) et ça me dit "Utilisateur ou mot de passe incorrect "

plusieurs installations sur plusieurs serveurs différents et toujours pareil.

Une solution ?

merci d'avance.

Account Migration

We need a tool to be able to migrate an account from an AlternC to another one, including mysql db, mails, sieve rules, etc.

to be added to alternc-tools : https://github.com/AlternC/alternc-tools

(Raw notes from Octopuce:
Faire un migrate_account
même process que migrate_mails : Export --- ssh ---> (Export) -> (Rsync)n
Exporte tout sauf mail (> migrate_mailboxes) et mailman (rien pour le moment)
Exporte les objets Login, Mysql, FTP, AWstats, Domaines, Quotas, Dossiers protégés, Cron
Rsync pour : www, mysql.dump, awstats, logs, certificats)

opendkim ne recharge pas après la suppression d'un domaine

Sep 25 09:30:02 esteve postfix/qmgr[11223]: 660FC4554007: from=<[email protected]>, size=2155193, nrcpt=1 (queue active)
Sep 25 09:30:04 esteve postfix/cleanup[29198]: 3DC2E6578111: message-id=<[email protected]>
Sep 25 09:30:04 esteve opendkim[12499]: can't load key from /etc/opendkim/keys/exemple.com/alternc.private: No such file or directory
Sep 25 09:30:04 esteve opendkim[12499]: 3DC2E6578111: error loading key 'alternc._domainkey.exemple.com'
Sep 25 09:30:04 esteve postfix/cleanup[29198]: 3DC2E6578111: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<localhost>
Sep 25 09:30:04 esteve amavis[29238]: (29238-04) (!)FWD from <[email protected]> -> <[email protected]>,BODY=7BIT 451 4.7.1 from MTA(smtp:[127.0.0.1]:10025): 451 4.7.1 Service unavailable - try again later
Sep 25 09:30:04 esteve amavis[29238]: (29238-04) Blocked MTA-BLOCKED {TempFailedInbound}, [213.186.33.56] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 61mgfnXPFrX6, Hits: -1.215, size: 2155159, 2133 ms
Sep 25 09:45:02 esteve postfix/qmgr[11223]: 9C47B657812D: from=<[email protected]>, size=2155269, nrcpt=1 (queue active)
Sep 25 09:45:04 esteve postfix/cleanup[29198]: 6F3C14554018: message-id=<[email protected]>
Sep 25 09:45:04 esteve opendkim[12499]: can't load key from /etc/opendkim/keys/exemple.com/alternc.private: No such file or directory
Sep 25 09:45:04 esteve opendkim[12499]: 6F3C14554018: error loading key 'alternc._domainkey.exemple.com'
Sep 25 09:45:04 esteve postfix/cleanup[29198]: 6F3C14554018: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<localhost>

doublons dans default_subdomains

Domi a créé un ticket concernant un probleme de doublons dans
default_subdomains : http://alternc.org/ticket/1662

et commis 2 patchs qui le corrigent dans la branche stable-3.1 :
(en 2 fois, comme ça l'un peut etre défait si besoin sans impacter
l'autre)

http://git.alternc.org/projects/alternc.git/commits/7c0e7c9
http://git.alternc.org/projects/alternc.git/commits/b379d2c

Le premier, ca ajoute juste le UNIQUE KEY manquant quand on fait une
install fraiche

Pour le deuxieme, par contre, je sais pas exactement dans quels cas cela
se produit vraiment.
A priori, alternc.install ne devrait jouer que les scripts nécessaires,
mais dans ce cas je n'aurai jamais du rencontrer de doublon.
Or, j'ai au moins 2 installations où ça s'est produit...

[File browser] fichiers tar.gz mal gérés

Lorsque l'on importe un fichier avec l'extension « .tar.gz » et qu'on clique sur le lien « extract » du file browser, le process apache traitant cette requête se bloque. En regardant sur le serveur on constate que le processus apache est en attente de la commande « sh tar -xvf '.../a.tar.gz' ».

[alternc 2.3.9] bug lors de l'ajout d'un cname

Si on rajoute un cname selon l'exemple suivant :

sub.exemple.com CNAME cible.com

SANS le "." à la fin de cible.com, la page plante après validation (donne une page vide), sans message d'erreur ni d'information, et sans ajouter le CNAME.

fixperms mails

sur le même modèle que /usr/lib/alternc/fixperms.sh pour (re)mettre les bons UID/GID sur les mails (/var/mail/alternc ou /var/alternc/mail).

Options à avoir :

  • -l string : a specific login to fix
  • -u integer : a specific uid to fix
  • -d string : a specific subdirectory to fix according to a given uid

/usr/lib/alternc/delete_logs.sh -- Permission non accordée

Je retrouve ce message d'erreur envoyé par mail pour plusieurs serveurs en AlternC 3.2.10, le script en cause est /usr/lib/alternc/delete_logs.sh :

find: impossible de supprimer "/var/log/alternc/sites/": Permission non accordée

Les dossiers sont en alterncpanel:adm (640) et les fichiers sont en alterncpanel:alterncpanel (644).

modification quota email

Il faudrait que le navigateur ne remplisse pas le premier champ du mot de passe quand on modifie le quota d'une boite mail.

[install jessie] erreur quota

Je fais quelques bug report pour l'adaptation à jessie:

À l'install sur jessie, il y a une erreur avec l'appel à quota

/var/lib/dpkg/info/alternc.config: ligne 281: quota : commande introuvable

Création d'adresse mail non fonctionnelle

Il est possible dans le panel d'AlternC de créer une adresse mail qui ne soit ni un compte pop/imap, ni un alias.
Au final, l'adresse mail est vu par AlternC comme créée mais n'est pas fonctionnelle (sans message d'erreur ou d'information pour l'utilisateur).

Unable to logout when logging in to the panel using /main.php?http_auth=1

  1. Updated /usr/share/alternc/panel/admin/index.php and included the following:
  2. User is able to login with the pop-up form generated by Apache. Username and password is derived from the AlternC members database
  3. After clicking on logout at the AlternC panel and immediately refreshing the browser, the session is still valid which means that user is still logged in

[alternc] /usr/lib/alternc/slave_dns

Même message d'erreur par mail venant de plusieurs serveurs :

/usr/lib/alternc/slave_dns: ligne31: invoke-rc.d : commande introuvable

Il faut donc rajouter ceci au début du script :

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

forcer le ssl pour l'accès à l'admin

Je crois que c'était le cas avant, mais aujourd'hui je trouve pas,
il y avait une option de conf pour forcer le ssl sur le panel alternc, ce serait bien de la remettre et/ou la documenter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.