Xampp on usb stick starts but shows not "running"

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp on usb stick starts but shows not "running"

Postby roba75 » 03. May 2011 12:22

Hi,
I've installed xampp on a USB stick. When I go to the control pannel and start Apache en MySQL its say's "started" but the I get no yellow Square with "running"
What can I do?
roba75
 
Posts: 6
Joined: 03. May 2011 12:10

Re: Xampp on usb stick starts but shows not "running"

Postby Altrea » 03. May 2011 13:24

take a look into the \xampp\apache\logs\error.log file
maybe the port apache wants to use is already in use by another process
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Xampp on usb stick starts but shows not "running"

Postby roba75 » 03. May 2011 21:36

Hi, tthanks for reply. I looked in the log file.

This is in it:

Tue May 03 22:30:50 2011] [notice] Digest: generating secret for digest authentication ...
[Tue May 03 22:30:50 2011] [notice] Digest: done
[Tue May 03 22:30:51 2011] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue May 03 22:30:51 2011] [notice] Server built: Nov 11 2009 14:29:03
[Tue May 03 22:30:51 2011] [notice] Parent: Created child process 4124
[Tue May 03 22:30:55 2011] [notice] Digest: generating secret for digest authentication ...
[Tue May 03 22:30:55 2011] [notice] Digest: done
[Tue May 03 22:30:56 2011] [notice] Child 4124: Child process is running
[Tue May 03 22:30:56 2011] [notice] Child 4124: Acquired the start mutex.
[Tue May 03 22:30:56 2011] [notice] Child 4124: Starting 150 worker threads.
[Tue May 03 22:30:56 2011] [notice] Child 4124: Starting thread to listen on port 443.
[Tue May 03 22:30:56 2011] [notice] Child 4124: Starting thread to listen on port 80.
[Tue May 03 22:30:56 2011] [notice] Child 4124: Starting thread to listen on port 443.
[Tue May 03 22:30:56 2011] [notice] Child 4124: Starting thread to listen on port 80.

I see the grren square with "running" now by appache but not by MySQL . Appache I can stop with the control panel
But MySQL I can't stop with the control panel...........
roba75
 
Posts: 6
Joined: 03. May 2011 12:10

Re: Xampp on usb stick starts but shows not "running"

Postby Altrea » 03. May 2011 21:52

If you want to start your XAMPP USB Stick on an OS with new User Account Control (UAC), like Windows Vista, Seven, Server 2008, please try to start the control panel with rightclick context menu -> run as administrator
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Xampp on usb stick starts but shows not "running"

Postby roba75 » 03. May 2011 23:18

I have no user acount control It is disabled (I use windows vista)
roba75
 
Posts: 6
Joined: 03. May 2011 12:10

Re: Xampp on usb stick starts but shows not "running"

Postby Sharley » 05. May 2011 07:00

Do you only have XAMPP on your USB or do you also have XAMPP on the PC you have inserted the USB stick on?

Before trying to start Apache/MySQL in the USB, check your Task Manager to see if httpd.exe and mysqld.exe are running already.

If you type http://localhost in your browser before you try and start the USB Apache and MySQL using the XAMPP Control Panel what do you see?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Xampp on usb stick starts but shows not "running"

Postby roba75 » 05. May 2011 11:10

When I type :http://localhost I get : "can't make a connection" I get this with the USB stick connected and without USB stick connected.

Processes you mentioned are not running. I've deinstalled Xampp from the computer and want to work from USB stick with a joomla site on it.

By the way Is it possible I use the stick also on computers where Xamp is installed?
roba75
 
Posts: 6
Joined: 03. May 2011 12:10

Re: Xampp on usb stick starts but shows not "running"

Postby Sharley » 05. May 2011 11:46

Can you provide the full error message and where you see it?

When you installed XAMPP to your USB stick did you run the setup_xampp.bat file?
This should not be run as it will give a drive letter that makes the USB unportable.

In the XAMPP Control Panel have you any ticks in the Svc check boxes - if so then you must remove the ticks as you have effectively created Windows services which will make the USB unportable and also will create a drive letter for your XAMPP USB installations - this may also allow you to stop and start MySQL.

Also reading your posts it looks like Apache can be started but MySQL can't and that seems to indicate that you may have another instance of MySQL already running - use the currports app below to find out.
You may not have uninstalled your PC XAMPP correctly as it needs that both Apache and MySQL Windows services are uninstalled and the XAMPP Control panel exited before deleting the XAMPP folder.

Are you trying the USB stick in a USB hub - usually a port on the front of your PC?

Try and use a USB port that is directly connected to the mother board - usually on the back of the PC but really should work on the front port, mine does.

Check your firewall is allowing traffic through your USB.

Check your antivirus scanner is also allowing access.

To test the above 2 items try and temporarily disable them and then try localhost again.

Do you have a proxy setting for your lan set in Internet Explorer, if so have you excluded localhost?

Also download this useful little app that does not need installing and is free, to see what ports are being used - port 80 and port 3306 for MySQL should be free.
http://www.nirsoft.net/utils/cports.html

Also this may come in handy:
http://www.nirsoft.net/utils/usb_devices_view.html

You can have XAMPP on your PC and on a USB stick but you can only run one at a time.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Xampp on usb stick starts but shows not "running"

Postby roba75 » 05. May 2011 14:30

I've unchecked appache and MySQL in the control panel and everything works fine now. I see " running" when I turn on
appache and MySQL.

I've still one problem: On one computer with Xampp and Joomla already installed I can't reach the Joomla installation from my usb stick.
To use the usb stick I turned off Xampp (appach and MySQl) which is aready installed on the computer and I enabled xampp
from my USB stick . So far so good. But when I type now: http://localhost/joomla/administrator I get the login from
the joomla installation installed on the computer . Not the login from the USB stick.

Is there a way I can get the joomla login from my usb stick?
roba75
 
Posts: 6
Joined: 03. May 2011 12:10

Re: Xampp on usb stick starts but shows not "running"

Postby Sharley » 06. May 2011 02:52

Your browser's cache (temporary internet files) is your worst enemy when developing at localhost level - so clear your cache and do it often so as to eliminate being served a cached file instead of a new file.

Make sure that XAMPP on your PC is not running and check your paths in Joomla don't have a drive letter defined like C:\xampp\htdocs\joomla or similar - temporarily move the joomla folder on the PC to a neutral location and try your URI again to try and force it to look elsewhere like on the USB.

Check the \xampp\apache\logs\error.log file for clues also the access.log file to see why the PC instance of joomla is being requested.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Xampp on usb stick starts but shows not "running"

Postby roba75 » 26. May 2011 13:00

Sorry for my late reaction. Could not reach the PC it is all about for several days. I tried now. moved joomla folder and renamed it. Tried to rename the Xampp folder on C: disk but that isn't possible because it says that is impossible because Xampp is openen in another folder. Strange becaus I stopped all services.

So it is not going to work... Perhaps you have another suggestion otherwise I will thank you very much for your help!
roba75
 
Posts: 6
Joined: 03. May 2011 12:10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 123 guests