WordPress cannot get access to my LAMP server.
1 Attachment(s)
Hello there.
My system specifications: Samsung RV509, i3, 300GB HDD, 3GB Ram, Dual boot Windows7 & LM 17.3 Rosa. Home server: LAMP Content management system: WordPress Domain name: I have not taken a registered domain name yet. I have successfully installed LAMP & WordPress. I can login to my wordpress dashboard, too with no problems. However the the WordPress cannot access my LAMP server. I cannot Update plugins or Install plugins, upload pictures. I get the following kinds of errors; Quote:
My issue: Due to my ignorance about Linux, LAMP and WP, I am not sure how to fill the connection information being asked by WP, to connect to my home server, viz; Authentication Keys, Public Key, Private Key, Connection Type [FTP, FTPS(SSL), SSH2]. The information being asked is as given in the image below; Attachment 21380 Please forgive my ignorance, I do not know; How to know, whether I am using a FTP or FTPS or SSH connection? What are Authentication, Public and Private Keys? Kindly help me to fill this information. And please help me resolve these issues. I would appreciate any suggestions by the compassionate, honourable members of the forum, in this regard. Thank you Regards |
First check whether the upload directories exist and are writable
/PATHTO/INSTALLDRECTORY/wp-content/uploads/2016/04 /PATHTO/INSTALLDRECTORY/wpcontent/uploads is probably existing. Go with bash to this directory ("cd /path/to/WP/wpcontent/") then chmod 0666 uploads As WP seems to be looking for an ftp connection is there an FTP server running? If not you can install an FTP server by sudo apt-get install pure-ftpd For FTPS and SSH connections you need a running SSH daemon like open-ssh-server You can install with the same command as above (replace program name) To install such programs you need root access to the machine. Hope this helps j |
Did you configure the file, wp-config.php per instructions (see step three at the link)?
|
not acces of lamp
i am php developer with nearly 3 yrs of exp. .. i will recommend you to use xampp .. which best and can be use use on any window..
|
Thank you j-ray, for coming.
Quote:
Now I have the '/var/www/html/wp-content/uploads/2016/04' directory created. And then I went to the 'wp-content' folder by right clicking on it and opening it in terminal. And then I gave the command 'chmod 0666 uploads' as shown below; Quote:
I am the root and everything went by fine. And then I opened the Dashboard of WP, and tried to upload images from my computer. But I again recieved the following error; Quote:
Host name: FTP/SSH username: FTP/SSH password: These above information were all filled in by default. I left it as it is. But below that, some information was left blank as below; Public Key: ? Private Key: ? Connection Type: FTP option was checked by default. With this much information filled in, I clicked on the proceed button. But then I got the following error; Quote:
Thank you j-ray, for trying to help me. Regards |
Thank you frankbell, for coming.
Quote:
Quote:
Regards |
Thanks for coming, selenaz.
Quote:
Thanks for the concern. Regards |
You have to setup a user for pure-ftpd and use his credentials to connect to the ftp server. By default "root" is not a valid ftp user in pure-ftpd and it is not recommended to use "root" + password of root in ftp.
Actually I would not recommend to use XAMP in a production environment. It is rather an easy-to-use development base. |
Quote:
So now I will have to setup a user for pure-ftpd. I searched the web for 'how to setup a user for pure-ftpd?'. And I found this link. https://help.ubuntu.com/community/PureFTP. But I have some doubts regarding the suggestions in that link. They are as below; Should I do exactly as suggested there except changing the username? In the second section headed 'Security', it is stated that; Quote:
PLease kindly suggest what I should do. Thank you Regards |
I would suggest to look who owns the wp-content directory and setup this user for pure-ftpd. So check
ls -ls /path/tp/wp-content That will give out permissions and owner:group Of course FTP is not a secure protocol. But if you want to use secure protocols you need certifcates and inform yourself about that topic. It is not trivial. But maybe someone else knows better? Cheers, j |
1 Attachment(s)
Quote:
The permissions and owner:group for wp-content are as below; Attachment 21413 The above shows that root is the owner but in your last post you said; Quote:
So what is the next alternative course of action, that we need to take? Is it better to go ahead and create a pure-ftp user? Thank you Regards |
ak is the owner not root
|
Quote:
ak is also the root. Now can I setup this user for pure-ftpd? If yes, how to setup this user for pure-ftpd? Thanks for staying with me. Regards |
ak is ak and root is root
if ak has a home directory /home/ak then you probably can use ak's credentials to connect via ftp to this home directory. So probably you have to configure his access to go to wp-content by default. |
Quote:
Then how do I configure his access to go to wp-content by default? Thanks for being there, j-ray. I greatly appreciate your efforts to help me. Regards |
All times are GMT -5. The time now is 04:05 AM. |