You are here

How to get XAMPP running and be able to use .php pages with it?

15 posts / 0 new
Last post
Subjective Effect
Offline
Last seen: 15 years 2 months ago
Joined: 2006-11-19 12:40
How to get XAMPP running and be able to use .php pages with it?

Hi everyone.

I've just reinstalled Portable Apps after over a year away since I realise that is so much could have been doing with it and I've just been missing out.

I've got the basics - Firefox, GIMP, Filezilla, Komposer and 7-Zip.

But what I really need is XAMPP so I can do some work on my php/mySQL website (and perhaps learn AXAJ at the same time).

Details:
XAMPP is installed on my portable HD at E:\PortableApps\xampp

I can get the services running but the index.php in htdocs isn't recognised for double-clicking and opening it from within Firefox gives the error message. I'm getting this when I restart XAMPP through Portable Apps:

MySQL stop ...
Apache killed ...
pv: No matching processes found
Attention: Cannot delete the httpd.pid!
mysql\bin\mysqladmin.exe: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (10061)'
Check that mysqld is running on localhost and that the port is 3306.
You can check this by doing 'telnet localhost 3306'
Apache pid delete ... SHUTDOWN COMPLETE!

Please wait [Bitte warten] ...

### APACHE and MySQL is STARTING now! ###
[Do not close this window while XAMPP is running]

What am I doing wrong? Have I installed it in the wrong place?

Thanks for your help.

Sub Effect

richo
richo's picture
Offline
Last seen: 3 weeks 3 days ago
Joined: 2007-01-31 22:03
XAMPP Launcher

Please read this page: https://portableapps.com/apps/development/xampp and look closer at the "Menu Integration" paragraph. there is a link to a launcher for integrating XAMPP into the PortableApps.com Menu.

Subjective Effect
Offline
Last seen: 15 years 2 months ago
Joined: 2006-11-19 12:40
Ok, I got the XAMPP .paf

Ok, I got the XAMPP .paf file.

Is this the only file I need? And do I install it to the root as in E:\ or in E:\PortableApps\xampp as it tries to?

I've moved the other XAMMP folder out and installed to E:\PortableApps\xampp, navigated to the index.php file and I still get the same error message. Sad

Patrick Patience
Offline
Last seen: 4 years 3 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
XAMPP in Root

XAMPP is best put in the root of the drive X:\xampp, and then let the launcher install to X:\PortableApps\XAMPP

Subjective Effect
Offline
Last seen: 15 years 2 months ago
Joined: 2006-11-19 12:40
I think I need exact

I think I need exact instructions, including what order to do things in.

I've tried everything suggested here. XAMPP lite is in X:\xampp, and the launcher installed to X:\PortableApps\XAMPP.

The error I get when trying to launch the XAMPP control panel from within Portable Apps is:

"Neither XAMPP or XAMPP Lite were found on your device."

What is wrong here?

Jimbo
Offline
Last seen: 4 years 2 months ago
Joined: 2007-12-17 05:43
OK, step by step

I've been meaning to stick xampp on my drive for a while, so I took this as a good opportunity to try it out.

Basically, I followed the instructions and it worked, so. step by step

1) download the 33Mb XAMPP self-extracting exe (NOT the installer) (big download button on the app page)
2) download the xampp.paf.exe launcher (link referenced just below the download button to integrate with PAM)
3) run the 33Mb self-extracter, and give it x:\ (where Secret is your drive) as the destination. This will create x:\XAMPP with about 200MB of files in it.
4) run the paf.exe installer, giving it x:\PortableApps\XAMPP as the target (which will probably be the default)
5) start PAM, click on the XAMPP icon, it should bring up the control panel

I personally also downloaded patch2, which is a zip that you just unpack over the top of the x:\xampp folders, it replaces half a dozen files in there.

Where you are saying that you've installed it in X:\xampp already, check and make sure that it is NOT installed in x:\xampp\xampp as this won't work.

Hope that helps.

Jim

kritstov
Offline
Last seen: 15 years 1 month ago
Joined: 2009-02-20 13:53
I try running the self

I try running the self extractor but every time it gets stuck at 28%.

EDIT: Nevermind, I'm a retard. It keeps installing it's just the bar and number don't move for a very long time.

ThickAs
Offline
Last seen: 13 years 6 months ago
Joined: 2010-09-12 03:27
Updating XAMPP web page

Jim's posting above was much clearer to me than the XAMPP page. Personally, I'd cut and paste most of it onto the XAMPP page.

Next time the webpage editors update the XAMPP page:

1) The link to download XAMPP Launcher 1.4 didn't work for me. I got really slow connections, and a 500 error - page unavailable. However, this link does work, and it's quick:

http://sourceforge.net/projects/portableapps/files/XAMPP%20Launcher/XAMP...

If there's a problem with the original link, can it please be updated?

2) Please use the correct name for the setup file - setup_xampp.bat. Here's what it currently says:

# Installation without the Installer (Use this for portable use)
Note: Be sure not to run xampp_setup.bat, it is used for local installs

Thanks

James

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 1 year 9 months ago
Joined: 2007-01-12 19:22
.

"but the index.php in htdocs isn't recognised for double-clicking and opening it from within Firefox gives the error message."

That isn't the way XAMPP works, man...
Have you tried http://localhost ?

Subjective Effect
Offline
Last seen: 15 years 2 months ago
Joined: 2006-11-19 12:40
I've done exactly what you

I've done exactly what you said Jimbo. I've tried localhost, yes. I get an error message:


Failed to Connect

Firefox can't establish a connection to the server at localhost.

Though the site seems valid, the browser was unable to establish a connection.

* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.

XAMPP Control Panel works with Portable Apps but the window gives the following error:


Current directory: F:\xampp
Install directory:
*** WARNING: Directory mismatch ***
Status Check OK

Sob.

Subjective Effect
Offline
Last seen: 15 years 2 months ago
Joined: 2006-11-19 12:40
Scratch it all. It's working

Scratch it all. It's working now. I still get that directory mismatch error though.

Simplest mistake - I though XAMPP was starting Apache automatically. It doesn't. It all seems fine now.

PS. Does anyone use XAMPP on the desktop? It was a toss up between that and WampServer and I can't remember why I chose WampServer. Works fine so far. Anyone any preferences?

Subjective Effect
Offline
Last seen: 15 years 2 months ago
Joined: 2006-11-19 12:40
Now its working

How do I get a folder menu up on the XAMPP main page. localhost takes me to the XAMPP menu with all the info and demo programs but what I want are links on there to the index pages of my web projects, the folders of which are in the htdoc folder.

If I put localhost\projectfolder it does indeed open up the index.php page from within that folder but I don't want to be typing in the folder names all the time.

If you've used Wamp you'll know what I mean - it generates a list of links to your folders within htdocs.

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 1 year 9 months ago
Joined: 2007-01-12 19:22
.

simple, delete everything inside htdocs folder and place your files there

philthygeezer
Offline
Last seen: 14 years 11 months ago
Joined: 2009-02-04 13:58
I get this same error.

I'm trying to run it off a USB disk. Apache and MySQL are running but I get the localhost error for both admin pages. Is there a config file or something to fix this? Is there a default windows security setting that prevents the admin pages from showing?

explodingcan
Offline
Last seen: 14 years 8 months ago
Joined: 2009-07-25 07:41
HELP!

i need the answer to this too!!!

Log in or register to post comments