PHP support missing?

Discussion in 'Installation/Configuration' started by tijn_tux, Sep 5, 2006.

  1. tijn_tux

    tijn_tux New Member

    Hi all,

    Ive installed ISPconfig, and it worked fine!

    but.. i wanted to install php with pgsql support,

    so i followed the setup on this forum (add --with-php-pgsql) and reinstalled. this one ->

    That went ok, but now, when i go to a site i see the php code (also added index.phtml and normal phtml files to work with isp config a few threads earlier)

    When i rename the index.phtml to index.php i also see the code, when i create a file called test.php and put <? phpinfo(); ?> in it, it Works! so.. i renamed index.php to test.php....and i just saw code again...

    what could be the problem?

    thnx in advance tijn
    Last edited: Sep 5, 2006
  2. jjw

    jjw New Member

    Sorry if you've though of this (I am a noob).

    Have you enabled php in the control panel for that site?
  3. tijn_tux

    tijn_tux New Member


    You dont have to say sry :) it was possible ;)

    thnx anyway
  4. tijn_tux

    tijn_tux New Member

    It still doenst work :( iam trying everything i can find, but no luck :(

    Help plz, server has to go live in a couple of days

    thnx in advance!
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The php you recompiled has nothing to do with your websites, you recompiled the ISPConfig php version for the adminpanel.

    Just install the php pacakges available for your linux distribution. Thats all :) If you dont know how to set this up, have a look at the perfect setup guides mentioned on the ISPconfig documentation page.
  6. tijn_tux

    tijn_tux New Member

    Ah ok, thnx till,

    Next problem is still there, all my sites now dont show php anymore.. after reisntall of ispconfig.

    What does work. i create a new site, take the content of an old one, copy it...and it works!

    so know i have te recreate about 70 sites :S ah well it works.. :D

    Thnx for the help!

  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. ISPConfig manages PHP only on sites that where created by ISPConfig.
  8. tijn_tux

    tijn_tux New Member

    Yes, but the sites WHERE made by ispconfig, i did a reinstall with pgsql for phppgadmin,

    all sites should be working (they are all under sites in ISPconfig)

    But they wont :(
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Sites created by ISPConfig use always the php from your linux distribution. They NEVER use the PHP from ISPConfig (which you recompiled for pgsql). The ISPConfig PHP is only for backend tasks of the controlpanel and not used for hosting sites.

    Just insall mod_php from your linux distribution plus the php-gqsql package and you are done.

    Please have also a look at the perfect setup howtos, the installation is described there.

Share This Page