How shall I open the php file?

Discussion in 'Installation/Configuration' started by Turgut Kalfaoglu, Dec 13, 2024.

  1. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    I migrated 1 domain so far, a php site from my PLESK obsidian to ISPConfig3 server running Centos 9.
    I think it went OK, apart from some encryption warnings that I sent feedback on.
    But when I visit the web site, my browser is asking me what should it do with an application/x-httpd/php file?
    I wanted to know the correct way to fix this issue. the system runs PHP 8.1.31 by default but I installed a bunch more - and did not configure ISPConfig for the other ones yet. so it's running it as default PHP and it's configured to be php-fpm.
    Any ideas how to fix this?
    PS: It must be something specific to this site because the ispconfig admin pages are working fine. Hmm, I wonder if that's a different web server, since it's running at another port.
    thanks, -turgut
     
    Last edited: Dec 13, 2024
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    So you did not use the auto-installer to install your server? As it configures PHP versions correctly.

    Try adding a new site in ISPConfig with PHP enabled, place a info.php file in the web folder of that new site and open it in a browser. Does this work? if yes, then there must be something with the migrated site. if no, then there is an issue with your ISPConfig installation in general.

    Its's the same web server. But every site in ISPConfig runs under a different user for security reasons and also the php mode can differ. So you can not draw many conclusions for websites from the fact that the UI is working.
     
  3. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    It cleared itself magically. No idea, I did change some file owners, they were set to nobody:nobody, I set them to web1:client2. The .htaccess was unreadable, etc. Maybe those fixed it.
     
  4. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    Yes I did use the auto installer, but it did not add more PHP versions apart from the one that came with the machine. This is Centos 9, maybe that's why?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no auto-installer for CentOS 9. The ISPConfig auto-installer supports Debian and Ubuntu, and ISPConfig does not support CentOS 9. This does not mean it might not work nontheless, but we have not tested it.
     
    ahrasis and Turgut Kalfaoglu like this.

Share This Page