You are not logged in.

#1 2014-03-11 18:35:44

tesla135
Member
Registered: 2013-06-27
Posts: 76

[SOLVED] problem with PostfixAdmin

I was following the tutorial for installing an email server... and on  this PostfixAdmin step i have a problema. https://wiki.archlinux.org/index.php/Si … stfixAdmin

I installed successfully the postfixadmin package but there is no  http://localhost/postfixAdmin/setup.php

p.s. apache, php, mysql are installed

p.p.s there is no http://localhost/postfixAdmin/ folder

Last edited by tesla135 (2014-03-13 17:07:29)

Offline

#2 2014-03-11 23:42:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] problem with PostfixAdmin

Is 'localhost' the hostname of the machine you are installing this on?

Offline

#3 2014-03-12 00:53:39

kermana
Member
Registered: 2009-04-13
Posts: 60

Re: [SOLVED] problem with PostfixAdmin

Hi there,

After seeing your message I tried to install postfixadmin on my machine. It is still not working as I am getting 403 Access Forbidden but at least it recognizes the installation.
Here is my notes:

1-) Install apache php php-apache postfixadmin packages

2-) Open "/etc/httpd/conf/httpd.conf" and do the following changes:

-- Add "index.php" as below:

<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

-- Replace

LoadModule mpm_event_module modules/mod_mpm_event.so

with

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

-- Add this after other LoadModule directives:

LoadModule php5_module modules/libphp5.so

-- Add this at the end of the file

Include conf/extra/php5_module.conf

3-) Open /etc/php/php.ini and uncomment "extension=mysqli.so"


Now, we have a working PHP setup at this point.

To get postfixadmin recognized by Apache add these lines to the end of "/etc/httpd/conf/httpd.conf"

Alias /postfixAdmin "/usr/share/webapps/postfixAdmin"
<Directory "/usr/share/webapps/postfixAdmin">
        AllowOverride All
	Options FollowSymlinks
        Require all granted
</Directory>

Now, go to "http://localhost/postfixAdmin/setup.php"
You will probably see a 403 Access Forbidden error. I will let you know if I find a solution for that too smile

Last edited by kermana (2014-03-12 01:27:20)

Offline

#4 2014-03-12 04:22:46

kermana
Member
Registered: 2009-04-13
Posts: 60

Re: [SOLVED] problem with PostfixAdmin

Got it working!!

I just needed to change this line in php.ini

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps:

Notice I had to add "/etc/webapps:" at the end. Everything seems to be good to go at this point.

I hope you get it to work too.

Offline

#5 2014-03-12 16:36:13

tesla135
Member
Registered: 2013-06-27
Posts: 76

Re: [SOLVED] problem with PostfixAdmin

@karol yes is on localhost

kermana wrote:

Hi there,

After seeing your message I tried to install postfixadmin on my machine. It is still not working as I am getting 403 Access Forbidden but at least it recognizes the installation.
Here is my notes:

1-) Install apache php php-apache postfixadmin packages

2-) Open "/etc/httpd/conf/httpd.conf" and do the following changes:

-- Add "index.php" as below:

<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

-- Replace

LoadModule mpm_event_module modules/mod_mpm_event.so

with

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

-- Add this after other LoadModule directives:

LoadModule php5_module modules/libphp5.so

-- Add this at the end of the file

Include conf/extra/php5_module.conf

3-) Open /etc/php/php.ini and uncomment "extension=mysqli.so"


Now, we have a working PHP setup at this point.

To get postfixadmin recognized by Apache add these lines to the end of "/etc/httpd/conf/httpd.conf"

Alias /postfixAdmin "/usr/share/webapps/postfixAdmin"
<Directory "/usr/share/webapps/postfixAdmin">
        AllowOverride All
	Options FollowSymlinks
        Require all granted
</Directory>

Now, go to "http://localhost/postfixAdmin/setup.php"
You will probably see a 403 Access Forbidden error. I will let you know if I find a solution for that too smile


1-) checked

2-) added index.php to IfModule dir_module

LoadModule mpm_event_module modules/mod_mpm_event.so is missing

LoadModule php5_module modules/libphp5.so  checked

Include conf/extra/php5_module.conf done

3-) checked and done with those last lines


my

open_basedir = /:/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps:

And it still doesn't work, i'm guessing because that module is missing? right?

Offline

#6 2014-03-12 22:23:41

kermana
Member
Registered: 2009-04-13
Posts: 60

Re: [SOLVED] problem with PostfixAdmin

tesla135 wrote:

LoadModule mpm_event_module modules/mod_mpm_event.so is missing

Hi,

"LoadModule mpm_event_module modules/mod_mpm_event.so " comes as default in httpd.conf. If it's not there it is either changed or deleted.

Happens to me all the time. Sometimes I try all these changes trying to get something to work and forget to revert them afterwards when it doesn't work. My suggestion would be to start from scratch with a clean httpd.conf and do the above changes one by one. I know it's a pain but it usually works and you have the satisfaction of knowing that its done right big_smile

Offline

#7 2014-03-13 05:48:18

tesla135
Member
Registered: 2013-06-27
Posts: 76

Re: [SOLVED] problem with PostfixAdmin

kermana wrote:
tesla135 wrote:

LoadModule mpm_event_module modules/mod_mpm_event.so is missing

Hi,

"LoadModule mpm_event_module modules/mod_mpm_event.so " comes as default in httpd.conf. If it's not there it is either changed or deleted.

Happens to me all the time. Sometimes I try all these changes trying to get something to work and forget to revert them afterwards when it doesn't work. My suggestion would be to start from scratch with a clean httpd.conf and do the above changes one by one. I know it's a pain but it usually works and you have the satisfaction of knowing that its done right big_smile


Before that, i added LoadModule mpm_prefork_module modules/mod_mpm_prefork.so and after restart httpd...httpd.service failed.
I'm curios where this modules are located?

LE: i found the location, but mod_mpm_event.so and mod_mpm_prefork.so aren't there.

Last edited by tesla135 (2014-03-13 05:52:04)

Offline

#8 2014-03-13 06:39:28

kermana
Member
Registered: 2009-04-13
Posts: 60

Re: [SOLVED] problem with PostfixAdmin

On my computer they are located in "/usr/lib/httpd/modules" and provided by extra/apache package. Did you compile apache yourself or from aur maybe? I really can't imagine why they wouldn't be there given we have the same package installed. Sorry couldn't be more help ...

Offline

#9 2014-03-13 17:06:48

tesla135
Member
Registered: 2013-06-27
Posts: 76

Re: [SOLVED] problem with PostfixAdmin

Got it working me too !! i did some reinstallation (upgrading) smile

thank you  very much kermana. smile

Offline

#10 2014-03-13 18:04:15

kermana
Member
Registered: 2009-04-13
Posts: 60

Re: [SOLVED] problem with PostfixAdmin

Nice, glad it's working big_smile I love my PostfixAdmin, just makes everything so much quicker.

Last edited by kermana (2014-03-13 18:06:47)

Offline

Board footer

Powered by FluxBB