Jump to content
Froxlor Forum

Max Amigo

Members
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Max Amigo

  1. So, subject says everything. I think it is permissions under which PHP script is running (editor1). Somehow it has not enough right? root@host1 /var/customers/webs/editor1 # ls -Al total 44 drwxr-xr-x 2 editor1 editor1 4096 Oct 14 16:15 mydomain-1.com drwxr-xr-x 2 editor1 editor1 4096 Oct 14 16:15 mydomain-2.com drwxr-xr-x 2 editor1 editor1 4096 Oct 14 16:15 mydomain-3.com -rw-r--r-- 1 editor1 editor1 6422 Aug 20 09:49 index.html root@host1 /var/customers/webs/editor1 # cd ./mydomain-1.com root@host1 /var/customers/webs/editor1/mydomain-1.com # ls -Al total 232 -rw-r--r-- 1 www-data www-data 665 Oct 8 17:08 .htaccess -rw-r--r-- 1 www-data www-data 10918 Oct 8 17:08 index.html.bak -rw-r--r-- 1 www-data www-data 405 Oct 8 17:08 index.php -rw-r--r-- 1 www-data www-data 19915 Oct 8 17:08 license.txt -rw-r--r-- 1 www-data www-data 7346 Oct 8 17:08 readme.html -rw-r--r-- 1 www-data www-data 7165 Oct 8 17:08 wp-activate.php drwxr-xr-x 9 www-data www-data 4096 Oct 8 17:08 wp-admin -rw-r--r-- 1 www-data www-data 351 Oct 8 17:08 wp-blog-header.php -rw-r--r-- 1 www-data www-data 2328 Oct 8 17:08 wp-comments-post.php -rw-r--r-- 1 www-data www-data 3004 Oct 8 17:08 wp-config-sample.php -rw-r--r-- 1 www-data www-data 3207 Oct 8 17:08 wp-config.php drwxr-xr-x 10 www-data www-data 4096 Oct 14 10:01 wp-content -rw-r--r-- 1 www-data www-data 3939 Oct 8 17:08 wp-cron.php drwxr-xr-x 25 www-data www-data 12288 Oct 8 17:08 wp-includes -rw-r--r-- 1 www-data www-data 2496 Oct 8 17:08 wp-links-opml.php -rw-r--r-- 1 www-data www-data 3900 Oct 8 17:08 wp-load.php -rw-r--r-- 1 www-data www-data 45463 Oct 8 17:08 wp-login.php -rw-r--r-- 1 www-data www-data 8509 Oct 8 17:08 wp-mail.php -rw-r--r-- 1 www-data www-data 22297 Oct 8 17:08 wp-settings.php -rw-r--r-- 1 www-data www-data 31693 Oct 8 17:08 wp-signup.php -rw-r--r-- 1 www-data www-data 4747 Oct 8 17:08 wp-trackback.php -rw-r--r-- 1 www-data www-data 3236 Oct 8 17:08 xmlrpc.php Any ideas how to host WordPress a better way? Or how to fix it?
  2. Huray! Customers sites have FPM/FastCGI! But froxlor itself is crashed because it cannot find user to run froxlor ;-) Manually trying to switch froxlor back simple apache mode. --- Fixed. Everything works now :-) Thank you!
  3. Thank you! Do you I need to enable FPM for customers?
  4. PHP-FPM is ok now: # service php7.4-fpm status ● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2021-10-14 19:50:01 CEST; 1min 7s ago Docs: man:php-fpm7.4(8) Process: 221505 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS) Main PID: 221485 (php-fpm7.4) Status: "Processes active: 0, idle: 16, Requests: 0, slow: 0, Traffic: 0req/sec" Tasks: 17 (limit: 76846) Memory: 20.2M CGroup: /system.slice/php7.4-fpm.service ├─221485 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf) ├─221489 php-fpm: pool mydomain12345.com ├─221490 php-fpm: pool mydomain12345.com But in server admin I still see: Server API: Apache 2.0 Handler Any ideas why?
  5. I found it! Should I reconfigure everything?
  6. @d00p I just revalidated libnss-extrausers setup. Everything is done according to the instruction from froxlor. The only thing is /etc/nsswitch.conf file: # Make sure that `passwd`, `group` and `shadow` have extrausers in their lines # You should place extrausers at the end, so that it is queried after the other mechanisams # passwd: files systemd compat extrausers group: files systemd compat extrausers shadow: files compat extrausers gshadow: files hosts: files dns networks: files dns protocols: db files services: db files ethers: db files rpc: db files netmasks: files netgroup: files bootparams: files automount: files aliases: files Is it correct file? Also files in /var/lib/extrausers all have root as owner and they are empty. root@host1 /var/lib/extrausers # ls -Al total 0 -rw-r--r-- 1 root root 0 Oct 14 17:34 group -rw-r--r-- 1 root root 0 Oct 14 17:34 passwd -rw-r--r-- 1 root root 0 Oct 14 17:34 shadow root@host1 /var/lib/extrausers # cat group root@host1 /var/lib/extrausers # cat passwd root@host1 /var/lib/extrausers # cat shadow root@host1 /var/lib/extrausers # Any idea?
  7. I was carefully following the instructions but... Somehow I came to this: # php /var/www/froxlor/scripts/froxlor_master_cronjob.php --force sh: 1: /etc/init.d/bind9: not found [error] Error while running `/etc/init.d/bind9 reload`: exit code (127) - please check your system logs Job for php7.4-fpm.service failed because the control process exited with error code. See "systemctl status php7.4-fpm.service" and "journalctl -xe" for details. sh: 1: nscd: not found sh: 1: nscd: not found Note: bind9 and nscd are missing because I do not use them. I didn't configure it at all. It is not related to PHP FPM. Then: # service php7.4-fpm status ● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2021-10-14 17:46:13 CEST; 9min ago Docs: man:php-fpm7.4(8) Process: 214347 ExecStart=/usr/sbin/php-fpm7.4 --nodaemonize --fpm-config /etc/php/7.4/fpm/php-fpm.conf (code=exited, status=78) Process: 214355 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS) Main PID: 214347 (code=exited, status=78) Oct 14 17:46:13 host1 systemd[1]: Starting The PHP 7.4 FastCGI Process Manager... Oct 14 17:46:13 host1 php-fpm7.4[214347]: [14-Oct-2021 17:46:13] ERROR: [pool mydomain123.com] cannot get uid for user 'editor1' Oct 14 17:46:13 host1 php-fpm7.4[214347]: [14-Oct-2021 17:46:13] ERROR: FPM initialization failed Oct 14 17:46:13 host1 systemd[1]: php7.4-fpm.service: Main process exited, code=exited, status=78/CONFIG Oct 14 17:46:13 host1 systemd[1]: php7.4-fpm.service: Failed with result 'exit-code'. Oct 14 17:46:13 host1 systemd[1]: Failed to start The PHP 7.4 FastCGI Process Manager. In configs that Froxlor gave me I saw nothing about mysql. Maybe I missed something, but I think that PHP-FPM is missing link MySQL: Oct 14 17:46:13 host1 php-fpm7.4[214347]: [14-Oct-2021 17:46:13] ERROR: [pool mydomain123.com] cannot get uid for user 'editor1' Oct 14 17:46:13 host1 php-fpm7.4[214347]: [14-Oct-2021 17:46:13] ERROR: FPM initialization failed -------------------------------- I can try to edit /etc/php/7.4/fpm/pool.d/mysomain123.com.conf and change this section: user = editor1 group = editor1 But it is hacking over froxlor. I believe I mixed something up... Any ideas?
  8. @d00p THANK YOU VERY MUCH!!! I will give it a try tomorrow morning.
  9. Hi guys, I have basic installation of froxlor with Apache2 and php on Ubuntu 20.04 as is. # php --version PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies I want to reconfigure it to Apache2 wit php-fpm for better performance. I came across this doc: https://github.com/Froxlor/Froxlor/wiki/apache2-with-php-fpm it is 5 yers old. I just wanted to know what is a best practice procedure for my task? What is a best way to approach it? Thank you in advance for your time. p.s.: I was thinking about switching to ngnix, but I think it is way too complicated. Or not?
  10. @TheDanniCraft YT If you want to master froxlor, I suggest you to read instruction line by line. I been at your place few days ago - trust me - EVERYTHING you might need is there. Every word in the instruction is GOLD.
  11. No reasonable explanation! No logic! Just want to extra protect my precious froxlor installation! :-) Didn't see such great software for a long while!!! Thank you Sir! It is even better than I could expect!!!!
  12. Hi guys, I just wanted to know if it is possible to change default temple for the domain? I love froxlor, but I don't want to tell everybody about it for security reasons.
  13. @robert de wojdom, please check best answer, so this thread will be marked as answered.
  14. Is there any guide of how to update froxlor right way? Thank you in advance for your help!
  15. Thank you d00p! Now it works! Truly smart software! RESPEK!
  16. Now it works. Here is SQL that fixed permission issues: GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'localhost' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'127.0.0.1'WITH GRANT OPTION; FLUSH PRIVILEGES;
  17. Can I just export all my setting from froxlor and reset whole installation with proper 'root' user for mysql? Can I re-use those setting to setup froxlor faster?
  18. So, I deleted the manually DB 'editor1sql1' and user 'editor1sql1'@'127.0.0.1'. Then I repeated the process again and I have the initial error: A database error occurred SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'dbadmin'@'127.0.0.1' to database 'editor1sql1' Error: SQLSTATE[HY000]: General error: 1007 Can't create database 'editor1sql1'; database exists Is a cascading result of this one. As a side note: I don't know much about mysql, but might it be somehow related to this?? mysql> SELECT User, Host FROM mysql.user; +------------------+-----------------+ | User | Host | +------------------+-----------------+ | dbadmin | 127.0.0.1 | | editor1sql1 | 127.0.0.1 | | froxlor | 127.0.0.1 | <-- IP address | froxlor | XXX.XXX.XXX.XXX | <-- My public IP address? | dbadmin | localhost | <-- DB root | debian-sys-maint | localhost | <-- localhost | froxlor | localhost | | mysql.infoschema | localhost | | mysql.session | localhost | | mysql.sys | localhost | | root | localhost | +------------------+-----------------+ 11 rows in set (0.00 sec) This is how I created my mysql users: CREATE DATABASE froxlor; CREATE USER 'froxlor'@'localhost' IDENTIFIED BY 'pass1'; GRANT ALL PRIVILEGES ON froxlor.* TO 'froxlor'@'localhost'; CREATE USER 'froxlor'@'127.0.0.1' IDENTIFIED BY 'pass1'; GRANT ALL PRIVILEGES ON froxlor.* TO 'froxlor'@'127.0.0.1'; FLUSH PRIVILEGES; CREATE USER 'dbadmin'@'localhost' IDENTIFIED BY 'pass2'; GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'localhost'; CREATE USER 'dbadmin'@'127.0.0.1' IDENTIFIED BY 'pass2'; GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'127.0.0.1'; FLUSH PRIVILEGES;
  19. When I try to create a database as a customer in Froxlor, I always get an error: A database error occurred SQLSTATE[HY000]: General error: 1007 Can't create database 'editor1sql1'; database exists In the database list I see nothing: Databases (0 / 0) Any idea? p.s. Before this error, I saw error that my DB root user doesn't have permissions on 'editor1sql1' table.
  20. How do I enable SSL redirect for Froxlor Virtual Host? >>e.g. a request to http://domain.tld/ will redirect you to https://domain.tld/
  21. Dear d00p! Thank you very much! Everything works as expected! Even FTP! :-)
  22. Do I need to reconfigure services for this?
×
×
  • Create New...