Results 1 to 3 of 3

Thread: LAMP localhost File Transfer & Permissions??

  1. #1
    Join Date
    Dec 2008
    Location
    East of Eden (tx)
    Posts
    331

    Default LAMP localhost File Transfer & Permissions??

    I have installed LAMP per instructions. "It Works!"

    The goal is a localhost server for Joomla CMS website development that can be moved to a commercial hosting service with minimum problems when it is ready to go "live" on the internet. What do I need to do now (during setup) to be able to backup the database & files on localhost and move them directly onto the commercial hosting server?

    I have done this before and had improper file permissions on localhost that cause security problems when the site is uploaded to the commercial hosting service. How do I avoid this?

    Should I move files from the local hard drive into localhost htdocs in Terminal as su? Can I use ftp (Filezilla) to move local files to the localhost htdocs? How?

    This is one of those problems that fall into the crack between openSUSE and Joomla. If someone can point me in the right direction, I would appreciate it.

    Cordially,
    TwoHoot
    #1 - openSUSE Leap 15.1; AMD A6-3670; Radeon(tm) HD; 8gb memory; 500 gb HD; KDE 5.12.8
    #2 - openSUSE Leap 15.1; Toshiba Satellite L70-A (Dual Boot - Win10); KDE 5.12.8
    #3 - openSUSE Leap 15.1; AMD A6-6400K; Radeon HD; 8gb memory; 1tb HD; KDE 5.12.8

  2. #2

    Default Re: LAMP localhost File Transfer & Permissions??

    Copying files via SSH (Secure CoPy (SCP)) should preserve ownership
    between systems, and it is also secure, so I'd go that route. This
    implies you are running the command from the source machine where
    permissions are correct to the target machine where permissions and
    ownership should be set the same way, so no using an intermediate machine
    to copy from one machine and then to another.

    Otherwise, use 'tar' to grab up files as it too should keep
    ownership/permissions the same, though in that case (if not in the SCP
    case) I am pretty sure you must have the same UID (user ID number) for the
    user on the source and target systems. Not positive, so test it, but I
    think that's the case. Typically that's not a big deal or hard to
    overcome, in my experience anyway.

    Does 'root' currently own your files? What other ownership
    (user/group/other or FACL-extended) do you have, and what permissions?

    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  3. #3
    Join Date
    Dec 2008
    Location
    East of Eden (tx)
    Posts
    331

    Default Re: LAMP localhost File Transfer & Permissions??

    Quote Originally Posted by ab View Post
    ... Does 'root' currently own your files? What other ownership
    (user/group/other or FACL-extended) do you have, and what permissions?...
    LAMP localhost is currently exactly as installed - root owns everything under /srv with rwx permissions.

    Now I need to create three folders under htdocs for 3 separate Joomla installations (different projects) and move the Joomla installation files into them.

    Two of these installations are active websites that I will try to move by backing up the website files and database, and installing the backups on localhost. I do not know just what the ownership and permissions will be on them. Any ideas on how to do this in a better and/or easier way? Is it possible to just import them from the commercial host server?

    The third installation will be the latest Joomla version 3x with sample data. The goal is to use localhost to upgrade the two existing sites to Joomla 3 (it is migration process instead of a simple upgrade and, IMO, best NOT done on a live website).

    Any advice or instructions will be appreciated. Thank youfor your reply.

    Cordially,
    TwoHoot
    #1 - openSUSE Leap 15.1; AMD A6-3670; Radeon(tm) HD; 8gb memory; 500 gb HD; KDE 5.12.8
    #2 - openSUSE Leap 15.1; Toshiba Satellite L70-A (Dual Boot - Win10); KDE 5.12.8
    #3 - openSUSE Leap 15.1; AMD A6-6400K; Radeon HD; 8gb memory; 1tb HD; KDE 5.12.8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •