Jump to content

postfixadmin не срабатывают php скрипты

Доброго времени суток! Прошу сильно не пинать ибо почту делаю первый раз. собсно имеется?

freebsd 7.2












почту настривал согласно статье http://www.inattack.ru/article/447.html

php mysql i apache курил сам и дажеработает:

tail -f /var/log/httpd-error.log

[Tue Dec 08 01:34:05 2009] [notice] caught SIGTERM, shutting down

[Tue Dec 08 01:34:08 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]

[Tue Dec 08 01:34:09 2009] [notice] Digest: generating secret for digest authentication ...

[Tue Dec 08 01:34:09 2009] [notice] Digest: done

[Tue Dec 08 01:34:09 2009] [notice] Apache/2.2.11 (FreeBSD) mod_ssl/2.2.11 OpenSSL/0.9.8e DAV/2 PHP/5.2.11 mod_perl/2.0.4 Perl/v5.8.9 configured -- resuming normal operations


в httpd.conf в самый конец добавил

Alias /postfix-admin/ "/usr/local/www/postfixadmin/"

<Directory "/usr/local/www/postfixadmin">

Options Indexes

AllowOverride Authconfig

Order deny,allow

Allow from all





Внимание вопрос: при попытке зайти на страницу вижу


Not Found


The requested URL /postfixadmin/ was not found on this server.


при попытке зайти на вижу


* Postfix Admin



* This source file is subject to the GPL license that is bundled with

* this package in the file LICENSE.TXT.


* Further details on the project are available at :

* http://www.postfixadmin.com or http://postfixadmin.sf.net


* @version $Id: index.php 299 2008-02-21 21:43:58Z GingerDog $

* @license GNU GPL v2 or later.


* File: index.php

* Shows a sort-of welcome page.

* Template File: -none-


* Template Variables: -none-


* Form POST \ GET Variables: -none-



$CONF['configured'] = FALSE;

@include_once('config.inc.php'); # hide error message because only $CONF['configured'] is checked here

if (!file_exists (realpath ("./setup.php")) || $CONF['configured'] == 'I_know_the_risk_of_not_deleting_setup.php')


header ("Location: login.php");







<title>Welcome to Postfix Admin</title>



<img id="login_header_logo" src="images/logo-default.png" />

<h1>Welcome to Postfix Admin</h1>

<h2>What is it?</h2>

<p>Postfix Admin is a web based interface to configure and manage a Postfix based email server for many users.</p>

<p>Postfix Admin can also be used to </p>


<li>Forward email to other addresses</li>

<li>Configure vacation/out-of-office auto responses</li>

<li>Add/edit/remove mail accounts</li>

<li>Add/edit/remove domains</li>

<li>Broadcast emails to all users of the system</li>

<li>Set quota on mailboxes</li>

<li>And more...</li>




<p>Postfix admin is released under the following license :</p>



This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License 2 as published by

the Free Software Foundation.



<p>See the following <a href="http://www.fsf.org/licenses/gpl-2.0.txt">FSF GPL2 page</a> for further information on the license.</p>


<h2>What now?</h2>



<li>Read the <a href='INSTALL.TXT'>INSTALL.txt</a> file</li>

<li>Configure Postfix to use your chosen database - see (for example) the following pages :


<li><a href="http://codepoets.co.uk/postfixadmin-postgresql-courier-squir...

<li><a href="http://bliki.rimuhosting.com/space/knowledgebase/linux/mail/...

<li><a href="http://gentoo-wiki.com/HOWTO_Setup_a_Virtual_Postfix/Courier...


<li>Use it</li>



<p><b>When you have configured Postfixadmin, this page will be replaced with a login page.</b></p>

<p>You can now run <a href="setup.php">setup</a> to make sure that all the PHP functions are available for Postfix Admin to run.<br />

<p> If you still encounter any problems, please check the documentation and website for more information.</p>

<h2>Postfix Admin Web sites</h2>

<p>For further help, or documentation please check out -

<a href="http://postfixadmin.org">Postfix Admin</a> web site<br />

<a href="http://sourceforge.net/forum/forum.php?forum_id=676076"... Base</a>






и что-то не вкурю что не работает постфиксадмин или пхп. наеюсь на поомощь.

Share this post

Link to post
Share on other sites

Надо было в онфиг добавить:

###prikruchivaem php###
AddType application/x-httpd-php .php

Share this post

Link to post
Share on other sites

теперь другая проблема:

Checking for dependencies: 
Warning: Magic Quotes: ON (internal workaround used)
Depends on: presence config.inc.php - OK
Warning: $CONF['configured'] is 'false'.
You must edit your config.inc.php and change this to true (this indicates you've created the database and user) 
Depends on: MySQL 3.23, 4.0 - OK
Error: Can't connect to database
Please edit the $CONF['database_*'] parameters in config.inc.php. 

Connect: Access denied for user 'postfix'@'localhost' (using password: YES)
Depends on: session - OK
Depends on: pcre - OK
Error: Depends on: multibyte string - NOT FOUND
To install multibyte string support, install php5-mbstring
Warning: Depends on: IMAP functions - NOT FOUND
To install IMAP support, install php5-imap
Without IMAP support, you won't be able to create subfolders when creating mailboxes.

Please fix the errors listed above.

Share this post

Link to post
Share on other sites

Установить модули php-mbstring и imap.

Настроить МуСКЛ - завести пользователя/пароль для постфиксадмина

Отредактировать файл config.inc.php

Купить наконец англо-русский словарь и немножко им воспользоваться ...


Share this post

Link to post
Share on other sites

А вот эта опция Options Indexes вам зачем? Она тут не к месту. В остальном надо научиться пользоваться англо-русским словарём =).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this