WebFaction
Community site: login faq

Greetings.

I want to install a private instance of apache2 and php within my custom app folder (webapps/customproject/) and I'm wonder what the best way to go about doing this is.

Could it be as simple as navigating to webapps/customproject/ and then writing the following?

yum install httpd

and

yum install php

For some reason I feel like this is too simple. For example, how would 'yum' know to install all the required files in my "customproject" folder rather than in /etc/ which is perhaps more customary on a Cent-OS machine.

Am I wrong to be more or less following this tutorial: http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-centos-6.2-lamp

Thanks for your help -- I'm rather new to webfaction and the idea of installing separate instances of apache, so any and all help is appreciated.

asked 09 Jan '14, 19:03

Geoff16W
124
accept rate: 0%


No, it's not that simple, since installing packages with yum requires root access, which you do not have.

If you simply want to run a private Apache process, you can run an instance of our shared Apache installation as a private process. Instructions are available here: Installing a private instance of the shared apache

If you really want to build a full private Apache+PHP stack, then you'll have to build it from source. We don't have a step-by-step procedure, but generic instructions are available here: Installing Software from Source.

permanent link

answered 09 Jan '14, 23:15

seanf
12.2k41836
accept rate: 37%

Many thanks. That helps a lot :)

(09 Jan '14, 23:24) Geoff16W
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×25
×21

question asked: 09 Jan '14, 19:03

question was seen: 2,575 times

last updated: 09 Jan '14, 23:24

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM