1

Topic: iRedMail with Wordpress

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Debian 8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====
I would like to experiment with Wordpress on my iRedMail server.
Is there any issues with iRedMail running with Wordpress on the same server?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail with Wordpress

No issue.

3

Re: iRedMail with Wordpress

ZhangHuangbin wrote:

No issue.

I have a follow up question.
I noticed that I can only access my site using https
Can I have http://mydomain.com for my wordpress site and keep https://mydonain.com/mail for my roundcube mail access.

Where do I and how do I configure this?
Thanks

4

Re: iRedMail with Wordpress

Sure. Just place your wordpress files under /var/www/html/. smile

5 (edited by extremeshok 2015-12-16 10:16:12)

Re: iRedMail with Wordpress

Remember to comment out the HSTS config in your webserver configs, otherwise your domain will be forced to httpS by your browser.

BTW, its never a good idea to run websites on your mailserver.

6

Re: iRedMail with Wordpress

extremeshok wrote:

BTW, its never a good idea to run websites on your mailserver.

This doesn't make any sense.

7

Re: iRedMail with Wordpress

What is the HSTS file and where is it located?

I have added the wordpress site and it will work going to   www.domain.com/wordpress but not www.domain.com

8

Re: iRedMail with Wordpress

dcihon wrote:

What is the HSTS file and where is it located?

HSTS is just a http header, defined in Apache or Nginx config file.

dcihon wrote:

I have added the wordpress site and it will work going to   www.domain.com/wordpress but not www.domain.com

You should copy WordPress to DocumentRoot of web server.

9

Re: iRedMail with Wordpress

From apache2/sites-enabled/000-default.conf:
DocumentRoot /var/www/html

mail / # find -name wordpress
find: `./mnt/backupmusic': No such file or directory
./root/.local/share/Trash/files/wordpress
./root/.kde/share/apps/dolphin/view_properties/local/var/www/html/wordpress
./var/lib/mysql/wordpress
./var/www/html/wordpress
./var/www/html/wordpress/wp-includes/js/tinymce/plugins/wordpress
./var/www/html/wordpress/wp-includes/js/tinymce/skins/wordpress
./home/dcihon/wordpress
./home/dcihon/wordpress/wp-includes/js/tinymce/plugins/wordpress
./home/dcihon/wordpress/wp-includes/js/tinymce/skins/wordpress
./home/dcihon/USER/dcihon/data/SecondWind/html/wordpress

10

Re: iRedMail with Wordpress

I think maybe I am ok.
If I put in the browser  http://www.domain.com  it takes me to the wordpress site but shows in the address bar http://domain.com/wordpress
If I put in the browser https://www.domain.com/main it takes me to Roundcube for the mail.
So I think I am ok
I would just like it to show in the browser http://www.domain.com  when in the wordpress site.
I'll do some research on this to see if I can make this happen.
Thanks for all your help

11

Re: iRedMail with Wordpress

dcihon wrote:

I think maybe I am ok.
If I put in the browser  http://www.domain.com  it takes me to the wordpress site but shows in the address bar http://domain.com/wordpress
If I put in the browser https://www.domain.com/main it takes me to Roundcube for the mail.
So I think I am ok
I would just like it to show in the browser http://www.domain.com  when in the wordpress site.
I'll do some research on this to see if I can make this happen.
Thanks for all your help

hi did you find a solution for this issue? i have the same problem or more complex because i have a proxy firewall and i make redirection but when i try to enter to the page it sends me to the proxys page. any help will be good ill be waiting thanks smile

12

Re: iRedMail with Wordpress

im also having this issue. i have installed iredmail and wordpress in same server machine using nginx. iredmail working fine, but wordpress not working fine. it shows 502 bad gateway.

any one please share me the step of configuration file to run iredmail and wordpress

13

Re: iRedMail with Wordpress

kumar wrote:

im also having this issue. i have installed iredmail and wordpress in same server machine using nginx. iredmail working fine, but wordpress not working fine. it shows 502 bad gateway.

any one please share me the step of configuration file to run iredmail and wordpress


error message while accessing my wordpress website:

2021/10/23 12:08:36 [error] 95193#95193: *52 connect() to unix:/run/php/php7.4-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.1.231, server: www.a-sat.sg, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "a-sat.sg"
2021/10/23 12:08:36 [error] 95193#95193: *52 connect() to unix:/run/php/php7.4-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.1.231, server: www.a-sat.sg, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "a-sat.sg"

14

Re: iRedMail with Wordpress

kumar wrote:

2021/10/23 12:08:36 [error] 95193#95193: *52 connect() to unix:/run/php/php7.4-fpm.sock failed (111: Connection refused)

php-fpm is configured to listen on port 9999 on iRedMail server, you should update your Nginx config file to use this instead of socket path.