after install of ISPConfig PHP4 seems to be disabled

Discussion in 'General' started by --::wizZzard::--, Jan 4, 2006.

  1. --::wizZzard::--

    --::wizZzard::-- New Member

    Today i've just successfully installed ISPConfig on my first Linux Server. But after the install php4 seems to be disabled.

    ISPConfig Setup commentet out the Lines in /etc/mime.types

    #application/x-httpd-php phtml pht php
    #application/x-httpd-php-source phps
    #application/x-httpd-php3 php3
    #application/x-httpd-php3-preprocessed php3p
    #application/x-httpd-php4 php4

    why this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig commented them out and re enables them on a per website basis.

    Create a new website, check the .php checkbox for this site and you will see that php is enabled for this vhost.
     
  3. falko

    falko Super Moderator ISPConfig Developer

  4. --::wizZzard::--

    --::wizZzard::-- New Member

    (seem you are from germany, me too :) )

    hmm...

    i created a new website enabled the checkbox "PHP Skripte" and the i put a php file ( only with phpinfo() ) in the "web" directory of this account.

    there was no php interpretation :(
     
  5. falko

    falko Super Moderator ISPConfig Developer

  6. --::wizZzard::--

    --::wizZzard::-- New Member

  7. till

    till Super Moderator Staff Member ISPConfig Developer

  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please have a look at the Vhost_ispconfig.conf, it is located in /etc/apache/vhosts/ or /etc/apache2/vhosts/. Is PHP enabled inside the vhost configuration that ISPConfig has written?
     
  9. --::wizZzard::--

    --::wizZzard::-- New Member

  10. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig only supports name based vhsosts, not IP-Based vhosts, so the page URL you posted above cant be from an ISPConfig vhost.
     
  11. --::wizZzard::--

    --::wizZzard::-- New Member

    hmm...

    i have the domain (www.wizzzard.de) these is for now hostet by another provider. With this Domain i want to move to my dedicated server which is on 85.31.186.56. (the reason why i chosen an dedicated server is because i have several other domains which will move soon :) , only when i understand this whole thing)

    another way to reach the domain is by http://85-31-186-56.blue.kundencontroller.de/www.wizzzard.de/web/
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    With these type of URL you will never see a page hosted in an apache name based vhost.

    To test your domain on the server:

    1) search the windows hosts file, its normally in c:\windows\hosts

    add a line like this:

    Code:
    85.31.186.56	www.wizzzard.de
    Then call http://www.wizzard.de in your browser and you will see the site on your new server tthat is served by the correct apache vhost.

    Dont vorget to remove the line later!
     
  13. --::wizZzard::--

    --::wizZzard::-- New Member

    Thanks! This works really fantastic! You are a great help!

    Only to get a little bit better understanding of that

    with this alterd "hosts" file my computer sends the request for the webpage (www.wizzzard.de) to my server (85.31.186.56) instead to some DNS Server? right?

    But what are my steps to get the site from kontent ( <-- this is the provider where it is now) to my server ? <-- with this i don't mean the copying of the files, i mean the DNS resolving or whatever :) but i think you understand me
     
  14. falko

    falko Super Moderator ISPConfig Developer

    The hosts file tells your computer directly that www.wizzzard.de is on 85.31.186.56 so it does not have to perform a DNS lookup.

    You have to change www.wizzzard.de's A record (and probably also the one of wizzzard.de) so that it points to 85.31.186.56.
     
  15. --::wizZzard::--

    --::wizZzard::-- New Member

    Can I do this? Or must this be done by an ISP (e.g. the Provider of my dedicated server)?
     
  16. falko

    falko Super Moderator ISPConfig Developer

    Code:
    :~# dig ns wizzzard.de
    
    ; <<>> DiG 9.2.1 <<>> ns wizzzard.de
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23272
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;wizzzard.de.                   IN      NS
    
    ;; ANSWER SECTION:
    wizzzard.de.            86387   IN      NS      NS1.KONTENT.de.
    wizzzard.de.            86387   IN      NS      NS2.KONTENT.de.
    
    ;; ADDITIONAL SECTION:
    NS1.KONTENT.de.         37      IN      A       81.88.32.25
    NS2.KONTENT.de.         288     IN      A       81.88.34.25
    
    ;; Query time: 3 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Wed Jan  4 22:01:04 2006
    ;; MSG SIZE  rcvd: 105
    
    The name servers for wizzzard.de are ns1.kontent.de and ns2.kontent.de. That's where the DNS record must be changed (by whomever is responsible for these servers).
     

Share This Page