Jump to content



Photo

How to install a simple HTTPD with PHP server - Posted By jh96


  • Please log in to reply
2 replies to this topic

#1 Cryo Kinesis

Cryo Kinesis

    Haphost Staff

  • Moderators
  • 128 posts
  • LocationGridania, Eorzea

Posted 05 August 2014 - 05:23 PM

Since Apache (httpd) is automatically compatible with PHP, we just need to install PHP as well as Httpd (should be installed by default, it doesn't hurt to add a extra install command just incase it isn't)

Simply login to your VPS at SSH (PuTTy or some other SSH device) and type "

yum install httpd php
" if that doesn't work, try "
yum install httpd php5
"
I haven't checked which command works yet because I didn't get my VPS yet, but it usually is the first one.

Once done, you need to restart HTTPd (usually it's installed already so just to keep this simple we'll include this step)
service httpd restart

After httpd is restarted, you want to set it so it automatically starts up.
You can do this the advanced way (init.d for it to make sure to come up) or the easy way.
I'm going to show you the easy way.
Simply run the following command:
[chkconfig httpd on

Once that's run you can connect via sftp (always on it's basically FTP but slower and installed by default, I'll make a FTP tutorial later when I get the VPS.)
Simply enter your VPS's IP in a FTP client and your root details and for the port put in 22

Now navigate to
/var/www/html
and upload your files.

This was off the top of my head, I'll revise it later but this should be accurate.
  • cloudfast likes this

Cryo%20Kinesis%20Haphost%20Sig2.png


#2 guineapig

guineapig

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 August 2014 - 07:17 AM

Hello Cryo thanks it works like a Charm, can you also teach how to create Virtual Hosts and also point a domain manually to the server ?



#3 Rishabh Jain

Rishabh Jain

    Member

  • Members
  • PipPip
  • 10 posts

Posted 28 August 2014 - 07:41 AM

Hello Cryo thanks it works like a Charm, can you also teach how to create Virtual Hosts and also point a domain manually to the server ?

try this http://forum.haphost...e-to-a-records/






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users