XAMPP 1.8.1 - server package

Configuration wizards, scanners, remote desktop, etc.
Message
Author
Atle
Posts: 596
Joined: Wed 19 Nov 2008, 12:38
Location: Oslo, Norway
Contact:

#21 Post by Atle »

So then you can make use of either of the 32 bis versions without having sharefiles conflicts in my opinion. I assume your PC is a 32 bit then.

FYI... Anything can be installed to the server. Just create a folder, unzip whatever into it and then give the entire folder a ugly 777 permission. If a database is created and ready, you use mysql as database user with no password.

Wordpress got a version out that has PHP7 support as well, but i did not include it.

I happen to look for a solution where i go outside the limits of php.ini, joomla etc with upload of files. I struggle with getting large files uploads.

I got my joomla to accept files up to around 250mb, but that is where it stops.

My aim is 4gb :lol:

BTW Solo... I discover that you might need to change the script a bit if your wlan goes from wlan0 to wlan1. Then Wlanmaker will not start.


atle

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#22 Post by gyro »

solo wrote:would it at all be possible to have a setup in which the server would run outside the savefile?
Before you install XAMPP, create a directory in "/mnt/home", e.g. "/mnt/home/lampp".
Then copy this directory to "/opt/lampp" as a symbolic link.
Then manually add the group and user "mysql", (see rojun's post on page 1).
Then run the XAMPP installer.

I just installed the latest XAMPP 7.0.5-0 on Tahrpup 6.0.5, without any problem.

gyro

Atle
Posts: 596
Joined: Wed 19 Nov 2008, 12:38
Location: Oslo, Norway
Contact:

#23 Post by Atle »

A updated version of Sulu004 with Xampp (7.0.4) and Joomla 3.5.1 is uploaded.

It also has Wlanmaker installed and the DNSmasq "trick" as well.

The only problem I could see is that desktop icons does not appear in the remaster and must be pulled out of root/scripts in order to be there.

Download

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#24 Post by frourio »

I've been trying Rojun's solution of manually adding a group and user but I'm running into this error on terminal in Tahrpup6.0.5:
Adding group `mysql' (GID 1001) ...

addgroup: `/usr/sbin/groupadd -g 1001 mysql' returned error code 1. Exiting.
Any suggestions?

I also tried running:

Code: Select all

adduser -G mysql mysql
And got:
Option g is ambiguous (gecos, gid, group)
I tried replacing -G with --group but that still didn't work. I think I have to get the first command running successfully before I can start worrying about the second one.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#25 Post by rockedge »

try just using

Code: Select all

#adduser mysql
#addgroup mysql
for XAMPP just this will do the trick to create user group
adduser username newgroup

Code: Select all

#adduser mysql mysql
I usually only use adduser mysql for XAMPP installs

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#26 Post by frourio »

Same error:
Attachments
add_user.png
(9.79 KiB) Downloaded 578 times

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#27 Post by rockedge »

open the Puppy Package Manager, select uninstall and check the list.

if you find on this list "adduser" or "passwd" select them and remove and uninstall them. Try again with

Code: Select all

#adduser mysql 
I have had these installed as dependencies on top of the original tahr install and cause problems.

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#28 Post by frourio »

Ok found them, but I'm a bit hesitant to remove them.

Are those related to my previous attempts to install XAMPP, or are they something that ships with Puppy? Will it not cause other problems with other operations/apps if I remove them?

On a secondary note, does anyone have a very up-to-date SFS of XAMPP? Once I remove them, I'd prefer to add XAMPP via SFS if possible.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#29 Post by rockedge »

no these on the list are not shipped. They do not belong to XAMPP either. I experiment extensively with setting up Puppy Linux as a web server in various forms and flavors... I run into this often....trust me XAMPP will work after these are removed. And the adduser and passwd will function again as original. I can make an SFS of XAMPP if need be. I may have XAMPP 1.8.1 floating around and also I have had good success with xampp-linux-5.6.14-4.
Either way...but you will see it will work again once you remove these from the uninstall list.....the original fresh puppy has an empty list.

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#30 Post by frourio »

Ok will remove them and try.

Once I remove them, do I have to manually "adduser" in terminal and then run the installer, or do I just run the installer?

I think I had tried the 1.8.1 version on Tahrpup without any luck, but also, isn't that a little dated now?

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#31 Post by rockedge »

first use

Code: Select all

#adduser mysql
then run the installer. That way the XAMPP installer will not generate an error when it can not find or create the user 'mysql', it will already be present.

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#32 Post by frourio »

Ok. Removed the said packages. (I also removed their dependencies too. I hope I won't need their dependencies for future use.)

Then I typed the SQL commands.

Before I go ahead and run the installer, does this screenshot look about right as a response from the terminal? I'm guessing the "mysql" folder doesn't exist yet because I haven't run the installer? (Or should I have not gotten that error message?)
Attachments
adduser-after-packages-removed.png
(8.12 KiB) Downloaded 579 times

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#33 Post by rockedge »

That is how it supposed to look. Looks like it worked...now run the XAMPP installer...it will create everything you will need I think you are almost there!

The error messages can be ignored....and those packages you removed should cause no further problems.

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#34 Post by frourio »

Ok. Confirming that it's working.

Rockedge you're a rock star.

For my own future reference and that of others, these are the dependencies I removed as a result of removing the "password" package, in case I/you ever need them back for other apps:

libpam-modules_1.1.8
libsemanage1_2.2-1
libsemanage-common_2.2-1
libustr-1.0-1_1.0.4
debconf_1.5.51ubuntu2


Now, one other question... if I want XAMPP to live outside of the save file, is it simply a matter of copying the /lampp folder into /mnt/home, and then creating a symlink back to /opt? Or might that mess it all up, now that it's installed?

I tried creating that symlink before installing, but it wasn't able to install, citing errors such as permissions as the problem. It had aborted the install.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#35 Post by gyro »

frourio wrote:Now, one other question... if I want XAMPP to live outside of the save file, is it simply a matter of copying the /lampp folder into /mnt/home, and then creating a symlink back to /opt? Or might that mess it all up, now that it's installed?

I tried creating that symlink before installing, but it wasn't able to install, citing errors such as permissions as the problem. It had aborted the install.
I know it works, I run it symlinked to /opt/lampp from a different partition on a different drive. I can't remember what order I did it in.

Why not:
Back it up.
Move it.
Symlink it.
Try it.

gyro

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#36 Post by frourio »

Yeah, I was going off the suggestion of your previous post Gyro, but if I'm not mistaken, you mentioned to symlink it first, and then try the install which didn't seem to work in my case. That's why I was wondering if it can be done after the fact.

In any case, yup, I'll give it a try.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#37 Post by rockedge »

Glad to read you have success! Yes you can move XAMPP and symlink into /opt after the install. I mostly just change the apache configs in /opt/lampp/etc to indicate the root paths or move the mysql storage by config or symlink. I think I left /opt/lampp/xampp with just the xampp start script and changed the perl to start the servers in /mnt/home/lampp. Getting permissions set correctly is a tad tricky but you will find what works for you.

let me know how you make out!

P.S did you get the GUI control panel going in /opt/lampp/share/xampp-control? You will need more python installed if you didn't. It is just eye candy.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#38 Post by gyro »

frourio wrote:In any case, yup, I'll give it a try.
It just occured to me that I have ommitted an important piece of information.
The partition that contains my actual "lampp" directory, is formated with an "ext4" filesystem. I expect it to not work if your "/mnt/home" is not a linux partition.

gyro

frourio
Posts: 112
Joined: Thu 05 Jan 2017, 03:57

#39 Post by frourio »

@rockedge

I think you lost me a little. Are you talking about defining to XAMPP which is your public (htdocs) folder, after you've migrated XAMPP out of the savefile?

I did get the GUI control panel to run. I couldn't locate a setting on it to redefine which folder to set as my public folder (having something different than the default htdocs). I'm guessing I need to do that in some kind of a config file?

@gyro

When you say "for it to work", do you mean for being able to have your XAMPP installation outside of the save file. The particular USB I was working with is not a linx partition. XAMPP works currently but I haven't yet tried to migrate it outside of the savefile. My main Puppy setup will be a linux partition in the end however.
Last edited by frourio on Fri 27 Jan 2017, 00:52, edited 1 time in total.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#40 Post by gyro »

frourio wrote:When you say "for it work", do you mean for being able to have your XAMPP installation outside of the save file. The particular USB I was working with is not a linx partition. XAMPP works currently but I haven't yet tried to migrate it outside of the savefile. My main Puppy setup will be a linux partition in the end however.
Yes.
When it's inside the savefile it is on a linux filesystem, so it works ok.
If you want to move it outside the savefile, then you need to move it to a partition formated with a linux filesystem.

gyro

Post Reply