put all permissions to my own usergroup (coennaninck).
That is not going to work - period.
I suggest you browse this forum for my posts on 'how lampp works' - it is NOT a standard 'LAMP' Stack -
pretty much the owner of files in htdocs has to be 'nobody:root'.
I also wonder why there isn't a step-by-step tutorial for this available, or if there is where it can be found.
I guess after this week I will have said enough on this to make an article out of it. Linux may have been 'desktop-ized', but you can't make a server work even with XAMPP without a fair knowledge of how Linux works and how to use the 'command line'/console/term. LAMPP is a much tougher go than XAMPP for Windows. Most folks go in the 'other direction', and that is probably why there aren't any step by step guides - Now maybe there is.
"to me" - Its quite simple actually
A. Make sure the PHP and MySQL versions are 'close enough' - ideally you should be on the same 'version' of XAMPP
B. Backup all your databases on your old machine (back them up to either tar, tar.gz or .sql files) Be sure to include the 'Create Database' options
C. Copy out your htdocs folders (minus the xampp folder) on your old machine to a thumb drive
D. Install XAMPP/LAMPP on your new Linux Box
E. Make sure everything
works. including phpmyadmin, and the XAMPP 'demos'
F. - Recreate the MySQL Users and Passwords that YOU added.
G. - Restore only your 'user created' databases from your backups.
H. - Copy the files from your thumb drive into /opt/lampp/htdocs on your Linux box.
I. - Change the permissions and ownership of the files in htdocs as needed, using term.
First - tackle ownership
- Code: Select all
[root@localhost jonb]# chown -R nobody:root /opt/lampp/htdocs
Check results carefully using 'ls'
Check permissions AND ownership of files and folders.
Generally folders should be 755, and files 644
J. Compare your php.ini configurations before you try to run anything, make sure they are as close as possible.
K. Make any needed changes to your Apache configuration files - "vhosts, XAMPP protection etc". Clearly you will need the absolute linux paths, and need to make any permission changes.
that should do it.