You are not logged in.
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
Is 'localhost' the hostname of the machine you are installing this on?
Offline
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
Last edited by kermana (2014-03-12 01:27:20)
Offline
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
@karol yes is on localhost
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
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
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
Offline
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
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
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
Got it working me too !! i did some reinstallation (upgrading)
thank you very much kermana.
Offline
Nice, glad it's working I love my PostfixAdmin, just makes everything so much quicker.
Last edited by kermana (2014-03-13 18:06:47)
Offline