+ Responder ao Tópico



  1. #1

    Padrão erro no include_path no postfixadmin

    to a dias trancado, ja pesquisei por tudo e nao consigo resolve isso
    eu acesso o http://127.0.0.1/postfixadmin e a tela fica branca dai vo no /var/log/httpd/error_log e da essa msg:

    [Fri Jul 18 13:39:25 2008] [error] [client 127.0.0.1] PHP Fatal error: Unknown: Failed opening required '/var/www/html/postfixadmin/index.php' (include_path='.:/usr/lib/php/:/usr/share/pear/') in Unknown on line 0


    alguem poderia me ajudar?
    =//

  2. #2

    Padrão

    Como é que estão as permissões do diretório /var/www/html e do /var/www/html/postfixadmin?

    Como estão as permissões dos arquivos dentro do diretório do postfixadmin?

    é só colocar um ls -la desses diretórios aqui.

  3. #3

    Padrão

    [root@localhost php]# ls -la /var/www/
    total 40
    drwxr-xr-x 9 apache apache 4096 2008-07-10 16:43 ./
    drwxr-xr-x 19 root root 4096 2008-05-27 10:26 ../
    drwxr-xr-x 2 root root 4096 2008-07-04 10:19 cgi-bin/
    drwxr-xr-x 3 root root 4096 2008-05-27 10:39 error/
    drwxr-xr-x 5 root root 4096 2008-07-09 13:59 html/
    drwxr-xr-x 3 root root 4096 2008-05-27 11:50 icons/
    drwxr-xr-x 2 root root 4096 2008-05-27 10:54 perl/
    drwxr-xr-x 9 root root 4096 2008-07-08 09:55 phpmyadmin/
    -rwxrwxrwx 1 root root 30 2008-07-08 17:44 teste.php*
    drwxrwxrwx 13 apache apache 4096 2008-07-09 15:15 webmail/

    [root@localhost php]# ls -la /var/www/html/
    total 32
    drwxr-xr-x 5 root root 4096 2008-07-09 13:59 ./
    drwxr-xr-x 9 apache apache 4096 2008-07-10 16:43 ../
    drwxr-xr-x 2 root root 4096 2008-05-27 09:52 addon-modules/
    -rw-r--r-- 1 root root 3638 2007-09-07 17:47 favicon.ico
    -rw-r--r-- 1 root root 44 2007-09-07 17:47 index.html
    drwxrwxr-x 12 postfixadmin postfix 4096 2008-07-18 14:10 postfixadmin/
    -rw-r--r-- 1 root root 513 2007-09-07 17:47 robots.txt
    drwxr-xr-x 12 root root 4096 2008-07-08 11:47 squirrelmail/




    obrigado pela ajuda!!

  4. #4

    Padrão

    err... faltou o ls -la /var/www/html/postfixadmin/

  5. #5

    Padrão

    foi mal hehe

    [root@localhost php]# ls -la /var/www/html/postfixadmin/
    total 388
    drwxrwxr-x 12 postfixadmin postfix 4096 2008-07-18 14:10 ./
    drwxr-xr-x 5 root root 4096 2008-07-09 13:59 ../
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-04-29 11:52 ADDITIONS/
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-07-10 11:23 admin/
    -rw-r----- 1 postfixadmin postfix 3853 2007-12-30 17:14 backup.php
    -rw-r----- 1 postfixadmin postfix 2816 2007-12-13 21:22 broadcast-message.php
    -rw-rw-r-- 1 postfixadmin postfix 12943 2008-04-26 17:53 CHANGELOG.TXT
    -rw-r----- 1 postfixadmin postfix 2039 2008-04-25 17:35 common.php
    -rw-r----- 1 postfixadmin postfix 13489 2008-07-10 15:58 config.inc.php
    -rw-r----- 1 postfixadmin postfix 1913 2007-12-02 11:59 create-admin.php
    -rw-r----- 1 postfixadmin postfix 4494 2007-12-02 11:59 create-alias.php
    -rw-r----- 1 postfixadmin postfix 4113 2007-12-28 19:27 create-domain.php
    -rw-r----- 1 postfixadmin postfix 10012 2007-12-02 11:59 create-mailbox.php
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-04-29 11:52 css/
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-04-29 11:52 debian/
    -rw-r----- 1 postfixadmin postfix 4959 2007-12-02 11:59 delete.php
    drwxrwxr-x 3 postfixadmin postfix 4096 2008-07-10 13:27 DOCUMENTS/
    -rw-r----- 1 postfixadmin postfix 1460 2007-12-02 11:59 edit-active-admin.php
    -rw-r----- 1 postfixadmin postfix 1421 2007-12-02 11:59 edit-active-domain.php
    -rw-r----- 1 postfixadmin postfix 2864 2007-12-02 11:59 edit-active.php
    -rw-r----- 1 postfixadmin postfix 4834 2007-12-02 11:59 edit-admin.php
    -rw-r----- 1 postfixadmin postfix 3770 2007-12-02 14:53 edit-alias.php
    -rw-r----- 1 postfixadmin postfix 3085 2007-12-02 11:59 edit-domain.php
    -rw-r----- 1 postfixadmin postfix 4989 2008-02-28 08:58 edit-mailbox.php
    -rw-r----- 1 postfixadmin postfix 6570 2008-02-26 17:27 edit-vacation.php
    -rw-r----- 1 postfixadmin postfix 8345 2008-04-26 18:55 fetchmail.php
    -rw-r----- 1 postfixadmin postfix 57074 2008-04-29 11:39 functions.inc.php
    -rw-rw-r-- 1 postfixadmin postfix 15148 2007-11-11 21:36 GPL-LICENSE.TXT
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-04-29 11:52 images/
    -rw-r----- 1 postfixadmin postfix 3272 2008-07-18 11:01 index.php
    -rw-rw-r-- 1 postfixadmin postfix 3981 2008-04-10 07:18 INSTALL.TXT
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-04-29 11:52 languages/
    -rw-rw-r-- 1 postfixadmin postfix 1569 2008-04-26 17:54 LICENSE.TXT
    -rw-r----- 1 postfixadmin postfix 1006 2007-12-02 11:59 list-admin.php
    -rw-r----- 1 postfixadmin postfix 1920 2007-12-02 11:59 list-domain.php
    -rw-r----- 1 postfixadmin postfix 5529 2008-01-03 19:50 list-virtual.php
    -rw-r----- 1 postfixadmin postfix 658 2007-11-11 21:36 logout.php
    -rw-r----- 1 postfixadmin postfix 805 2007-12-02 11:59 main.php
    -rw-rw-r-- 1 postfixadmin postfix 264 2007-11-11 21:36 motd.txt
    -rw-rw-r-- 1 postfixadmin postfix 264 2007-11-11 21:36 motd-users.txt
    -rw-r----- 1 postfixadmin postfix 2706 2007-12-02 11:59 password.php
    -rw-r--r-- 1 postfixadmin postfix 2178 2008-07-09 15:08 postfixadmin.db
    -rw-r----- 1 postfixadmin postfix 4166 2007-12-06 19:40 search.php
    -rw-r----- 1 postfixadmin postfix 2037 2007-12-02 11:59 sendmail.php
    -rw-r--r-- 1 postfixadmin postfix 9986 2008-07-10 08:49 setup.php.disable
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-04-29 11:52 templates/
    -rw-r----- 1 postfixadmin postfix 36875 2008-04-26 18:56 upgrade.php
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-07-10 11:21 users/
    -rw-r----- 1 postfixadmin postfix 2353 2007-11-11 21:36 variables.inc.php
    -rw-r----- 1 postfixadmin postfix 2214 2007-12-02 11:59 viewlog.php
    drwxrwxr-x 2 postfixadmin postfix 4096 2008-07-10 09:43 VIRTUAL_VACATION/

  6. #6

    Padrão

    Achei seu problema!

    O apache não está conseguindo ler os arquivos da página do postfixadmin. Você tem duas opções:

    1) trocar as permissões de todos os arquivos do diretório para que qualquer um possa ler os arquivos:

    Código :
        find /var/www/html/postfixadmin/ -type f -exec chmod 644 {} \;

    2) A outra opção é trocar o grupo de postfix para o grupo do apache, assim ele também vai conseguir ler os arquivos.

  7. #7