You are here

XAMPP Launcher 1.0

22 posts / 0 new
Last post
John T. Haller
John T. Haller's picture
Online
Last seen: 31 min 21 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
XAMPP Launcher 1.0

Newer release posted. Topic locked.
https://portableapps.com/node/7936

After playing with XAMPP a bit more, I figured it would be handy to have an easy way to get a link to the XAMPP Control Panel to appear in the PortableApps Menu. So, I've posted a XAMPP Launcher. It's a simple package (in PortableApps Format so you can automatically add it) that just links to XAMPP's control panel when you have your typical setup (both PortableApps and xampp directories in your root directory).

Please give it a try. If people like it, I'll add it to the main XAMPP page.

https://portableapps.com/downloads/XAMPP_Launcher_1.0.paf.exe

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
Yes

Yes it seems to be working well for me. Kepp up the great work\

Edit: Err actually it didn't launch. and I figured out why.

you have this as your way of launching

Section "Main"
Push $EXEDIR
Call GetParent
Call GetParent
Pop $0
Exec "$0\xampp\xampp-control.exe"
SectionEnd

in which it didn't work. I edited it so that it launches with this

Section "Main"
Exec "App\xampp\xampp-control.exe"
SectionEnd

but it requires you to stop using GetParent.nsh

your friendly neighbourhood moderator Zach Thibeau

John T. Haller
John T. Haller's picture
Online
Last seen: 31 min 21 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Wrong path

The correct setup for this is:

X:\PortableApps\XAMPP\xampp.exe (my launcher)

X:\xampp (where xampp is installed)

XAMPP only supports being installed in the root directory. Any other location is not supported and may have unpredictable results. That's why I'm not packaging XAMPP in PAF format. It has to be installed in the root directory.

Sometimes, the impossible can become possible, if you're awesome!

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
Well

Well with that tweak I did it worked pretty well. Thanks for trying, Keep up the excellent work

your friendly neighbourhood moderator Zach Thibeau

John T. Haller
John T. Haller's picture
Online
Last seen: 31 min 21 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Hmmm

Looks like restriction (requiring root install) isn't there anymore. That's good news. I have a packaged launcher that was ready to go on the off-chance this happened. I'll update for Vista (well, one line, heh) and some of the other enhancements I was gonna add and release a test version of it.

Sometimes, the impossible can become possible, if you're awesome!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Why not

Use GetRoot?
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
Well

if you use the version that requires no installation I think it would work. I mean for my own launcher modifications it worked just fine on any computer

your friendly neighbourhood moderator Zach Thibeau

winhandsome
Offline
Last seen: 17 years 8 months ago
Joined: 2007-02-02 23:44
Don't work

It doesn't work.

I install it on
D:\download\papps\PortableApps\XAMPP
and xampplite on
D:\download\papps\PortableApps\XAMPP\App\xampp

(I also have XAMPP on d:\xampp)

abeckstrom
Offline
Last seen: 15 years 1 month ago
Joined: 2006-09-08 10:45
XAMPP V1.6.0

Does this still work with the recently released XAMPP V1.6.0?

Also, when using the launcher, do you still need to run setup_xampp.bat, initially?

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
uhmm

I should work no problems and I don't think you need to run setup.bat

your friendly neighbourhood moderator Zach Thibeau

twnty3svn
Offline
Last seen: 16 years 7 months ago
Joined: 2006-04-10 03:24
fantastic

finally with the help of this launcher, I'm able to configure the localhost. Great app and launcher.

One question however, has anyone tried compressing the dll's and exe's with UPX and had success? Just thought i'd pose the question before trying myself.

Thanks

sender
Offline
Last seen: 17 years 8 months ago
Joined: 2007-03-09 20:47
xampplite

Great tool. However, it does not seem to work for xampplite, because X:\xampplite is the default directory then. When renaming it to xampp I didn't get MySQL to work correctly from the xampp menu (probably also because of wrong paths in configuration files). (It did work when using the mysql_start.bat file however.)

It seems the launcher can easily be adapted for xampplite by changing the directory to look for xampp from xampp to xampplite. I've seen the source code. Can I change this myself? What development environment do I need for that? Thank in advance.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
XAMPP Lite Launcher anyone?

So has anyone actually done this?

I really can't be bothered setting up an NSIS environment... if no-one can post the final product, I'll just go on using a batch file from the root to start it!

Edit: check that... I just started using the "Portable App Installer", and found it has NSIS Portable... trying that now.

Edit 2: it failed... so I got NSIS Portable manually (http://usb.smithtech.us/apps/downloads/NSISPortable.exe). Now to work out how to use it, and then, do it!
---

Chris Morgan

"I would talk in iambic pentameter if it were easier."
— Howard Nemerov

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

stevenrushing
Offline
Last seen: 16 years 11 months ago
Joined: 2007-03-29 23:29
Is it possible to cut down

Is it possible to cut down on the menu options made available by the xampp launcher? It is really nice, but it has too many options. I really only need the control panel...

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
XAMPP Lite Launcher 1.0

Here's a XAMPP Lite Launcher for anyone who's interested.

http://chris.morganiser.googlepages.com/XAMPP_Lite_Launcher_1.0.paf.exe

It's the same as John's one, just it uses /xampplite/ as its root path, and I relabelled all the "XAMPP"-s to "XAMPP Lite"-s.

---

Chris Morgan

"I would talk in iambic pentameter if it were easier."
— Howard Nemerov

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
Well

Well even then it would still have to use absolute paths. Because php and mysql have ini files it stores the first sessions directory as default. So one would have to edit the ini files to make it so that ti would correct the path each time

your friendly neighbourhood moderator Zach Thibeau

Carl Somers
Offline
Last seen: 17 years 5 months ago
Joined: 2007-06-30 19:33
To get the launcher recompiled to work with xampplite

Change the "Main" section in XAMPP.nsi to this:

Section "Main"
Push $EXEDIR
Call GetParent
Call GetParent
Pop $R0
SetOutPath "$R0\xampplite"
Exec "$R0\xampplite\xampp-control.exe"
SectionEnd

This changes the working directory to the root+xampplite which is the default install directory. xampp-control.exe expects to be executed from the default install directory, SetOutPath accomplishes the directory change and eliminates the problems with starting mysql. Hope this helps someone as it took me about an hour to figure it out.

Dijaboro
Dijaboro's picture
Offline
Last seen: 2 years 1 week ago
Joined: 2007-04-19 02:49
first try

okay the the app run very well but i have one question: regarding to the changing systems you always have to run setup.bat. is there any possiblity to add this reconfig to the app ?

John T. Haller
John T. Haller's picture
Online
Last seen: 31 min 21 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Actually

You're not supposed to run setup.bat at all when running it portably. If you run it once, though, then you'll have to re-run it on every system you use.

Sometimes, the impossible can become possible, if you're awesome!

Carl Somers
Offline
Last seen: 17 years 5 months ago
Joined: 2007-06-30 19:33
Laucher Code for Setup Batch file for Xampplite

If you have the NSIS Portable compiler mentioned above, http://usb.smithtech.us/apps/downloads/NSISPortable.exe
this code will run the setup batch file for you. Remember to make an icon with the "Setup XAMPPLite.ico" name or you will get an error and no exe file. Also need the GetParent.nsh file in same directory. Put the finished Setup XAMPPLite.exe where the Portable Apps Menu can find it and you're all set.

SetupXampp.nsi

;Copyright (C) 2004-2007 John T. Haller of PortableApps.com
;Additional Ideas from tracon and mai9

;Website: https://portableapps.com/apps/development/xampp

;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.

;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.

;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.

;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

!define NAME "Setup XAMPPLite"
!define FRIENDLYNAME "Setup XAMPPLite"
!define APP "Setup XAMPPLite"
!define VER "1.0.0.0"
!define WEBSITE "PortableApps.com/apps/development/xampp"

;=== Program Details
Name "${FRIENDLYNAME}"
OutFile "${NAME}.exe"
Caption "${FRIENDLYNAME} | PortableApps.com"
VIProductVersion "${VER}"
VIAddVersionKey ProductName "${FRIENDLYNAME}"
VIAddVersionKey Comments "Allows ${APP} to appear in the PortableApps Menu. For additional details, visit ${WEBSITE}"
VIAddVersionKey CompanyName "PortableApps.com (John T. Haller)"
VIAddVersionKey LegalCopyright "John T. Haller"
VIAddVersionKey FileDescription "${FRIENDLYNAME}"
VIAddVersionKey FileVersion "${VER}"
VIAddVersionKey ProductVersion "${VER}"
VIAddVersionKey InternalName "${FRIENDLYNAME}"
VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey OriginalFilename "${NAME}.exe"
;VIAddVersionKey PrivateBuild ""
;VIAddVersionKey SpecialBuild ""

;=== Runtime Switches
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user

;=== Program Icon
Icon "${NAME}.ico"

;=== Includes
!include "GetParent.nsh"

Section "Main"
Push $EXEDIR
Call GetParent
Call GetParent
Pop $R0
SetOutPath "$R0\xampplite"
Exec "$R0\xampplite\setup_xampp.bat"
SectionEnd

RPBirt
Offline
Last seen: 14 years 10 months ago
Joined: 2005-12-13 18:14
New XAMPP launch control

A new launch control for XAMPP and XAMPPlite is available for testing at [Link removed by moderator JTH. Unless it is released as open source now, it cannot be self-promoted.] This control is part of the DeskTopXampp project and is being developed by the ZedFiles Project in collaboration with Nat32 and Apache Friends. It will be released as Open Source once testing is completed.

The primary feature is the support of 'alternative porting' of both Apache and MySQL to avoid conflicts with existing sessions and to allow 'concurrent sessions' for testing or multiple configurations. These are important issues for the PortableApps community.

The DeskTopXampp project will not roll out until later this summer but I thought that making this app available for testing now was timely.

Have a happy 4th!!!!

______________________________________________________
Ridgewood Foundation Open Source Project
Site: ZedFiles Blog: My 19" Universe

yurzub
Offline
Last seen: 16 years 3 months ago
Joined: 2007-06-04 12:21
Great launcher! But...?

If this is finalized, why not release it? or at least link to her from the XAMPP release page?

Topic locked