So I'm running the wordpress docker container and I want to increase the upload file size limit set in php.ini. My problem is I can't find that file anywhere.
I installed the container with a docker-compose file.
In Ubuntu 16.04 VPS with LEMP in DigitalOcean I have a WordPress web site that has a contact form I created with Contact Form 7 (CF7).
I have a problem transferring emails from my WordPress contact form (CF7) to my email (Gmail).
I must say, I'll humbly prefer a non-plugin solution.
A
record holding the domain.Cname
record holding a www.
variant for the domain.NS
records to associate DNS requests to my domain, with my IP and the relevant app in its machine.I did try to add MX
records, by the automatic DigitalOcean way of doing so (by clicking Add Gmail MX records
button in the DigitalOcean DNS management tool), and 5 MX
records were added but I still had the same error after I immediately tried to send a test email from WordPress (see error below).
Currently, the DNS zone has no MX
records because I'm not sure they are even required if all I desire in the context of emails is just to send WordPress contact form inquiries to my Gmail account and I'm still in the same state with the same error.
I always get the following error message, inside a a red box under the contact form:
Failed to send your message.
Due to this error, nothing is sent anywhere (not even to the Spam folder).
Trying to debug this, I ran the following code to create a log for Postfix:
touch /var/log/mail.log
The permissions are:
rw-r--r-- 1 root root
But nothing gets written in this error log after I try to send myself a test email and fail.
sudo apt-get update && sudo apt-get upgrade postfix
.What causes this problem?
Maybe I can try something with Postfix or an alternative tool I should use like sSMTP? I'd prefer a minimal to no-conf tool. I emphasize that I don't send any other emails to my Gmail besides those landing in the WordPress contact form, nor do I send no other emails anywhere, from this machine.
In the past, I installed Postfix as described above and there weren't any problems. If you have any idea what to check, what details I should provide, please tell me and I'll edit.
1) The file /etc/postfix/main.cf
is all default.
2) Output of ps -efl | grep postfix
:
5 S root 4611 1 0 80 0 - 16352 ep_pol 07:42 ? 00:00:00 /usr/lib/postfix/sbin/master -w
4 S postfix 4613 4611 0 80 0 - 16881 ep_pol 07:42 ? 00:00:00 qmgr -l -t unix -u
4 S postfix 4930 4611 0 80 0 - 16869 ep_pol 11:02 ? 00:00:00 pickup -l -t unix -u -c
0 S root 5201 5187 0 80 0 - 3236 pipe_w 12:19 pts/0 00:00:00 grep --color=auto postfix
I've been stuck with this problem for a week now, browsing through various websites, I just can't seem to make this work.
I have Apache2 installed and a Wordpress website, located in a user's folder at /home/<user>/www
.
Now the website works and all, but installing plugins from the webinterface (and anything else that requires write access - changing settings, uploading media, etc.) won't work, as wordpress (more like apache) doesn't have write access to those files.
the /home/<user>/www
directory and everything beneath belongs to the user and the group <user>
.
I've already tried multiple solutions, but none of them worked, including:
Changing the owner of /home<user>/www
to www-data:www-data
.
Alright - honestly, I didn't try this solution, as I don't want it. If you do this for all the users on the server, they will gain access to all folders, but they should only be able to access their home folder, not the others.
Adding www-data
to the user's group.
I thought this might work, but apparently it doesn't. The www-data
user is indeed in the user's group (checked with the id command), but it still doesn't seem to work.
Setting an ACL on the user's home directory.
Did that too and gave www-data
rwx access to the home directory, and yet it still didn't help.
In case you're interested, the /home/<user>/
directory and all files/directories beneath have the 775 permission.
I have installed wordpress on my ubuntu 10.10 desktop edition and I am trying to install plugin from the browser (I know I can drop it to the wp-content/plugin but I want to do it via the web browser using FTP) I get this screen when I am trying to set auto update or install a plugin from web browser.
I provide the hostname 127.0.0.1 and Username and password the ones that I use to login to wordpress. I get the error
Username/password Incorrect and cannot connect to 127.0.0.1:20
I think i'll have to grant a user with ftp password but I dont know how. I have already installed vsftp but when I try "ftp 127.0.0.1" I get -
$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.3.0)
Name (127.0.0.1:gaurav): root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>
Wordpress is running locally on my Ubuntu Desktop.