Jump to content

Where is /httpd_source_tree_root ?


greenace92

Recommended Posts

I'm following Apache's directions to install apache and they say to

 

"...unpack them into /httpd_source_tree_root/srclib/apr"

 

and I'm wondering, since even the folder /etc/apache2 doesn't even exist yet, does that mean that the above directory doesn't exist yet? Was that implied? Am I supposed to create that directory? If so, what is the starting point or is the initial / literally the root directory?

 

quick question: when downloading source .zip files or tar.gz whatever, should I put these in a folder outside of the folder where it will be extracted into? OR does that not matter? It's probably a preference thing right? It's not like I have a GUI with icons to see clutter.

 

another question: when downloading all of the aspects of apache, how should I structure my directory, should everything stem from /etc/apache2 ?

 

in the meantime I will reinstall a vps with the older os as they have apache preinstalled and I'll look at their directory structure as a reference.

 

thanks for any help

 

Here is the link I'm following:

 

https://httpd.apache.org/docs/2.4/install.html

 

specifically this paragraph:

 

APR and APR-Util Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into /httpd_source_tree_root/srclib/apr and /httpd_source_tree_root/srclib/apr-util (be sure the directory names do not have version numbers; for example, the APR distribution must be under /httpd_source_tree_root/srclib/apr/) and use ./configure's --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util.

Edited by greenace92
Link to comment
Share on other sites

You can install Apache on Linux with a single command.

 

apt (Debian, Ubuntu)

sudo apt-get install -y apache2
yum (CentOS, Fedora, RHEL)

sudo yum install -y httpd
There's no need to compile it yourself unless you know what you're doing. Edited by scootstah
Link to comment
Share on other sites

You can install Apache on Linux with a single command.

 

apt (Debian, Ubuntu)

sudo apt-get install -y apache2
yum (CentOS, Fedora, RHEL)

sudo yum install -y httpd
There's no need to compile it yourself unless you know what you're doing.

 

 

Well I'll give that a shot, hopefully "it" chooses the latest version.

I'm wondering if this will also install openssl as a "prerequisite"

Yeah it installed, wow this was so much easier, I don't know what prompted me to think that this was not the case.

Thanks

 

Latest is 2.4.17 default installed 2.4.10 wonder if that has to do with stability or should I have specified which version to install?

 

Tried to install latest by doing

apt-get install Apache2=2.4.17-deb8u3

Says "Version '2.4.17-deb8ue' for 'apache2' not found.

 

Maybe 2.4.10 is the best I can get at this point, not sure how detrimental that .17 is.

Edited by greenace92
Link to comment
Share on other sites

Linux distributions maintain their own packages in their own repositories. You will never have the latest version when using default repositories. When the distro maintainers decide that a package version is stable enough and fit for distribution, it will be updated in the repository.

 

You don't need to bother trying to achieve the latest hot-off-the-press version of software on Linux. If that's what you wanted, you would probably have to compile from source at that point, and then continue doing that every single day for any new releases. Usually you can find newer major versions maintained in third-party repositories, such as for PHP7, which is very easy to install.

 

But if you just want Apache 2.4, use whatever the distro gives you. If you just want PHP 5.6, use whatever the distro gives you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.