Centos 5.5 php as module

Discussion in 'Installation/Configuration' started by ataru, Mar 9, 2011.

  1. ataru

    ataru Member

  2. falko

    falko Super Moderator ISPConfig Developer

    Does /etc/httpd/conf.d/php.conf exist? What's in it? Should be something like

    Code:
    #
    # PHP is an HTML-embedded scripting language which attempts to make it
    # easy for developers to write dynamically generated webpages.
    #
    <IfModule prefork.c>
      LoadModule php5_module modules/libphp5.so
    </IfModule>
    <IfModule worker.c>
      # Use of the "ZTS" build with worker is experimental, and no shared
      # modules are supported.
      LoadModule php5_module modules/libphp5-zts.so
    </IfModule>
    
    #
    # Cause the PHP interpreter to handle files with a .php extension.
    #
    AddHandler php5-script .php
    AddType text/html .php
    
    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    #
    DirectoryIndex index.php
    
    #
    # Uncomment the following line to allow PHP to pretty-print .phps
    # files as PHP source code:
    #
    #AddType application/x-httpd-php-source .phps
     
  3. ataru

    ataru Member

    it's exactly the same you posted
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Why do you think it is not working? Do you get any errors?
     
  5. ataru

    ataru Member

    it's working, but i'd like to have it as an apache module, while it's working as cgi
     
  6. ataru

    ataru Member

    Ok, i've found it.

    it can be switched from ISPConfig site's panel

    thanks
     

Share This Page