HighDots Forums  

php on virtual PC

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss php on virtual PC in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Osgood
 
Posts: n/a

Default php on virtual PC - 02-08-2005 , 09:44 AM






I think I know the answer already but its worth a go.

I have windows xp (home edition) running in virtual PC on the Mac. Is it
possible to run php on it so I can test some dynamic pages. Anyone done
this?

I think not unless you have windows xp pro? I didn't really know what I
was buying into at the time. For the few extra pounds, if this is
correct, it would have been a better investment.

Failing that can I connect to the internet through virtual pc? That way
I could load the site up to my server and test that way.

Cheers

os.



Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 09:52 AM






Quote:
I have windows xp (home edition) running in virtual PC on the Mac. Is it
possible to run php on it so I can test some dynamic pages. Anyone done
this?
Uh...OSX has apache and PHP pre-installed, I believe. I can't imagine any
reason to run this via virtual PC, unless your web host runs a windows
server and that PHP install is somehow different than the default *nix one.

Quote:
I think not unless you have windows xp pro?
XP Home is basically a crippled version of XP pro. You *can* get IIS running
in it, but you really need XP Pro for it. That said, you should be able to
get Apache running on XP Home. Again, though, you're better off running
Apache in OSX instead.

Quote:
if this is
correct, it would have been a better investment.
Well, you're running this all in Virtual PC. To be honest, your best bet
would have been Windows 2000.

Quote:
Failing that can I connect to the internet through virtual pc?
Yes.

-Darrel




Reply With Quote
  #3  
Old   
Osgood
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:02 AM



darrel wrote:

Quote:
Uh...OSX has apache and PHP pre-installed, I believe. I can't imagine any
reason to run this via virtual PC, unless your web host runs a windows
server and that PHP install is somehow different than the default *nix one.
Hi Darrel,

I do have php/msql running in OSX but when I test the site through
Virtual PC, for compatiblity on the PC, the testing server in OSX is not
found. Does that sound right?


Quote:
XP Home is basically a crippled version of XP pro. You *can* get IIS running
in it, but you really need XP Pro for it. That said, you should be able to
get Apache running on XP Home. Again, though, you're better off running
Apache in OSX instead.
humm well that sound promising I only really need to get php running.


Quote:
Well, you're running this all in Virtual PC. To be honest, your best bet
would have been Windows 2000.
Yeah, as I said I really didnt know what I was buying into. I just
wanted something for testing position in PC browers for static sites,
now I'm introducing some php stuff I need a liitle bit more.

Quote:
Failing that can I connect to the internet through virtual pc?

Yes.

Great I'll whack in aol 9 (lol) and see what happens.



Reply With Quote
  #4  
Old   
Alexandro Colorado
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:11 AM



On Tue, 08 Feb 2005 15:02:23 +0000, Osgood
<notavailable (AT) atthisaddress (DOT) com> wrote:

Quote:
darrel wrote:

Uh...OSX has apache and PHP pre-installed, I believe. I can't imagine
any
reason to run this via virtual PC, unless your web host runs a windows
server and that PHP install is somehow different than the default *nix
one.

Hi Darrel,

I do have php/msql running in OSX but when I test the site through
Virtual PC, for compatiblity on the PC, the testing server in OSX is not
found. Does that sound right?
Make sure that your 80 port is open to the public that way you 'dial-in'
your OSX through your OSX IP. Instead of using localhost/page.php it would
be <myexternalip>/page.php

That way you can see your site from (the internet). I guess you could also
see it from an internal IP (in case you have a home network).


A more blunt approach would be to share your files and simply re-create
your site on the virtual XP desktop. (installing foxserv or something of
that nature). Remember that OSX is more stable than Windows XP so for
production use OSX or Linux instead of Windows.

--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
http://www.interaktonline.com
Tel: 40(21) 312.5312


Reply With Quote
  #5  
Old   
Osgood
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:20 AM



Alexandro Colorado wrote:


Quote:
Make sure that your 80 port is open to the public that way you
'dial-in' your OSX through your OSX IP. Instead of using
localhost/page.php it would be <myexternalip>/page.php
Youve lost me there Im not too technically minded when it comes to
computer issues.

Ports are things which ships dock in, right? lol


Quote:
A more blunt approach would be to share your files and simply re-create
your site on the virtual XP desktop.
I've done that but I still get no response from the testing server set
up on osX

Remember that OSX is more stable than Windows XP so for production use
OSX or Linux instead of Windows.

ok, Im really just needing to test for functionality, not do any work in
the PC environment.

Thanks,

I'll test a few alternatives out and see what happens.



Reply With Quote
  #6  
Old   
darrel
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:30 AM



Quote:
I do have php/msql running in OSX but when I test the site through
Virtual PC, for compatiblity on the PC, the testing server in OSX is not
found. Does that sound right?
You should be able to set it up. You can't use 'localhost' though. Try using
the IP of your Mac. Someone else can maybe give you more specifics.

Quote:
humm well that sound promising I only really need to get php running.
Doesn't PHP need a web server to run?

Quote:
Yeah, as I said I really didnt know what I was buying into. I just
wanted something for testing position in PC browers for static sites,
now I'm introducing some php stuff I need a liitle bit more.
In hindsight...for next time, the cost of VPC + windows isn't a whole lot
less then getting a $400 PC from Best Buy. ;o)

Quote:
Great I'll whack in aol 9 (lol) and see what happens.


-Darrel




Reply With Quote
  #7  
Old   
Alexandro Colorado
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:33 AM



On Tue, 08 Feb 2005 15:20:32 +0000, Osgood
<notavailable (AT) atthisaddress (DOT) com> wrote:

Quote:
Alexandro Colorado wrote:


Make sure that your 80 port is open to the public that way you
'dial-in' your OSX through your OSX IP. Instead of using
localhost/page.php it would be <myexternalip>/page.php

Youve lost me there Im not too technically minded when it comes to
computer issues.

Ports are things which ships dock in, right? lol
Sorry ports are usually the 'channels' on which your computer connects
depending on the protocol. -- in english Web connects throught port 80
FTP connects for port 21 almsot the same way as your TV electricity
connects through electrical cable and your satelite connects trhought your
coaxial cable.

Anyway you only need to know your external IP? You know how to get that?

Quote:
A more blunt approach would be to share your files and simply
re-create your site on the virtual XP desktop.

I've done that but I still get no response from the testing server set
up on osX

Remember that OSX is more stable than Windows XP so for production use
OSX or Linux instead of Windows.

ok, Im really just needing to test for functionality, not do any work in
the PC environment.
You dont need to modify anything except the address you put on the browser.


Quote:
Thanks,

I'll test a few alternatives out and see what happens.



--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
http://www.interaktonline.com
Tel: 40(21) 312.5312


Reply With Quote
  #8  
Old   
Osgood
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:34 AM



darrel wrote:

Quote:
I do have php/msql running in OSX but when I test the site through
Virtual PC, for compatiblity on the PC, the testing server in OSX is not
found. Does that sound right?


You should be able to set it up. You can't use 'localhost' though. Try using
the IP of your Mac. Someone else can maybe give you more specifics.
I think that's what Alexandro was maybe trying to explain.

Quote:
humm well that sound promising I only really need to get php running.


Doesn't PHP need a web server to run?
lol, sounds right.....I have no idea. Im like a fish out of water when
it comes to this.

Quote:
Yeah, as I said I really didnt know what I was buying into. I just
wanted something for testing position in PC browers for static sites,
now I'm introducing some php stuff I need a liitle bit more.


In hindsight...for next time, the cost of VPC + windows isn't a whole lot
less then getting a $400 PC from Best Buy. ;o)
yup, youre probably right.







Reply With Quote
  #9  
Old   
Osgood
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:37 AM



Alexandro Colorado wrote:


Quote:
Anyway you only need to know your external IP? You know how to get that?
Not really. I go to websites which say your ip has been logged for
security reasons. Is that what Im looking for? A long number beginning
with 172......?

Ok so I have this number what do I do with it then?


Cheers




Reply With Quote
  #10  
Old   
Alexandro Colorado
 
Posts: n/a

Default Re: php on virtual PC - 02-08-2005 , 10:46 AM



On Tue, 08 Feb 2005 15:37:20 +0000, Osgood
<notavailable (AT) atthisaddress (DOT) com> wrote:

Quote:
Alexandro Colorado wrote:


Anyway you only need to know your external IP? You know how to get that?

Not really. I go to websites which say your ip has been logged for
security reasons. Is that what Im looking for? A long number beginning
with 172......?

Ok so I have this number what do I do with it then?


Cheers


yes thats the one an IP number consist on 4 series of numbers (like a
phone number)
usually localhost is the same as this IP number (127.0.0.1)

Your computer IP number should be 172.xxx.xxx.xxx it doesn't matter if it
doesn't use the 3 characters

--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
http://www.interaktonline.com
Tel: 40(21) 312.5312


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.