How to use Apache Mod-PHP?

Discussion in 'Installation/Configuration' started by kadikey-developer, Jan 28, 2025.

  1. When I create new website and try to select Mod-PHP it turns to PHP-FPM automatically? How to use Nginx + Apache mod_php to use .htaccess?
    upload_2025-1-28_17-27-43.png
     
    Last edited: Jan 28, 2025
  2. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    is there a specific reason you're trying to use mod-php?
    it's outdated and slow. you'd be much better off switching to php-fpm.

    also, using nginx and apache on the same server isn't officially supported yet.. you'd have to configure that manually.
    using nginx for static content and as a reverse proxy for apache (same server) will be officially supported somewhere around mid-year.
    https://www.ispconfig.org/blog/ispc...icial-almalinux-rocky-linux-support-and-more/
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    mod_php is not required to use .htaccess in Apache. like @nhybgtvfr mentioned, mod_php is not used anymore today; one uses PHP-FPM now as mod_php is incompatible with, e.g., http2. If you want to use .htaccess, install ISPConfig with Apache instead of Nginx.
     
    Last edited: Jan 28, 2025
  4. Is there any documentation for that?
     
  5. Can I reconfigure installed ISPConfig or only delete current and install from the beginning? I need server with .htaccess because CMS 1c-bitrix use it widely and in documentation apache is necessary.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Better reinstall from scratch if you want to exchange the web server.

    I doubt that. A simple search on the web shows plenty of Nginx configs for Bitrix.
     
  7. Yes it can, and now it works, and I can't find problems now. But all preconfigured servers use nginx + apache and in documentation of manual server configuration like Рэд ОС 7.3 there is configuration of Nginx and Apache. I worry that there will be problems in the future. Also, the developers of 1c-bitrix recommend to use front-end and back-end server to use nginx as cache and proxy server and apache as php handler.
     
    Last edited: Jan 29, 2025
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    That's likely just done by the developers not to have to explain to users how to configure Nginx. Many CMS do it that way so they have not to care about Nginx rules and only deliver a .htaccess file for Apache.
     
  9. Wait, I found log file in /var/log/ipsconfig/httpdWait, I found access.log file in of my site /var/log/ipsconfig/httpd and it is updating? How if there isn't Apache working?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Why do you think that Nginx log files are produced by Apache or that Nginx needs Apache to write logs? /var/log/ipsconfig/httpd is the folder for website log files, Apache and Nginx use this folder.
     
  11. Thought so because mostly on other hostings apache writes to httpd and nginx writes to nginx folder, at least as I understand. So I thought here is the same, but now I see I was mistaken.
     

Share This Page