How To Set Up apache2 With mod_fcgid And PHP5 On CentOS 5.2 (With ispConfig 2)?

Discussion in 'HOWTO-Related Questions' started by efree_unix, Apr 16, 2009.

  1. efree_unix

    efree_unix New Member

    Hi, I have read your good tutorial with the topic "How To Set Up apache2 With mod_fcgid And PHP5 On CentOS 5.2."

    I want to install mod_fcgid on my server. but I have installed apache2, PHP5, and ispConfig 2 on centos 5.2 and it ran smoothly. can I follow that tutorial? or there are somethings that I need to do because I use ispConfig maybe?

    I really need your explanation. thank you very much...
     
  2. falko

    falko Super Moderator Howtoforge Staff

    ISPConfig 2 doesn't support mod_fcgid, so you'd have to add the configuration directives for mod_fcgid to the Apache Directives field of each web site in ISPConfig.
     
  3. efree_unix

    efree_unix New Member

    How? Could you give an example?
     
  4. falko

    falko Super Moderator Howtoforge Staff

  5. efree_unix

    efree_unix New Member

    thanks falko. all running smoothly.
    but there is one that makes me confused. if I commented out the "#LoadModule php5_module modules/libphp5.so" in "/etc/httpd/conf.d/php.conf", then when I tried to restart httpd service, the error message would appear like this:
    Starting httpd: Syntax error on line 50 of /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf:
    Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
    [Failed]
    .

    but if I did not comment out "LoadModule php5_module modules/libphp5.so", all running smoothly. Do you know the problem?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    php_admin_flag works only with mod_php.
     

Share This Page