Help - Search - Members - Calendar
Full Version: xampp
Forums > Community Center > Technology
Maccabee
Theres probably other threads like this but how do I get xampp to work? And I'm not trying to setup a web server. Just a local host to test out my php websites cause I dont want to have to do it all on the server.

I just want to be able to take the whole site off the server ans run it on my computr until im ready to go live. Links or tutorials would be great.
wwwww
If you want a good and easy web server, try Abyss Web Server X1. I use the enterprise version, X2, and it's one of the easiest things I've ever used. Good documentation, straightforward interface, plenty of online help, etc.

And it typically uses no more than a meg of RAM, so pretty much any system can run it.
Uronacid
QUOTE(jcp @ May 20 2009, 02:05 PM) *
Theres probably other threads like this but how do I get xampp to work? And I'm not trying to setup a web server. Just a local host to test out my php websites cause I dont want to have to do it all on the server.

I just want to be able to take the whole site off the server ans run it on my computr until im ready to go live. Links or tutorials would be great.


Man, you can really Google this for yourself. If you're just getting started then I would use Apache and PHP5... :/
Maccabee
ive tried. and cj i dont want a webserver. Like i dont want to a ip address on the web. Basically a better question would have been how can I run php files on my computer? Not on the server. I have googled everywhere but I havent even found instructions on where you put files.
mipadi
QUOTE(jcp @ May 20 2009, 02:51 PM) *
ive tried. and cj i dont want a webserver. Like i dont want to a ip address on the web. Basically a better question would have been how can I run php files on my computer? Not on the server. I have googled everywhere but I havent even found instructions on where you put files.

I think on Apache, the "root" directory is in /var/www/htdocs or something like that (someone else can correct me if I'm wrong. You basically put the files you want to serve in that root directory, fire up the web server, open a browser window, and go to http://localhost to interact with your website.

If you want to use PHP, you may have to enable/setup PHP (don't think Apache does that by default), although if you installed a distribution like XAMPP, it's probably already set up.

(P.S. If you're using Windows, I don't know what your root directory for Apache is.)
Uronacid
QUOTE(jcp @ May 20 2009, 02:51 PM) *
ive tried. and cj i dont want a webserver. Like i dont want to a ip address on the web. Basically a better question would have been how can I run php files on my computer? Not on the server. I have googled everywhere but I havent even found instructions on where you put files.


You can't run PHP scripts without a web server. You have to turn your PC into a web server. Turning your computer into a web server isn't a big deal. It's actually very simple. Like "ButtSex" said, PHP5 and Apache don't take up a large percentage of your system resources. It shouldn't be a problem if you load the software onto your PC.

1. Install Apache on your computer
2. Install PHP5 on your computer
3. Configure Them
4. Start launching your php scripts

I would purchase this book if I were you. It's one of the best beginners guides I have ever read to any programming language. If you're serious about learning PHP then this is one of the best 20.00 investments you could ever make:
http://www.amazon.com/World-Third-Visual-Q...7760&sr=1-2

QUOTE(mipadi @ May 20 2009, 03:15 PM) *
(P.S. If you're using Windows, I don't know what your root directory for Apache is.)


"C:\Program Files\Apache Software Foundation\Apache2.2" is the default root dir for windows. :P I've worked on the software from both Ubuntu and Vista.
Deospeon
If your using Windows, just use WAMP. simple.
XAMPP is not my thing.

http://deospeon.blogspot.com/2008/11/testi...ts-on-your.html
mipadi
You might also want to try something other than Apache + MySQL, both of which are really beastly. lighttpd is a great webserver that has a smaller footprint, is easy to set up (even on Windows, which I suppose you are using), and has great support for PHP builtin. If you're just experimenting, you could also use SQLite instead of MySQL, which is a server-less implementation of SQL.

This is actually a big reason why I like writing websites in Rails or Django: both come with simple webservers that you can fire up when needed, and shut down easily enough. But I digress.
Uronacid
QUOTE(mipadi @ May 20 2009, 03:39 PM) *
You might also want to try something other than Apache + MySQL, both of which are really beastly. lighttpd is a great webserver that has a smaller footprint, is easy to set up (even on Windows, which I suppose you are using), and has great support for PHP builtin. If you're just experimenting, you could also use SQLite instead of MySQL, which is a server-less implementation of SQL.

This is actually a big reason why I like writing websites in Rails or Django: both come with simple webservers that you can fire up when needed, and shut down easily enough. But I digress.


Lighttpd is good as well. I only suggested Apache because it's very very easy to setup on windows. It's a good place to start learning about web servers. When you get into it, you'll want to move to a faster/more-efficient web server like lighttpd or nginx.

You just want something to test scripts you write. So, In this case I don't see a reason for you to worry about the type of web server you use as you're not looking to host. The only one who is going to connect to your web server is you. Apache and PHP5 will be the easiest thing for you to understand and setup on the windows platform. If you have a thirst to learn more about web servers and what makes them efficient then look into it after you have a basic understanding of how they work. Get your hands dirty.
Maccabee
Well it seems like for me its just between wamp and getting apache and php. Wamp seems a little more noobish so im downloading the apache and php right now. Hopefully I wont screw anything up.
Deospeon
QUOTE(jcp @ May 21 2009, 01:24 AM) *
Well it seems like for me its just between wamp and getting apache and php. Wamp seems a little more noobish so im downloading the apache and php right now. Hopefully I wont screw anything up.


mixing Apache with PHP is somewhat time wasting.
Especially mixing MySQL with Apache and PHP.
Then to do dynamic scipts, you need teh GD Library etc.

Get WAMP, more useful.
Just install it and you get Apache, PHP, MySQL, PHPMyAdmin and so much.

PS: You're gay
Uronacid
QUOTE(Deospeon @ May 20 2009, 04:36 PM) *
mixing Apache with PHP is somewhat time wasting.
Especially mixing MySQL with Apache and PHP.
Then to do dynamic scipts, you need teh GD Library etc.

Get WAMP, more useful.
Just install it and you get Apache, PHP, MySQL, PHPMyAdmin and so much.

PS: You're gay


You could do that, however you're missing out on a valuable learning experience. I feel like it's better to involve yourself in the configuration files so you get a feel for how it all works. That way you can quickly grasp more powerful web servers like lighttpd or nginx.
Maccabee
Ok well nothing is working.

Xamp didnt install properly and it didnt work. The unistall also didnt work. Apache had an error and I think php didnt. Im just gonna try and delete all those programs and use wamp. And hopefully it will work, and nothing will mess up. Ill get my learning experience later. Apparently all the web server programs hat UAC in vista.
And so do i.
Maccabee
umm I installed wamp but localhost phpmyadmin and SQlitemanager all say failed to connect when I click them...
Deospeon
QUOTE(jcp @ May 21 2009, 02:26 AM) *
umm I installed wamp but localhost phpmyadmin and SQlitemanager all say failed to connect when I click them...


LOL really?

http://www.youtube.com/watch?v=bg1WElJJOXk&fmt=22

Heres something you can start with.
I used this to help Xnxx, sadly, they wanted teens too.
Maccabee
WOO HOO! It working! Not sure why localhost wasnt working but if I go to http://127.0.0.1/ it works so I put all the files in www and go there and it works just like a website with php! I have been trying to do this for a few years now. Well not really. I tried once 2 years ago and I tried again now.
Deospeon
QUOTE(jcp @ May 21 2009, 03:27 AM) *
WOO HOO! It working! Not sure why localhost wasnt working but if I go to http://127.0.0.1/ it works so I put all the files in www and go there and it works just like a website with php! I have been trying to do this for a few years now. Well not really. I tried once 2 years ago and I tried again now.

fail.
Maccabee
QUOTE(Deospeon @ May 20 2009, 05:30 PM) *
fail.

Thank you dearest biggrin.gif
manny-the-dino
Topic Closed
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.