The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Postfix+postfixadmin"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [ Отслеживать ]

"Postfix+postfixadmin"  +/
Сообщение от xmaster email(ok) on 27-Авг-08, 13:27 
ставлю по мануалу http://www.sys-adm.org.ua/mail/mail-howto-p1.php

из портов (обновленных)
встаёт нормально
  
делаю следующее

# cd /usr/local/www/postfixadmin
# mysql -u root -p < DATABASE_MYSQL.TXT

выдаёт

DATABASE_MYSQL.TXT: No such file or directory.


Где  его (DATABASE_MYSQL.TXT)  искать ??

Загуглился уже ((((

Заранее спасибо ...

Высказать мнение | Ответить | Правка | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Postfix+postfixadmin"  +/
Сообщение от mr_gfd on 27-Авг-08, 14:40 
>ставлю по мануалу http://www.sys-adm.org.ua/mail/mail-howto-p1.php
>
>из портов (обновленных)
>встаёт нормально
>
>делаю следующее
>
># cd /usr/local/www/postfixadmin
># mysql -u root -p < DATABASE_MYSQL.TXT

/usr/local/www/postfixadmin/DATABASE_MYSQL.TXT - тут должен быть, если make install делал и не менял пути установки.

или
1. cd /usr/ports/mail/postfixadmin/
2. make patch
3. дальше ищи в work

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "Postfix+postfixadmin"  +/
Сообщение от mr_gfd on 27-Авг-08, 14:44 
>[оверквотинг удален]
>># cd /usr/local/www/postfixadmin
>># mysql -u root -p < DATABASE_MYSQL.TXT
>
>/usr/local/www/postfixadmin/DATABASE_MYSQL.TXT - тут должен быть, если make install делал и не менял
>пути установки.
>
>или
>1. cd /usr/ports/mail/postfixadmin/
>2. make patch
>3. дальше ищи в work

Упд: в 2.2 версии поменялось чуток. читай /usr/ports/mail/postfixadmin/work/postfixadmin-2.2.1.1/INSTALL.TXT

там все написано, что делать

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

3. "Postfix+postfixadmin"  +/
Сообщение от xmaster email(??) on 27-Авг-08, 15:48 
>[оверквотинг удален]
>># cd /usr/local/www/postfixadmin
>># mysql -u root -p < DATABASE_MYSQL.TXT
>
>/usr/local/www/postfixadmin/DATABASE_MYSQL.TXT - тут должен быть, если make install делал и не менял
>пути установки.
>
>или
>1. cd /usr/ports/mail/postfixadmin/
>2. make patch
>3. дальше ищи в work

стделал всё ровно нету  (((

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

4. "Postfix+postfixadmin"  +/
Сообщение от mr_gfd on 27-Авг-08, 16:11 
>[оверквотинг удален]
>>
>>/usr/local/www/postfixadmin/DATABASE_MYSQL.TXT - тут должен быть, если make install делал и не менял
>>пути установки.
>>
>>или
>>1. cd /usr/ports/mail/postfixadmin/
>>2. make patch
>>3. дальше ищи в work
>
>стделал всё ровно нету  (((

Итак, объясняю на пальцах. с 2.2 версии (сейчас в портах Фри) изменился порядок установки этого замечательного приложения. Поэтому использовать устаревший мануал не выйдет в части, которая описывает установку постфиксадмина.
Поэтому, иди в /usr/ports/mail/postfixadmin/work/, дальше в рабочую папку postfixadmin-x.x.x.x (по номеру версии) и там читай INSTALL.TXT. Дальше оттуда

2. Setup a Database                                                                                
-------------------                                                                                
                                                                                                    
With your chosen/preferred database server (i.e. MySQL or PostgreSQL),                              
you need to create a new database. A good name for this could be :                                  
                                                                                                    
  postfix                                                                                          
                                                                                                    
The mechanics of creating the database vary depending on which server                              
you are using. Most users will find using phpMyAdmin or phpPgAdmin the                              
easiest route.                                                                                      
                                                                                                    
If you wish to use the command line, you'll need to do something like :                            
                                                                                                    
For MySQL:                                                                                          
  CREATE DATABASE postfix;                                                                          
  CREATE USER 'postfix'@'localhost' IDENTIFIED BY 'choose_a_password';                              
  GRANT ALL PRIVILEGES ON `postfix` . * TO 'postfix'@'localhost';                                  
                                                                                                    
For PostgreSQL:                                                                                    
  CREATE USER postfix WITH PASSWORD 'whatever';                                                    
  CREATE DATABASE postfix OWNER postfix ENCODING 'unicode';                                        
                                                                                                    
                                                                                                    
3. Configure PostfixAdmin so it can find the database                                              
-----------------------------------------------------                                              
                                                                                                    
Edit the config.inc.php file.                                                                      
                                                                                                    
The most important settings are those for your database server.                                    
                                                                                                    
You must also change the line that says :                                                          
                                                                                                    
$CONF['configured'] = false;                                                                        
                                                                                                    
to                                                                                                  
                                                                                                    
$CONF['configured'] = true;        
PostfixAdmin does not require write access to any files. You can therefore                          
leave the files owned as root (or a.n.other user); as long as the web server                        
user (e.g. www-data) can read them, it will be fine.                                                
                                                                                                    
The next 'step', is optional. Only do it, if other non-trusted users have access                    
to your user:                                                                                      
                                                                                                    
    Depending on your environment, you may want to protect the database username                    
    and password stored in config.inc.php - if so, you could move them into the                    
    Apache configuration file (which can be set to be visible only by root) using                  
    something like the following in your VirtualHost definition :                                  
                                                                                                    
    SetVar DB_USER "postfix"                                                                        
    SetVar DB_PASS "opensesame"                                                                    
                                                                                                    
    config.inc.php would then be able to access these through :                                    
                                                                                                    
    $CONF['database_user'] = $_SERVER['DB_USER']                                                    
                                                                                                    
                                                                                                    
4. Check settings, and create Admin user                                                            
----------------------------------------                                                            
                                                                                                    
Hit http://yourserver.tld/postfixadmin/setup.php in a web browser.                                  
                                                                                                    
You should see a list of 'OK' messages.                                                            
                                                                                                    
The setup.php script will attempt to create the database structure                                  
(or upgrade it if you're coming from a previous version).                                          
                                                                                                    
Assuming everything is OK you can create the admin user using the form displayed.                  
                                                                                                    
Once you submit the form, all that's left to do is to delete "setup.php"                            
                                                                                                    
e.g.                                                                                                
                                                                                                    
mv setup.php setup.php.disabled

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

5. "Postfix+postfixadmin"  +/
Сообщение от gyurza2000 (??) on 03-Авг-09, 23:20 
>[оверквотинг удален]
>
>Assuming everything is OK you can create the admin user using the
>form displayed.
>
>Once you submit the form, all that's left to do is to
>delete "setup.php"
>
>e.g.
>
>mv setup.php setup.php.disabled

Ага, а про создание таблиц в базе там ничего не написано :)

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

6. "Postfix+postfixadmin"  +/
Сообщение от mr_gfd on 04-Авг-09, 12:10 
>[оверквотинг удален]
>>
>>Once you submit the form, all that's left to do is to
>>delete "setup.php"
>>
>>e.g.
>>
>>mv setup.php setup.php.disabled
>
>Ага, а про создание таблиц в базе там ничего не написано :)
>

А в последних версиях таблицы создаются сетапом.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру