Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Joomla-Linux Could not open /opt/lampp/apps/joomla/htdocs/CONTRIBUTING.md for writing.

Posted on 2015-01-07
15
212 Views
Last Modified: 2015-01-12
Have the newest Joomla installed on CentOS 7.

When I log into Joomla admin interface it asks to update to Joomla version 3.3.6.
However when I do I get this message:

Could not open /opt/lampp/apps/joomla/htdocs/CONTRIBUTING.md for writing.

I am opening the web interface using Firefox.


Thank you,
HappyT
0
Comment
Question by:TheHappyTech
  • 8
  • 7
15 Comments
 
LVL 4

Expert Comment

by:Tom Chadaravicius
ID: 40537017
Either the file CONTRIBUTING.md is absent and/or you lack permissions
To solve the permissions problem, if you can at least use FileZilla (S)FTP client, check the permissions of ../htdocs directory. Change them to 755 (0755) octal.
If that alone does not help, please make sure Linux "apache" user (and/or group) can read/write to that directory (chown command).
0
 
LVL 4

Accepted Solution

by:
Tom Chadaravicius earned 500 total points
ID: 40537022
Here's the "File attribute" dialog of FileZilla. My screenshot points to "public_html", your dialog should point to "htdocs":
FileZilla - directory/file permissions dialog
0
 

Author Comment

by:TheHappyTech
ID: 40538456
This is a bit over my head... but I will do my best.

1). I tried logging in as root and doing the update through Joomla using firefox and still same error
2). While still root, I tried to find the 'apache' user under the file permissions of the htdocs folder. Did not find it.
3). I have know the very basics of using Filezilla, and I have the Xampp ftp login and password, (port 21) but I cant connect.
Maybe I dont have the correct path?? So far I am just using the IP, do I need more than that?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 4

Expert Comment

by:Tom Chadaravicius
ID: 40538576
Please ensure you've got the correct permissions.
Even if you use FireFox, your Joomla runs under Apache, so Apache user/group must have write rights. The actual "apache" user may be overwritten in httpd.conf file(s); and the user/owner of htdocs may just belong to "apache"group.
Setting permissions to 0755 (755) should also resolve the user/group issue.
2. The correct path issue - I am assuming you have quoted correct path when you asked the question. But if the path is non-existent, that's definitely an issue.
0
 

Author Comment

by:TheHappyTech
ID: 40538876
I havent use Linux much before. Ill be honest about that.

Could you walk me through how to set permissions to 755?

Its the correct path.

Thank you Tom,
HappyT
0
 
LVL 4

Expert Comment

by:Tom Chadaravicius
ID: 40539449
If, according to you, you are new to Linux, and if the /opt/lampp/apps/joomla/htdocs/ really exist, the FileZilla is the most user-friendly way to fix the issue.
If you want to learn Linux, and if you have SSH access, I suggest to look at chmod.
1. Are you sure  the directory /opt/lampp/apps/joomla/htdocs/ exists?
2. Can you use FileZilla?
Tom
0
 

Author Comment

by:TheHappyTech
ID: 40540797
1. Yes
2. Yes

I just dont know what to do next.
0
 
LVL 4

Expert Comment

by:Tom Chadaravicius
ID: 40540806
1. Connect to your server using FileZilla
2. Ensure the directory exists
3. If the directory exists, right-click on htdocs
3.1. A menu will appear, there will be an item called "File attribute(s)". Select that item
4. A pop-up dialog will appear. It will look like the dialog I have posted earlier.
5. Enter 755 into the "Numeric Value" field
That should allow any user read/write file (s) in the .../htdocs directory (any except for "public; "public" is 777).
*Note: you need to connect as "root" user for this to work - or as a user who has sufficient access to modify "htdocs" directory
0
 

Author Comment

by:TheHappyTech
ID: 40545692
I've requested that this question be deleted for the following reason:

Beyond my skill level. Going to re-install another flavor of Linux and try again.

Thank you.
0
 
LVL 4

Expert Comment

by:Tom Chadaravicius
ID: 40541521
The procedure involving FileZilla or chmod will be the same on any Linux flavor - RHEL, CentOS ver 5/6, Fedora.
If you can access SSH terminal, type ls -l /opt/lampp/apps/joomla/htdocs/ to find out if the directory exists.
If it does not exist, you will get an answer
ls: cannot access /opt/lampp/apps/joomla/htdocs/: No such file or directory
If it does exist, you will get an output showing some parameters, such as file size(s) and timestamps.
0
 

Author Comment

by:TheHappyTech
ID: 40541534
I just moved into a new apt so I am without internet access for awhile,
I will try this monday, thank you Tom.
0
 

Author Closing Comment

by:TheHappyTech
ID: 40545693
Thank you Tom! This was exactly the fix I needed and I learned things about FileZilla I did not know before.
0
 

Author Comment

by:TheHappyTech
ID: 40545710
Changing the permissions worked successfully, but I still cant update and apply the latest Joomla update.

I cant find the Apache user and/or group either.

I know we are close to resolving this, mind helping me out one last time?
0
 

Author Comment

by:TheHappyTech
ID: 40545777
I got it to work. I set it to set permissions for sub folders and files. All is good and updated!

Thank you Tom.
0
 
LVL 4

Expert Comment

by:Tom Chadaravicius
ID: 40545782
My pleasure :)
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS EC2 HTTP & HTTPS 2 44
hbo knew my windows software 4 60
parallel rsync issues with Ubuntu 1 21
Use Select Query to Return Results as a Form 9 23
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to dynamically set the form action using jQuery.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question