06-21-2014
You can use the Apache2 DocumentRoot directive to set the document root.
Perhaps you should search on line and find a basic working example of setting up your Apache2 config files?
Most Linux distributions have easy step-by-step LAMP set up instructions. Which Linux distribution are you using?
This User Gave Thanks to Neo For This Post:
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello!
My web host has the public_html permission on my account set to 750.
1. Does this setting permit the world to use my submission forms
(contained within contact.html and purchase_order.html)?
2. The "0" entry looks like it blocks the public from conducting all activity
on my site.... (6 Replies)
Discussion started by: Texan
6 Replies
2. UNIX for Advanced & Expert Users
I have several live websites running in the /var/www/XXXX directory. Initially when I did the Debian install I limited the web directory to 6GB. I am now outgrowing that limit. Question is:
Is there a simple way to add space to the web directory???
I'd hate to have to redo the whole... (3 Replies)
Discussion started by: seagonus
3 Replies
3. Web Development
Hi, first post. I have no Linux experience. I have an e-friend that set me up a VPS and my website with Apache and FTP access so I could upload my files the way I do it regularly with my shared hosting. The OS in the VPS is Fedora by the way. Now the thing is:
http ://www.mydomain.com presents... (0 Replies)
Discussion started by: JPA
0 Replies
4. UNIX for Dummies Questions & Answers
what should be the permissions of the folder var/www in my ubuntu ?
I need it to be safe and at the same time I need ftp users to be able to edit it.
I was wondering if I should create a group with all permissions and add ftp users to this group in unix.
what's the standard way to do it ?... (4 Replies)
Discussion started by: aneuryzma
4 Replies
5. UNIX for Dummies Questions & Answers
I have problem giving user access to his public_html directory.
While when I am logged as root I can access my files by going to
www.myserver.com/file.htmlwhere file.html is actually on this path...
var/www/file.htmlBut when user tries to access his file.html on this path....
~user/file.html it... (10 Replies)
Discussion started by: joker40
10 Replies
6. UNIX for Dummies Questions & Answers
hi
i need somme help to protect directory in debian with user and pass
var/www
thank's (6 Replies)
Discussion started by: azzeddine2005
6 Replies
7. Debian
Hi all.
I appologise this is my first post, I will gladly have a further look around to see if this has been posted elsewhere, but so far it has not, or it doesnt quite explain in full what I need. If anyone here can help me out, I would really appreciate this. I want to make sure I do this... (1 Reply)
Discussion started by: Pinkfloyd
1 Replies
8. Web Development
4000 node Botnet derived from PHP superglobal $_SERVER mapped with Google Maps Engine.
https://www.unix.com/members/1-albums112-picture640.png
total ips 54945
unique ips 4000
unique countries 64 (2 Replies)
Discussion started by: Neo
2 Replies
LEARN ABOUT SUSE
apache2::build
Apache2::Build(3) User Contributed Perl Documentation Apache2::Build(3)
NAME
Apache2::Build - Methods for locating and parsing bits of Apache source code
SYNOPSIS
use Apache2::Build ();
my $build = Apache2::Build->new;
# rebuild mod_perl with build opts from the previous build
% cd modperl-2.0
% perl -MApache2::Build -e rebuild
DESCRIPTION
This module provides methods for locating and parsing bits of Apache source code.
Since mod_perl remembers what build options were used to build it, you can use this knowledge to rebuild it using the same options. Simply
chdir to the mod_perl source directory and run:
% cd modperl-2.0
% perl -MApache2::Build -e rebuild
If you want to rebuild not yet installed, but already built mod_perl, run from its root directory:
% perl -Ilib -MApache2::Build -e rebuild
METHODS
new Create an object blessed into the Apache2::Build class.
my $build = Apache2::Build->new;
dir Top level directory where source files are located.
my $dir = $build->dir;
-d $dir or die "can't stat $dir $!
";
find
Searches for apache source directories, return a list of those found.
Example:
for my $dir ($build->find) {
my $yn = prompt "Configure with $dir ?", "y";
...
}
inc Print include paths for MakeMaker's INC argument to "WriteMakefile".
Example:
use ExtUtils::MakeMaker;
use Apache2::Build ();
WriteMakefile(
'NAME' => 'Apache2::Module',
'VERSION' => '0.01',
'INC' => Apache2::Build->new->inc,
);
module_magic_number
Return the MODULE_MAGIC_NUMBER defined in the apache source.
Example:
my $mmn = $build->module_magic_number;
httpd_version
Return the server version.
Example:
my $v = $build->httpd_version;
otherldflags
Return other ld flags for MakeMaker's dynamic_lib argument to "WriteMakefile". This might be needed on systems like AIX that need
special flags to the linker to be able to reference mod_perl or httpd symbols.
Example:
use ExtUtils::MakeMaker;
use Apache2::Build ();
WriteMakefile(
'NAME' => 'Apache2::Module',
'VERSION' => '0.01',
'INC' => Apache2::Build->new->inc,
'dynamic_lib' => {
'OTHERLDFLAGS' => Apache2::Build->new->otherldflags,
},
);
AUTHOR
Doug MacEachern
perl v5.12.1 2008-03-10 Apache2::Build(3)