
|
View Full Version : Can i run my ow server to test php scripts?
mikey1090 05-01-2006, 05:37 AM I have an old windows 98 pc upstairs.
i sometimes code my html websites up there, but now i need to use php.
I was wondering if i could install a webserver upstairs, just to use as local host to build my website.
I have installed apache on this pc BUT i dont have the internet upstaitrs.
I was wondering if i could install a webserver upstairs, without the internet (download server here, put it on my pen drive and install it upstairs)
Can i install a webserver with no internet?
If so, can you reccomend how i go about it, which server, do i use a premade webserver, or install apache, php, mysql myself.
Thanks,
mike
CableGuy 05-01-2006, 09:44 AM I don't know if 98 would have a problem with it or not but I used XAmp (I think that's it) for this same purpose a while back. It's an all in one rollup of what you would need for testing.
On the downside, you may not end up with something that matches your live site perfectly.
On the upside, it's cake to get running.
Mark
EDIT: I knew I had the link somewhere.
apachefriends.org/en/index.html
dkitchen 05-01-2006, 10:19 AM Yup that will work fine, many companies run internal intranet servers which aren't online if you think about it :).
Dan
freebsdmike 05-01-2006, 10:31 AM That should work just fine. I have a little lab in my house consisting of 6 different computers all networked to gather for testing various things and they are exposed to the internet at all. 2 are being use to test different web apps.
theonlyone 05-01-2006, 11:35 AM you could always downlaiod the ISO's for linux (if thats what you production server runs) and format teh w98 machine to your flavor of linux run testing that way
I have FC3 run on 3 old i486 machines and its slow but it does the trick
mikey1090 05-01-2006, 01:20 PM thanks for the help, i have downloaded it.
Will test it when i find a way to transfer it upstairs lol
theonlyone 05-01-2006, 01:22 PM Are you talking about the ISo's?
If so you need to burn them to CD's and laod it just like you would load windows for the most part
mikey1090 05-01-2006, 01:23 PM im on to it :D
mikey1090 05-02-2006, 12:51 PM ok, i burnt the server to disk, and installed it on my other pc.
When i type http://localhost, it says page cannot be displayed, after i have pressed work offline.
I have no internet connection on there you see.
I dont know what to do. I think apache is running, but i cant get any scripts to work through the server!
Can anyone help me?
Mike
theonlyone 05-02-2006, 06:08 PM You have to find out what IP the server has
"localhost" is what ever machine you are at
If you type localhost from you windows machineit look on that machine instead of the server
Go to you server and login to teh command line and type ip addr
This will tell you what IP that machine has
it will read something like this
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:14:85:c5:88:19 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.102/24 brd 192.168.1.255 scope global eth0
inet6 fe80::214:85ff:fec5:8819/64 scope link
valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
that is on the assumtion that 192.168.1.102 is the IP of the server
Then after you find out what your IP is go downstairs to your windows machine and type that ip in the browser
That whould be that
You did setup the server for DCHP right?
If not i can help you with that as well
mikey1090 05-03-2006, 03:29 AM the server is not online, no internet up there.
When i tryed to start apache, it said the was a problem with starting "Listen" or something, from a conf file
Plz help me!
mike
Energizer Bunny 05-03-2006, 04:09 AM Hmm did you happen to install some firewall (even u dont have internet )? As it might be blocking but.
But i never heard of Xamp but i have always used "uniserve" its a beauty, it has php,webserver,if i remember even mysql admin and python and what not.
I dont think uniserve is available for downloads anymore but try looking for it on google you might find it, its easy on machines and perfect for testing, i modded my phpbb forums using uniserve only on my machine.
Cheers
Chadha 05-03-2006, 08:51 AM Hello,
I am not sure about windows 98 but you can tryinstalling the latest release of XAMPP that includes PHP, Apache, MySQL, FileZilla FTP Server (all in one).
If your machine upstairs doesn't have a net connection, you can do the development there and upload the files to some internet server for testing using pen drive transfer between both machines.
mikey1090 05-03-2006, 10:47 AM thats exactly what i did, but i cant get apache to run, some of its conf settings in the httpd file are creating errors, so apache doesnt start.
Jimmeh 05-06-2006, 07:49 AM have you modified the conf files at all? because it should work straight away without any interference.
Just reinstall it.
mwaseem 05-06-2006, 02:16 PM Why not migrate from stone age to the world of Windows 2003 or even to XP?
riverpast 05-06-2006, 02:31 PM PHP for Windows works fine.
Install PHP, then use PHP ExpertEdit, which has a debugger (which includes a web server) and you can run the code from the IDE.
|