help me with php files and dns server

Discussion in 'Installation/Configuration' started by grofar, Feb 7, 2011.

  1. grofar

    grofar New Member

    Fresh instal ispconfig 3 Version: 3.0.3.2

    i have 3 problems:

    1: dns-server Offline
    [​IMG]

    2: php file dont work ex: index.php install.php
    (Error HTTP 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.)

    3: mail auth dont work

    Pls for any help tnx.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which tutorial did you use to prepare the server for the ispconfig installation?
     
  3. grofar

    grofar New Member

    The Perfect Server - Fedora 14 x86_64 [ISPConfig 3]
     
  4. grofar

    grofar New Member

    And my server is i686 not x86_64 ...
     
  5. grofar

    grofar New Member

    Log eror:

    [Tue Feb 08 16:31:39 2011] [warn] [client 89.35.231.8] mod_fcgid: stderr: PHP Warning: require_once(): open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/includes/defines.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/www.site.com/web:/srv/www/www.site.com

    /web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web1/web/index.php on line 21
    [Tue Feb 08 16:31:39 2011] [warn] [client 89.35.231.8] mod_fcgid: stderr: PHP Warning: require_once(/var/www/clients/client1/web1/web/includes/defines.php): failed to open stream: Operation not permitted in /var/www/clients/client1/web1/web/index.php on line 21
    [Tue Feb 08 16:31:39 2011] [warn] [client 89.35.231.8] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client1/web1/web/includes/defines.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/index.php on line 21
    [Tue Feb 08 16:31:40 2011] [error] [client 89.35.231.8] File does not exist: /var/www/site.com/web/favicon.ico
    [Tue Feb 08 16:31:40 2011] [error] [client 89.35.231.8] File does not exist: /var/www/error/404.html
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Is SELinux disabled?

    Any errors in your mail log?
     
  7. grofar

    grofar New Member

    Selinux is disable -

    Mail Log:

    PHP file still not work ex: index.php install.php
     
    Last edited: Feb 9, 2011
  8. grofar

    grofar New Member

    mail it's working now ... tested i have a message on dovecot:
    i set auth_debug =yes on conf i hope it's start on reboot.

    now how to resolve problem with php files and dns-server ???
     
  9. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?

    Which PHP mode do you use?
     
  10. grofar

    grofar New Member

    netstat -tap:

    i dont know what php mode i use !!! how do i look ?
     
  11. falko

    falko Super Moderator ISPConfig Developer

    You can see it in the web site settings in ISPConfig.

    Your DNS server isn't running. Please try
    Code:
    /etc/init.d/named start
     
  12. grofar

    grofar New Member

    /etc/init.d/named start:

    Tnx for any help falko !!!

    php mode-: fastCGI
     
    Last edited: Feb 10, 2011
  13. falko

    falko Super Moderator ISPConfig Developer

    Please try mod_php.

    Did you create a zone in ISPConfig's DNS Manager? That should create the missing /etc/named.conf.local file. If you don't need ISPConfig's DNS Manager (and therefore didn't create any zone), then you don't need a running BIND.
     
  14. grofar

    grofar New Member

    ok the dns server it's work now .

    is remains only php files i put mod_php restart httpd not work reboot system not work.

    What should i doo?

    [​IMG]
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the exact error message that you get in the error.log of the website.
     
  16. grofar

    grofar New Member

    error.log:

    Server: grofar.eu

    State: ok (0 unknown, 0 info, 0 warning, 0 critical, 0 error)
     
    Last edited: Feb 11, 2011
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Add:

    :/var/www/clients/client1/web1/web

    at the end of the string in the open_basedir field under options in the website settings.
     
  18. grofar

    grofar New Member

    it's work now ...tnx till and falko for help .!
     
  19. grofar

    grofar New Member

    Another thing, I changed from mod_php to FastCGI mode, all functions works perfectly ....

    I had a problem when I restart the server dovect and named not start automatically know what I can do?
     
  20. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    chkconfig --list
    ?
     

Share This Page