Jump to content
Froxlor Forum

d00p

Administrators
  • Posts

    10317
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by d00p

  1. you can always add/edit ip addresses, see https://docs.froxlor.org/latest/admin-guide/resources/ips-and-ports/
  2. 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
  3. 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; } } }
  4. 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"}'
  5. 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
  6. Nix, es ist nur ein hinweis das der eintrag syntaktisch korrigiert wurde, inhaltlich bleibt es das was eingestellt war
  7. 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
  8. 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
  9. 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.
  10. https://github.com/Froxlor/Froxlor -> Sponsor this project - da steht was geht
  11. 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(); }
  12. Und nix in der Error Log oder php-fpm log? Ich kanns leider Grad selbst nicht testen, nur unterwegs am Smartphone
  13. Hast du denn sichergestellt das in der genutzten PHP Version und der zugehörigen php-konfiguration der Domain die geforderten settings auch so gesetzt sind (z.b. via phpinfo())
  14. 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)
  15. d00p

    Cronjobs

    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`
  16. 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.
  17. 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/
  18. Please report this as issue via github: https://github.com/Froxlor/Froxlor/issues/new/choose
  19. Auf 2.1.6 updaten. Das war ein Bug in der 2.1.5 (die es nur einen Tag lang gab)
  20. xD okay, glad to hear that I was doubting myself for a second there 😛
  21. 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.
  22. This still exists? It should be libnss-extrausers for years now. Is mentioned in the announcement of 2.0 Regarding login, validate the froxlor local user and the permissions on /car/customers/tmp/froxlor.panel/ - although there should definitely be something in the Webserver errorlog or php-fpm log
  23. ist ein bestätigter goaccess bug wohl und ist fürs nächste release gefixed: https://github.com/allinurl/goaccess/issues/1683
  24. 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 = ""
×
×
  • Create New...