Closed Thread Icon

Topic awaiting preservation: AMP on USB (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=25207" title="Pages that link to Topic awaiting preservation: AMP on USB (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: AMP on USB <span class="small">(Page 1 of 1)</span>\

 
DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 03-07-2005 20:56

Hi. Desperately seeking Apache &/or PHP config gurus (I think...)

With the help of the rundown on http://www.firepages.com.au/ I've managed to set up apache 1.3, php & mysql on a 128 Mb USB dongle that I want to use for demo purposes.

Since I didn't want PHP 5 (all my stuff plus the place I work at is still at 4.3.10) as the rundown covered I decided to mod the phpdev423 install (why go the easy way, right).

(another big reason for me going with the phpdev bundle was that I really don't know what I can strip from a PHP/Apache/MySQL install before it breaks, If I knew that I'd go with Apache 2 as in the example to see if it works better)

Now.
The HTML serves just fine but the PHP fails with warning that it can't open the file, then points to the include_path just as it normally does when it can't find a file to include. It does this even with a simple phpinfo() file without includes.

It works fine if I add the drive letter to DocumentRoot in the Apache config, naturally I don't want that since it probably will be different on all machines I plug it into.

Yes, I've tried to get in contact with the author, but all I got was my mail in return like some wierd autoresponse.

Now, according to the documentation:
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.

so it should work fine with /usbdrive/www as opposed to D:/usbdrive/www
it serves html fine, but fails to find the file once it parses a php-page, add the drive letter and it works...

Any tips for an Apache newbie?
Thanx/Dan

{cell 260} {Blog}
-{ ?The Internet treats censorship as a malfunction and routes around it.? (-Barlow, John Perry) }-

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 03-07-2005 21:27

DmS

I'm by no means a guru on this stuff but I have been playing with the config files recently setting up a new package on my local so take this for what it's worth.

I was just wondering if it might have something to do with the path for the php LoadModule statement in the httpd.conf file for apache.

-Butcher-

(Edited by butcher on 03-07-2005 21:28)

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

posted posted 03-08-2005 00:00

Doesn't the httpd.conf require the drive letter for the ServerRoot entry as well?

I wanna know if you get it to work! and good luck!

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-08-2005 08:19

is php a module, or a cgi program?
Either way, I suppose it's not as smart as apache itself in finding it's files.

Maybe you could mod_rewrite the filenames to include the correct drive path..

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 03-08-2005 10:20

Butcher, PHP does start if the DocumentRoot contains the drive letter, but the path has been adjusted acc to the Apache documentation and it didn't change anything.

JK, that's in there.

TP, it's a module.
I more and more agree that it's something related to PHP, this is the error with omitted driveletter:

code:
Warning: Failed opening '/pdrive/www/phpinfo.php' for inclusion (include_path='\pdrive\php\includes') in Unknown on line 0


With the driveletter phpinfo shows as it should.
As for mod_rewrite, I'm totally clueless
/Dan

{cell 260} {Blog}
-{ ?The Internet treats censorship as a malfunction and routes around it.? (-Barlow, John Perry) }-

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-08-2005 17:47

ok... try getting filemon from www.sysinternals.com, and see where your php actually tries to find your file.

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 03-08-2005 19:01

Absolutely wonderful tool !!!!!!
Now I know what it does...
it looks here:
D:\pdrive\php\includes\pdrive\www\phpinfo.php
It should look here:
D:\pdrive\www\phpinfo.php

Most certainly a problem with the php ini, at least I know where to look now!
A humongous thank you!

I'll holler when it works (note, not if...)
/Dan

{cell 260} {Blog}
-{ ?The Internet treats censorship as a malfunction and routes around it.? (-Barlow, John Perry) }-

kuckus
Paranoid (IV) Mad Librarian

From: Glienicke
Insane since: Dec 2001

posted posted 03-08-2005 19:55

Please do!

I've been messing with Lamppix quite a bit, even managed to re-master my own LiveCD with a custom firefox profile and the standard ms truetype fonts, but while that works pretty well now and made me understand linux a lot better it'd still be too nice if you didn't have to reboot the pc for it.

So I'll be all ears when you make it happen =)

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 03-09-2005 15:30

After a lot of hacking and cursing I tried another package:

xampp lite an appr 50Mb large package that can be found here:
http://www.apachefriends.org/download.php?xampplite-win32-1.4.12-pl1.exe

I unpacked the zip through the .exe into a folder on the desktop, copied the folder xampplite to the root of the USB, entered the folder and clicked xampp_start.exe

Whoops... a complete WAMP install on usb that works...


I highly recommend USB 2.0 and at least 128 Mb but all seems to work
/Dan

{cell 260} {Blog}
-{ ?The Internet treats censorship as a malfunction and routes around it.? (-Barlow, John Perry) }-

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 03-10-2005 01:39

That's... very interesting. I have a similar project I have to do for one of my classes soon, and this may just be the way to go for me. Thanks!


Justice 4 Pat Richard

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 03-12-2005 17:17

I've been playing with the xampp package since DMS told me about it. Very cool, but a couple of things I didn't like about it...

The whole admin web is in the htdocs folder. If you want to take a full site with you, you almost need to move that admin site out of the way. Better do all your config stuff before then.

Also, I got random errors in most of the included apps. Not a big deal, since I don't plan on using them, and admittedly, didn't try to troubleshoot them AT ALL.

Other than that, I've got a working webserver that I can take with me to those rare clients who have dial-up or no net access. VERY SWEET.

« BackwardsOnwards »

Show Forum Drop Down Menu