Log In · Register

 
 
Closed TopicStart new topic
xampp
Maccabee
post May 20 2009, 01:05 PM
Post #1


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



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.
 
heyo-captain-jac...
post May 20 2009, 01:10 PM
Post #2


/人◕‿‿◕人\
*******

Group: Official Member
Posts: 8,283
Joined: Dec 2007
Member No: 602,927



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
post May 20 2009, 01:37 PM
Post #3


Senior Member
******

Group: Official Member
Posts: 1,574
Joined: Aug 2007
Member No: 555,438



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
post May 20 2009, 01:51 PM
Post #4


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



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
post May 20 2009, 02:15 PM
Post #5


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



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
post May 20 2009, 02:30 PM
Post #6


Senior Member
******

Group: Official Member
Posts: 1,574
Joined: Aug 2007
Member No: 555,438



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
post May 20 2009, 02:38 PM
Post #7


llorT rioneS
*****

Group: Human
Posts: 641
Joined: Mar 2009
Member No: 717,869



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
post May 20 2009, 02:39 PM
Post #8


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



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
post May 20 2009, 02:47 PM
Post #9


Senior Member
******

Group: Official Member
Posts: 1,574
Joined: Aug 2007
Member No: 555,438



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
post May 20 2009, 03:24 PM
Post #10


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



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
post May 20 2009, 03:36 PM
Post #11


llorT rioneS
*****

Group: Human
Posts: 641
Joined: Mar 2009
Member No: 717,869



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
post May 20 2009, 03:49 PM
Post #12


Senior Member
******

Group: Official Member
Posts: 1,574
Joined: Aug 2007
Member No: 555,438



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
post May 20 2009, 03:56 PM
Post #13


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



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
post May 20 2009, 04:26 PM
Post #14


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



umm I installed wamp but localhost phpmyadmin and SQlitemanager all say failed to connect when I click them...
 
Deospeon
post May 20 2009, 04:28 PM
Post #15


llorT rioneS
*****

Group: Human
Posts: 641
Joined: Mar 2009
Member No: 717,869



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
post May 20 2009, 05:27 PM
Post #16


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



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
post May 20 2009, 05:30 PM
Post #17


llorT rioneS
*****

Group: Human
Posts: 641
Joined: Mar 2009
Member No: 717,869



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
post May 20 2009, 05:42 PM
Post #18


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



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

Thank you dearest biggrin.gif
 
manny-the-dino
post May 20 2009, 07:15 PM
Post #19


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Topic Closed
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: