Portable installation will only work on one computer!

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

Portable installation will only work on one computer!

Postby calvin141170 » 19. March 2007 12:57

Hi,

I used the 7zip archive to extract XAMPP into \xampp folder on a portable drive. Everything seemed to work fine but it only seems to run properly on the PC I initially ran it on (my desktop PC).

If I plug my portable drive into my laptop, for example, run Apache and MySq from the XAMPP Control Paneland try to access "localhost" in my browser I get a Server Error:

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
03/19/07 11:52:00
Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.1


Any ideas? I'm thinking it's something to do with paths, as the portable drive is assigned as J: on the desktop and D: on the laptop.

Cheers,

Calvin!
Calvin Jones

CJ Writing: putting words to work for you!
calvin141170
 
Posts: 6
Joined: 19. March 2007 12:40
Location: West Cork, Ireland

Postby Wiedmann » 19. March 2007 14:54

I used the 7zip archive to extract XAMPP into \xampp folder on a portable drive.

And you have not used "setup_xampp.bat"?

in my browser I get a Server Error:

"error.log"?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby calvin141170 » 19. March 2007 17:57

Hi,

Thanks for the response.

I didn't use "setup_xampp.bat" as per the instructions in the readme file.

The XAMPP installation only seems to work on a computer where the drive letter assigned to the removable drive is the same as the original used when setting the security passwords for the XAMP folders on the server.

Could it be that the drive letter is hard-coded somewhere in the security settings? I'm convinced it's a path issue as the server works fine when you plug it back into the original computer.

The entry in the error log generated by trying to access the computer on the laptop (Drive D) as opposed to the desktop (Drive H:) are as follows:

Mon Mar 19 16:26:35 2007] [notice] Server built: Jan 30 2007 12:11:56
[Mon Mar 19 16:26:35 2007] [notice] Parent: Created child process 3060
[Mon Mar 19 16:27:01 2007] [notice] Child 3060: Child process is running
[Mon Mar 19 16:27:01 2007] [notice] Child 3060: Acquired the start mutex.
[Mon Mar 19 16:27:01 2007] [notice] Child 3060: Starting 250 worker threads.
[Mon Mar 19 16:27:01 2007] [notice] Child 3060: Starting thread to listen on port 443.
[Mon Mar 19 16:27:01 2007] [notice] Child 3060: Starting thread to listen on port 80.
[Mon Mar 19 16:27:05 2007] [alert] [client 127.0.0.1] D:/xampp/htdocs/xampp/.htaccess: Invalid file path H:\\xampp\\security\\xampp.users
[Mon Mar 19 16:40:09 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Mon Mar 19 16:40:09 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Mon Mar 19 16:40:12 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Mon Mar 19 16:40:12 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Mon Mar 19 16:40:16 2007] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.1 configured -- resuming normal operations


So -- my XAMPP installation is on a portable drive... but I can only use it on the original computer, which kind of defeats the purpose of the whole thing!

Any ideas?

Cheers,

Calvin!
Calvin Jones

CJ Writing: putting words to work for you!
calvin141170
 
Posts: 6
Joined: 19. March 2007 12:40
Location: West Cork, Ireland

Postby Wiedmann » 19. March 2007 18:04

[Mon Mar 19 16:27:05 2007] [alert] [client 127.0.0.1] D:/xampp/htdocs/xampp/.htaccess: Invalid file path H:\\xampp\\security\\xampp.users

Remove the driveletters in this ".htaccess" file.

(And also in "/xampp/security/htdocs/.htaccess".)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby calvin141170 » 20. March 2007 11:42

Thanks,

I thought of that right after posting my last reply -- trouble is windows won't let me see the .htaccess files. I'll keep trying, but meanwhile if you have any suggestions for working with .htaccess files in windows I'd appreciate it.

Thanks a million for your help with this.

Cheers,

Calvin!
Calvin Jones

CJ Writing: putting words to work for you!
calvin141170
 
Posts: 6
Joined: 19. March 2007 12:40
Location: West Cork, Ireland

Postby calvin141170 » 20. March 2007 12:01

Ignore last post -- changed folder settings so I could see .htaccess files and have made the changes.

Seems to work perfectly!

Thanks again for your help with this.

Cheers,

Calvin!
Calvin Jones

CJ Writing: putting words to work for you!
calvin141170
 
Posts: 6
Joined: 19. March 2007 12:40
Location: West Cork, Ireland

Spoke to

Postby calvin141170 » 22. March 2007 16:23

Spoke too soon.

Apache is working fine on both machines (desktop and laptop) but there's a problem on the laptop. MySQL isn't working properly when my portable drive is plugged in to the laptop, and when I click on "Status" on the Xampp admin pages for some reason the MySQL and CGI services are showing as deactivated -- even though MySql is showing as started in the XAMPP control panel.

The "Status" page shows MySQL and CGI as activated when my portable drive is plugged into the desktop.

It's frustrating, because I'm sure its only something very small. I'm thinking of wiping everything and starting from scratch, just in case I've inadvertently messed up somewhere along the way.

Cheers,

Calvin!
Calvin Jones

CJ Writing: putting words to work for you!
calvin141170
 
Posts: 6
Joined: 19. March 2007 12:40
Location: West Cork, Ireland


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 103 guests