-
Posts
10317 -
Joined
-
Last visited
-
Days Won
43
Everything posted by d00p
-
Froxlor default IP address for a new domain
d00p replied to rhufsky's question in General Discussion
you can always add/edit ip addresses, see https://docs.froxlor.org/latest/admin-guide/resources/ips-and-ports/ -
froxlor hat gar nix mit memcached zu tun ... das kommt jetzt ganz drauf an WIE wordpress das prüft. Eventuell funkt dir hier eine der `disabled_functions` in der php.ini dazwischen
-
nein, Konto anlegen ist ein zweiter Schritt - man kann ja auch Adressen haben, ohne das diese ein Konto sind. Müsstest du einen zweiten API call machen: <?php // include FroxlorAPI helper class require __DIR__ . '/FroxlorAPI.php'; // create object of FroxlorAPI with URL, apikey and apisecret $fapi = new FroxlorAPI('http://127.0.0.1/api.php', 'your-api-key', 'your-api-secret'); // source data (loginname only required if called as admin/reseller) $email_addresses = [ ['email_part' => 'one', 'domain' => 'domain.tld', 'loginname' => 'web1', 'email_password' => 's3cret'], ['email_part' => 'two', 'domain' => 'domain.tld', 'loginname' => 'web1'], ['email_part' => 'three', 'domain' => 'domain.tld', 'loginname' => 'web2'], ['email_part' => 'four', 'domain' => 'domain.tld', 'loginname' => 'web2'], // ... ]; // loop through data foreach ($email_addresses as $email_addr) { // check for account-password $accnt_pwd = $email_addr['email_password'] ?? null; unset($email_addr['email_password']); // send request $fapi->request('Emails.add', $email_addr); // check for error if ($fapi->getLastStatusCode() != 200) { echo "HTTP-STATUS: " . $fapi->getLastStatusCode() . PHP_EOL; echo "Description: " . $response['message'] . PHP_EOL; continue; } // create account if password is set if (!empty($accnt_pwd)) { // send request $fapi->request('EmailAccounts.add', [ 'emailaddr' => $email_addr['email_part'] . '@' . $email_addr['domain'], 'loginname' => $email_addr['loginname'], 'email_password' => $accnt_pwd ]); // check for error if ($fapi->getLastStatusCode() != 200) { echo "HTTP-STATUS: " . $fapi->getLastStatusCode() . PHP_EOL; echo "Description: " . $response['message'] . PHP_EOL; } } }
-
Das Ganze funktioniert auch via CLI (siehe https://docs.froxlor.org/latest/admin-guide/cli-scripts/#api-call) bin/froxlor-cli froxlor:api-call admin Emails.add '{"email_part": "one", "domain": "domain.tld", "loginname": "web1"}'
-
da es keinen email-adressen importer via UI gibt bietet sich die API an ja Ein beispiel wäre: <?php // include FroxlorAPI helper class require __DIR__ . '/FroxlorAPI.php'; // create object of FroxlorAPI with URL, apikey and apisecret $fapi = new FroxlorAPI('http://127.0.0.1/api.php', 'your-api-key', 'your-api-secret'); // source data (loginname only required if called as admin/reseller) $email_addresses = [ ['email_part' => 'one', 'domain' => 'domain.tld', 'loginname' => 'web1'], ['email_part' => 'two', 'domain' => 'domain.tld', 'loginname' => 'web1'], ['email_part' => 'three', 'domain' => 'domain.tld', 'loginname' => 'web2'], ['email_part' => 'four', 'domain' => 'domain.tld', 'loginname' => 'web2'], // ... ]; // loop through data foreach ($email_addresses as $email_addr) { // send request $fapi->request('Emails.add', $email_addr); // check for error if ($fapi->getLastStatusCode() != 200) { echo "HTTP-STATUS: " . $fapi->getLastStatusCode() . PHP_EOL; echo "Description: " . $response['message'] . PHP_EOL; } } See also API documentation: https://docs.froxlor.org/latest/api-guide/commands/emails.html
-
Nix, es ist nur ein hinweis das der eintrag syntaktisch korrigiert wurde, inhaltlich bleibt es das was eingestellt war
-
Steht doch in der Fehlermeldung...."named.service: Unit cannot be reloaded because it is inactive." Normal ist in froxlor als neustart-kommando nach dem erstellen neuer configs ein "reload" hinterlegt - reload funktioniert aber nur wenn der Dienst läuft und auch aktiv ist (systemctl enable named && systemctl start named) - ggfls halt auch das reload-command für nameserver in den einstellungen anpassen
-
Die empfohlenen Standardeinstellungen beinhalten keinen Nameserver... Wie bereits gesagt: Settings -> Nameserver settings -> "Enable Nameserver" und "Enable DNS editor" aktivieren, und entsprechend den gewünschten Kunden bearbeiten und "Enable DNS editor?" auf Ja stellen Taucht selbstverständlich auch nur bei Domains auf, die ein Häkchen bei "Create dns zone for domain" haben, da sie sonst vom Nameserver garnicht verarbeitet werden
-
Das gibt es natürlich wenn auch ein lokaler DNS Server via froxlor betrieben wird, anders macht es wenig Sinn Also: wenn nameserver aktiviert ist (und DNS Editor erlaubt) dann gibt's da auch das Icon.
-
Folgendes Beispiel funktioniert bei mir unter nginx genauso wie unter apache mit php-fpm: <?php function doFlush() { if (!headers_sent()) { // Disable gzip in PHP. ini_set('zlib.output_compression', 0); // Force disable compression in a header. // Required for flush in some cases (Apache + mod_proxy, nginx, php-fpm). header('Content-Encoding: none'); } // Fill-up 4 kB buffer (should be enough in most cases). echo str_pad('', 4 * 1024); // Flush all buffers. do { $flushed = @ob_end_flush(); } while ($flushed); @ob_flush(); flush(); } // In a real app, we have this turned on. ob_start(); $i = 0; while ($i++ < 10) { usleep(500000); // Real output. echo $i . "\n<br>"; doFlush(); }
-
Du brauchst natürlich eine sql config die die user aus der froxlor Datenbank ausliest. Da könntest du in älteren froxlor.versionen (0.9.x) auf GitHub glücken haben und in /lib/configfiles noch was zu finden. Nscd ist in soweit sinnvoll/notwendig damit nicht jedesmal eine sql query.via libnss-mysql ausgeführt wird beim auslesen der User/group Infos. Mir ist.auf die schnelle kein Ersatz bekannt. Wenn die nsswitch.conf entsprechend auf libnss-mysql verweist sollte es aber auch ohne nscd gehen (geht halt auf die Datenbank ohne Ende)
-
Froxlor erstellt nur eine Cronjob Datei, und die liegt standardmäßig unter /etc/cron.d/froxlor Zur Neuerstellung einfach manuell aufrufen: `/var/www/html/froxlor/bin/froxlor-cli froxlor:cron -fd`
-
Verschiedene PHP-Versionen für FPM installieren
d00p replied to Lexi Schaft's question in German / Deutsch
Du installierst php-fpm in der gewünschten Version. Achtung, standardmäßig gibt das Debian/Ubuntu nicht her, du brauchst ein separates Repository dafür, z.B. https://sury.org/ Danach trägst du als Admin unter PHP -> PHP-FPM Versionen manuell die von dir installierten Versionen ein. Froxlor kann das nicht automatisch erkennen. -
0.10.x ist SEHR alt, /latest/ ist schon lange v2.1, da haben sich die links (und auch die logik der docs) durchaus geändert, siehe https://docs.froxlor.org/latest/general/migration-guide/
-
Auf 2.1.6 updaten. Das war ein Bug in der 2.1.5 (die es nur einen Tag lang gab)
-
No nothing user related has been renamed. The local user for php-fpm has nothing to do with any user within froxlor itself Yes User-Login should work without any issues after a update. Never had any issues with that. A deprecated warning will not prevent any logins Also MySQL User Login != Froxlor webui Login. These are completely different things. As said before, mostly this is something related to sessions. Please check Webserver and php-fpm logs.
-
goaccess ist wohl wieder gesprächiger geworden
d00p replied to rseffner's question in German / Deutsch
ist ein bestätigter goaccess bug wohl und ist fürs nächste release gefixed: https://github.com/allinurl/goaccess/issues/1683 -
Verzeichnis Rechte für Panel Pfad-Eingabemethode Auswahlliste
d00p replied to Meth0d's question in German / Deutsch
Die config für froxlor sollte so aussehen, musste evtl schauen ob da deine customizations irgendwo nen strich durch die rechnung machen allow_call_time_pass_reference = Off allow_url_fopen = On asp_tags = Off disable_classes = disable_functions = curl_multi_exec,exec,parse_ini_file,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,system display_errors = Off display_startup_errors = Off enable_dl = Off error_reporting = E_ALL & ~E_NOTICE expose_php = Off file_uploads = On cgi.force_redirect = 1 gpc_order = "GPC" html_errors = Off ignore_repeated_errors = Off ignore_repeated_source = Off include_path = ".:{PEAR_DIR}" log_errors = On log_errors_max_len = 1024 magic_quotes_gpc = Off magic_quotes_runtime = Off magic_quotes_sybase = Off max_execution_time = 60 max_input_time = 60 memory_limit = 16M noutput_buffering = 4096 post_max_size = 16M precision = 14 register_argc_argv = Off register_globals = Off report_memleaks = On sendmail_path = "/usr/sbin/sendmail -t -i -f {CUSTOMER_EMAIL}" session.auto_start = 0 session.bug_compat_42 = 0 session.bug_compat_warn = 1 session.cache_expire = 180 session.cache_limiter = nocache session.cookie_domain = session.cookie_lifetime = 0 session.cookie_path = / session.entropy_file = /dev/urandom session.entropy_length = 16 session.gc_divisor = 1000 session.gc_maxlifetime = 1440 session.gc_probability = 1 session.name = PHPSESSID session.referer_check = session.save_handler = files session.save_path = "{TMP_DIR}" session.serialize_handler = php session.use_cookies = 1 session.use_trans_sid = 0 short_open_tag = On suhosin.mail.protect = 1 suhosin.simulation = Off track_errors = Off upload_max_filesize = 32M upload_tmp_dir = "{TMP_DIR}" variables_order = "GPCS" ;mail.add_x_header = On ;mail.log = "/var/log/phpmail.log" opcache.restrict_api = ""