Hi, I have one remote machine which is running CentOS, right now there is nothing installed in this machine, I want to set up a PHP web server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
I have one remote machine which is running CentOS, right now there is nothing installed in this machine, I want to set up a PHP web server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
If you had to ask this question, I'd suggest that you go with yum. Compile and learn the process first on a local machine (not connected to an external network). Compiling apache/php is not for the faint hearted, IMO.
On Fri, Nov 13, 2009 at 12:03 PM, Sharninder sharninder@gmail.com wrote:
I have one remote machine which is running CentOS, right now there is nothing installed in this machine, I want to set up a PHP web server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
If you had to ask this question, I'd suggest that you go with yum. Compile and learn the process first on a local machine (not connected to an external network). Compiling apache/php is not for the faint hearted, IMO.
Great but what is good Idea I mean what is best, yum or compile... this is just a testing server.
-- Sharninder http://geekyninja.com -- http://mm.glug-bom.org/mailman/listinfo/linuxers
Great but what is good Idea I mean what is best, yum or compile... this is just a testing server.
Well, that depends on what you want to do with it. If you only want to learn php, then use yum. If you want to learn how apache/php compiles then compile from source.
yum will also give you the advantage of keeping things in control when patches and updates come in. If you compile from source you'll have to do all that yourself.
On Fri, Nov 13, 2009 at 12:12 PM, Mukesh Yadav mak.gnu@gmail.com wrote:
On Fri, Nov 13, 2009 at 12:03 PM, Sharninder sharninder@gmail.com wrote: Great but what is good Idea I mean what is best, yum or compile... this is just a testing server.
You can try both under virtual machine and see what you prefer. From what I understand, that will allow you to have a fair comparison too.
thanks guys will give a try.
On Fri, Nov 13, 2009 at 7:14 PM, Mehul Ved mehul.n.ved@gmail.com wrote:
On Fri, Nov 13, 2009 at 12:12 PM, Mukesh Yadav mak.gnu@gmail.com wrote:
On Fri, Nov 13, 2009 at 12:03 PM, Sharninder sharninder@gmail.com
wrote:
Great but what is good Idea I mean what is best, yum or compile... this
is
just a testing server.
You can try both under virtual machine and see what you prefer. From what I understand, that will allow you to have a fair comparison too. -- http://mm.glug-bom.org/mailman/listinfo/linuxers
On 13-Nov-09, at 11:55 AM, Mukesh Yadav wrote:
Hi, I have one remote machine which is running CentOS, right now there is nothing installed in this machine, I want to set up a PHP web server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
You can try one of the tutorials at howtoforge. They have step by step configurations for a lot of server setups.
Regards,
Sameep
www.TuxDVDs.com The Best Online Linux Distro Store
Latest Distros
Ubuntu 9.10 Karmic Koala DVD Repo Set Mandriva 2010 Gentoo 10.0
-- Regards Mukesh Yadav -- http://mm.glug-bom.org/mailman/listinfo/linuxers
Mukesh Yadav wrote:
Hi, I have one remote machine which is running CentOS, right now there is nothing installed in this machine, I want to set up a PHP web server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
Hey, If you have a normal installed CentOS installation, just go ahead and do the following
1. Install Apache
yum -y install httpd
2. Install PHP yum -y install php php-cli php-mysql
once the above is done
start Apache (httpd)
service httpd start
you can go to the following directory to upload all your php files
cd /var/www/html/
for the default file name it "index.php", so when you type
http://%5Bip address of your server]/
it will open the above "index.php" file,
if you type
http://%5Bip address of your server]/myfile.php
then it will run/open the file myfile.php in the directory "/var/www/html"
cheers RB
hey thanks
On Fri, Nov 13, 2009 at 10:29 PM, Ripunjay Bararia ripunjay@hns.net.inwrote:
Mukesh Yadav wrote:
Hi, I have one remote machine which is running CentOS, right now there is nothing installed in this machine, I want to set up a PHP web server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
Hey, If you have a normal installed CentOS installation, just go ahead and do the following
- Install Apache
yum -y install httpd
- Install PHP
yum -y install php php-cli php-mysql
once the above is done
start Apache (httpd)
service httpd start
you can go to the following directory to upload all your php files
cd /var/www/html/
for the default file name it "index.php", so when you type
http://%5Bip address of your server]/
it will open the above "index.php" file,
if you type
http://%5Bip address of your server]/myfile.php
then it will run/open the file myfile.php in the directory "/var/www/html"
cheers RB
On Friday 13 Nov 2009, Mukesh Yadav wrote:
server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
Always mention version no of the distro for relevant/focused responses. There is version 3.x, 4.x, and 5.x (latest 5.4).
In all of the above incarnations, CentOS has a decent LAMP stack that works pretty much out of the box.
Take the compilation route if you need the latest versions of the respective packages.
Also, you mention the machine is "remote" and I am assuming it is visible on the 'Net. Therefore, ensure that you apply, at a minimum, all the security related updates from CentOS.
Hey, Thanks arun my machine is CentOS 5.4 which is latest. I installed through yum . thanks you
On 11/13/09, Arun Khan knura@yahoo.com wrote:
On Friday 13 Nov 2009, Mukesh Yadav wrote:
server. I tried googling but now i'm confused how I go about it should I compile everything or I install is through yum. if you guys can guide me that will be great
Always mention version no of the distro for relevant/focused responses. There is version 3.x, 4.x, and 5.x (latest 5.4).
In all of the above incarnations, CentOS has a decent LAMP stack that works pretty much out of the box.
Take the compilation route if you need the latest versions of the respective packages.
Also, you mention the machine is "remote" and I am assuming it is visible on the 'Net. Therefore, ensure that you apply, at a minimum, all the security related updates from CentOS.
-- Arun Khan -- http://mm.glug-bom.org/mailman/listinfo/linuxers