xampp |
xampp |
![]()
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. |
|
|
![]() |
![]()
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. |
|
|
![]()
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 1,574 Joined: Aug 2007 Member No: 555,438 ![]() |
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... :/ |
|
|
![]()
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.
|
|
|
![]()
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 ![]() |
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.) |
|
|
![]()
Post
#6
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 1,574 Joined: Aug 2007 Member No: 555,438 ![]() |
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 (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. |
|
|
![]()
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 |
|
|
![]()
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. |
|
|
![]()
Post
#9
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 1,574 Joined: Aug 2007 Member No: 555,438 ![]() |
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. |
|
|
![]()
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.
|
|
|
![]()
Post
#11
|
|
![]() llorT rioneS ![]() ![]() ![]() ![]() ![]() Group: Human Posts: 641 Joined: Mar 2009 Member No: 717,869 ![]() |
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 |
|
|
![]()
Post
#12
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 1,574 Joined: Aug 2007 Member No: 555,438 ![]() |
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. |
|
|
![]()
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. |
|
|
![]()
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...
|
|
|
![]()
Post
#15
|
|
![]() llorT rioneS ![]() ![]() ![]() ![]() ![]() Group: Human Posts: 641 Joined: Mar 2009 Member No: 717,869 ![]() |
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. |
|
|
![]()
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.
|
|
|
![]()
Post
#17
|
|
![]() llorT rioneS ![]() ![]() ![]() ![]() ![]() Group: Human Posts: 641 Joined: Mar 2009 Member No: 717,869 ![]() |
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. |
|
|
![]()
Post
#18
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 ![]() |
|
|
|
![]()
Post
#19
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 8,629 Joined: Jan 2007 Member No: 498,468 ![]() |
Topic Closed
|
|
|
![]() ![]() |