FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
xampp: an easy web development server
Goto page 1, 2  Next
 
Post new topic   Reply to topic    BLAG Forum Index -> open discussion
View previous topic :: View next topic  
Author Message
NeoNecro
PostPosted: Fri Feb 09, 2007 4:20 pm    Post subject: xampp: an easy web development server Reply with quote

Hey,

I stumbled upon this when I was looking for an easy way to setup a server under linux with mysql and php.

It's an easy webserver that took me about 5minutes to have it running (download time included). On the xampp site there's a good installation guide. (Also read the security part!)

I know that's setting up mysql, apache+php4,5 works just a good or even better, but when you just want to do some php development this is just great!

Just wanted to share this in case someone was looking for something like this.

jebba
PostPosted: Sat Feb 10, 2007 2:41 am    Post subject: Reply with quote

I can do that in one line! ;)

Code:
apt-get install httpd mysql-server php

NeoNecro
PostPosted: Sat Feb 10, 2007 10:19 am    Post subject: Reply with quote

jebba wrote:
I can do that in one line! ;)

Code:
apt-get install httpd mysql-server php


And that give's you a fully functional server? Then it realy is quicker :-D

jebba
PostPosted: Sat Feb 10, 2007 1:44 pm    Post subject: Reply with quote

NeoNecro wrote:
jebba wrote:
I can do that in one line! ;)

Code:
apt-get install httpd mysql-server php


And that give's you a fully functional server? Then it realy is quicker :-D


Yes, it gives you a fully functional server once you reboot. Or you can start them immediately with:

Code:
/etc/init.d/mysqld start
/etc/init.d/httpd start


Pop your html/php files into /var/www/html

Config stuff for apache if you want to make changes is in /etc/httpd/

-Jeff

NeoNecro
PostPosted: Sat Feb 10, 2007 3:54 pm    Post subject: Reply with quote

So, php and stuff will just work out of the box?

Thanks for the tip, I will try it later today. It's probably better than xampp, because you get easy updates.

jebba
PostPosted: Sat Feb 10, 2007 4:11 pm    Post subject: Reply with quote

NeoNecro wrote:
So, php and stuff will just work out of the box?


Yes.

noldrin
PostPosted: Sat Feb 10, 2007 11:32 pm    Post subject: Reply with quote

NeoNecro wrote:
So, php and stuff will just work out of the box?


In general, yes. Some PHP stuff could require some tinkering. Making PHP administer Postgresql for instance.

timl
PostPosted: Sat May 05, 2007 7:16 am    Post subject: Reply with quote

I have to admit I am interested. Any ideas on the following:

I set apache and mysql up as processes:

[tim@brag cms]$ ps -e | grep htt
2835 ? 00:00:00 httpd
2837 ? 00:00:00 httpd
2838 ? 00:00:00 httpd
2839 ? 00:00:00 httpd
2840 ? 00:00:00 httpd
2841 ? 00:00:00 httpd
2842 ? 00:00:00 httpd
2843 ? 00:00:00 httpd
2844 ? 00:00:00 httpd
[tim@brag cms]$ ps -e | grep mys
2772 pts/1 00:00:00 mysqld_safe
2808 pts/1 00:00:36 mysqld

and then I downloaded the relevant files for a product called "cms made simple". I have used cms before but on a server with all the relevant tools installed.

When I try to access the index.php file (as per the instructions) on my system, firefox simply tries to open the file via an editor rather than rendering the install screen.

So, I guess I need to link apache/mysql/php together and to the web browser. Any suggestions on how to do this?

jebba
PostPosted: Sun May 06, 2007 8:32 pm    Post subject: Reply with quote

Did you:

Code:
apt-get update
apt-get install php php-mysql

timl
PostPosted: Tue May 08, 2007 10:00 am    Post subject: Reply with quote

I think I had all the relevant tools installed but previously the files were sitting in my home directory. Trawling round the net I gather they should be in /var/www/html Does this sound right?

so the file I want to access is /var/www/html/cms/index.php, what do I enter at the browser prompt?

I have tried various permutations of http://localhost/cms/index.php with no joy

jebba
PostPosted: Tue May 08, 2007 1:42 pm    Post subject: Reply with quote

You would go to http://localhost/cms/index.php

The firewall may still be running. So you could make it to allow that port or just turn it off:

Code:
/etc/init.d/iptables stop

timl
PostPosted: Wed May 16, 2007 8:17 am    Post subject: Reply with quote

got there. It took a bit of time but I am going now. A few things I noted:

if you don't use /var/www/html to store the scripts then you have to know what you are doing
open up www/html access in the firewall
set protections correctly for index.php (eg. 777)

the last one was an obvious one which wasn't too obvious to me.

Thanks all

vx
PostPosted: Sat Aug 02, 2008 5:34 pm    Post subject: Reply with quote

jebba wrote:

Code:
/etc/init.d/mysqld start
/etc/init.d/httpd start

Pop your html/php files into /var/www/html


and how to make run the localhost when BLAG starts?

jebba
PostPosted: Sat Aug 02, 2008 5:42 pm    Post subject: Reply with quote

v0 wrote:
jebba wrote:

Code:
/etc/init.d/mysqld start
/etc/init.d/httpd start

Pop your html/php files into /var/www/html


and how to make run the localhost when BLAG starts?


If I understand correctly:

Code:
/sbin/chkconfig --add mysqld
/sbin/chkconfig --add httpd


But sometimes that seems to get overwritten on updates, so perhaps also run:

Code:
/sbin/chkconfig --level 35 mysqld on
/sbin/chkconfig --level 35 httpd on

vx
PostPosted: Mon Aug 04, 2008 1:27 am    Post subject: Reply with quote

yeah, it works :) thanks
Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> open discussion Goto page 1, 2  Next
Page 1 of 2

Protected by Anti-Spam ACP