Cannot move joomla install file on Linux Topic is solved

Need help installing Joomla! 4.x? For all Joomla! 4.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Cannot move joomla install file on Linux

Post by JamesTruelove » Sun Jun 05, 2022 6:31 pm

Hi All

Not sure if this is the right place!
I am trying to install Joomla 4.1.4 on my Fedora Linux.
For some reason I cannot move the Joomla install .zip file to the following folder.
opt /lampp/htdocs/joomla
No matter what I try the mv command will not allow me to move the file into the joomla folder.
I have googled all day but nothing I try works!

Anyone have any ideas?
Rgds James

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30923
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cannot move joomla install file on Linux

Post by Per Yngve Berg » Sun Jun 05, 2022 7:10 pm

File permissions?

Did you use the sudo command?

Please post the FPA. See red frame above.

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Sun Jun 05, 2022 7:14 pm

Yep tried all sorts of permissions commands using a few different file managers on linux.
Not sure if FPA would help as I do not have a joomla website

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30923
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cannot move joomla install file on Linux

Post by Per Yngve Berg » Sun Jun 05, 2022 7:36 pm

This is more about installing a web server rather than installing Joomla.

What web server to php interface are you using?

Here is a guide for Nginx, but pay attention to the section on fpm-cgi.

Tip: Create a separate Linux user for the site and place the site in the user's home folder.

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Sun Jun 05, 2022 7:45 pm

I have installed xampp
I cannot install joomla

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30923
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cannot move joomla install file on Linux

Post by Per Yngve Berg » Sun Jun 05, 2022 7:47 pm

XAMPP is for Windows, not Linux.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Sun Jun 05, 2022 7:48 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Sun Jun 05, 2022 7:56 pm

It is cross platform. It is installed ok and all servers run. I have created the folder set but cannot move the joomla install.zip into the prepared joomla folder so I can run the joomla installer.
No matter what I try linux prevents me moving the file. I do not have an ftp program on fedora linux. I will have to investigate. I will see if Filezilla is available for Fedora.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Sun Jun 05, 2022 10:14 pm

If you installed xampp on Fedora Linux you have ftp with it.
xampp linux 01.JPG


You unzip Joomla in to a regular folder on your PC
Then use Xampp's ftp to create a folder in the virtual Host's htdocs folder.
Then use Xampp's ftp to ftp the files to your Joomla folder.

The problem you are experiencing is an Ownership issue. By using xampp's ftp to create the folder and manipulate the files it eliminates the Ownership issues.

And before you say that is incorrect N.B. That's how I did it on Ubuntu Linux.


Here is a guide to installing xampp on Fedora https://computingforgeeks.com/how-to-in ... on-fedora/
If you did not install using the S(uper)U(ser)DO command then you will have problems. But by using the SUDO command to install xampp then that allows xampp to handle the folders/files with it's ftp.
You do not have the required permissions to view the files attached to this post.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Mon Jun 06, 2022 12:34 pm

I have reinstalled xampp following the instructions Webdongle provided. I copied and pasted all the commands in the instructions and everything worked. But I still cannot move the joomla install file using Filezilla.
My head hurts!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Mon Jun 06, 2022 3:11 pm

1. Did you run Filezilla from Xampp? i.e. Start ftp as an Xampp service
(The Xampp page says ProFTPD is the ftp with Xampp).

2. Where did you unpack the files? They need to be in the normal file system e.g. a folder under where you downloaded them to.

2. How did you create the destination folder? You need to create it it with Xampp's ftp.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Mon Jun 06, 2022 4:02 pm

I am still trying to figure out how to run filezilla from within xampp.
Running filezilla as a seperate program will not allow me to transfer joomla install file.
Proftpd server is running

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Mon Jun 06, 2022 4:30 pm

Start all the xampp services
Open your ftp client and create an account in the ftp client to connrct to localhost
User: nobody
Pass: lampp

This is an example (it's using winftp but should help)
ftp 01.JPG
That should connect you to the localhost server

Other than standing over your shoulder I can't explain it better. Either your doing everything correct and xampp is broke or I am missing to explain some simple step.
You do not have the required permissions to view the files attached to this post.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Mon Jun 06, 2022 5:52 pm

I do not know how to open the xampp ftp client to create an account?
The xampp control panel shows no way to do that?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Mon Jun 06, 2022 8:00 pm

Perhaps thats a typo by me. Xampp has the ftp server. Start all xampp services. When they are running ... you connect to the localhost ftp with an ftp client.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Mon Jun 06, 2022 8:30 pm

Thanks for your patience Webdongle! I have tried connecting to the localhost ftp with Filezilla, unfortunately every combination of host user password port I can think of nothing connects.
I assumed localhost, myfedora username, and password and port 21 would work but no luck!
Trying to move or copy a file fails.
Unless it is a Fedora thing!
I have spent a couple of days trying everything I could find on the internet but nothing works!
I am not an expert but I am fairly computer savvy!
I will keep searching!

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2673
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Cannot move joomla install file on Linux

Post by ceford » Mon Jun 06, 2022 9:09 pm

If this is localhost, what error message do you get when you use mv? What error message do you get when you use a file manager to move or copy? Please confirm - this is a laptop or workstation on your desk. Have you thought of installing another Linux flavour such as Ubuntu or Mint?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Mon Jun 06, 2022 10:14 pm

Server: localhost
User: nobody
Pass: lampp
Port leave as default
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Tue Jun 07, 2022 10:14 am

Tried those setting in Filezilla Webdongle. Failer with error below.
Critical error could not connect to server

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Tue Jun 07, 2022 10:17 am

I have tried everything suggested. No luck! I am going to take a break for now its doing my head in!
Thanks for all your help. I will let you know if I ever succeed!

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30923
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Cannot move joomla install file on Linux

Post by Per Yngve Berg » Tue Jun 07, 2022 11:17 am

What error message do you get?

Code: Select all

sudo mv <source> /opt/lampp/htdocs/joomla

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Tue Jun 07, 2022 2:38 pm

JamesTruelove wrote:
Tue Jun 07, 2022 10:14 am
...
Critical error could not connect to server
Was the server running?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Tue Jun 07, 2022 3:46 pm

Some progress
started nautilus with admin rights
sudo nautilus
This allowed me to move the unpacked joomla installation files to /opt/lampp/htdocs/joomla
BUT during install of joomla from localhost I got the error below

insufficient permission to create configuration.php file
Install came to a stop

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Tue Jun 07, 2022 4:22 pm

I used nautilus to change the permissions in the joomla folder and the joomla installation runs ok now. I just need to fill out the details. At first attempt it could not connect to the database so I have to resolve that but getting closer!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Tue Jun 07, 2022 5:02 pm

The part I missed to tell you
Create an ftp account through the FileZilla Server Interface (its the essentially the filezilla control panel). There is a link to it Start Menu in XAMPP folder. Then go to Users->Add User->Stuff->Done.


JamesTruelove wrote:
Tue Jun 07, 2022 3:46 pm
Some progress
started nautilus with admin rights
sudo nautilus
This allowed me to move the unpacked joomla installation files to /opt/lampp/htdocs/joomla
BUT during install of joomla from localhost I got the error below

insufficient permission to create configuration.php file
Install came to a stop
That's because (although nuatilus was running with S(uper)U(ser)DO Ownership permissions it did not give those Permissions to the Joomla files. btw SUDO is not admin rights it is Super User rights. Those rights are far more than you Admin account. That's why you need to use sudo nustilus to save files /opp folders.

The Joomla files (that are in the folder that is in the virtual server's htdocs folder) needs Super User Permissions. By using ftp, when the xampp ftp server is running) xampp gives the Joomla files Super User Ownership.

You could use chown (like when you use a Lamp stack rather than xampp) https://docs.joomla.org/Installing_Joom ... ermissions

Or keep trying to work out how to run and connect to xampps ftp server.

Or use the configuration.php-dist (edit with sudo nuatilus) to create the configuration. But you would then need to use the ftp layer in Joomla to install extensions. Which brings us back to square 1 ... connecting to xampps ftp server.

So bottom line easiest by far is to connect to xampps ftp server with an ftp client. Then copy the files into the htdocs/joomla folder with ftp.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2673
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Cannot move joomla install file on Linux

Post by ceford » Tue Jun 07, 2022 6:00 pm

JamesTruelove wrote:
Tue Jun 07, 2022 4:22 pm
I used nautilus to change the permissions in the joomla folder and the joomla installation runs ok now. I just need to fill out the details. At first attempt it could not connect to the database so I have to resolve that but getting closer!
You might find this article helpful:

https://docs.joomla.org/J4.x:Apache_PHP_Handler

In essence, I guess you are using mod_php which leads to permissions problems. On a personal localhost you can get round that by setting the Apache Group / User to yourself and moving the document root to your own filespace.

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Tue Jun 07, 2022 6:05 pm

Success Joomla 4.1.4 installed
Phew that was a long trip. It was definitely a permissions issue. Once I discovered running nautilus as admin it went faster!

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2673
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Cannot move joomla install file on Linux

Post by ceford » Tue Jun 07, 2022 6:16 pm

Now try uploading an image via the Joomla Administrator Media menu. Or try installing an extension. If it works, who owns the created files?

JamesTruelove
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Aug 02, 2014 10:39 am

Re: Cannot move joomla install file on Linux

Post by JamesTruelove » Tue Jun 07, 2022 7:25 pm

I installed JCE extension no problem!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Cannot move joomla install file on Linux

Post by Webdongle » Tue Jun 07, 2022 7:43 pm

JamesTruelove wrote:
Tue Jun 07, 2022 6:05 pm
...
Phew that was a long trip. It was definitely a permissions issue. Once I discovered running nautilus as admin it went faster!
So now you know why I know so much. Great learning curve.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Installation Joomla! 4.x”