Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
httpd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
httpd
Commits
b2a4894d
Commit
b2a4894d
authored
Mar 24, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
0 deletions
+84
-0
Makefile
Makefile
+63
-0
httpd-2.4.26-blfs_layout-1.patch
httpd-2.4.26-blfs_layout-1.patch
+0
-0
httpd-2.4.26.tar.bz2
httpd-2.4.26.tar.bz2
+0
-0
httpd.groups
httpd.groups
+21
-0
No files found.
Makefile
0 → 100644
View file @
b2a4894d
all
:
httpd-service
rm
/etc/passwd
mv
-v
/data/etc/passwd /etc/passwd
rm
/etc/group
mv
-v
/data/etc/group /etc/group
rm
/etc/shadow
mv
-v
/data/etc/shadow /etc/shadow
rm
/etc/gshadow
mv
-v
/data/etc/gshadow /etc/gshadow
groupadd
-g
25 apache
useradd
-c
"Apache Server"
-d
/srv/www
-g
apache
-s
/bin/false
-u
25 apache
rm
/etc/passwd-
rm
/etc/group-
rm
/etc/shadow-
rm
/etc/gshadow-
mv
-v
/etc/passwd /data/etc/passwd
ln
-sv
/data/etc/passwd /etc/passwd
mv
-v
/etc/group /data/etc/group
ln
-sv
/data/etc/group /etc/group
mv
-v
/etc/shadow /data/etc/shadow
ln
-sv
/data/etc/shadow /etc/shadow
mv
-v
/etc/gshadow /data/etc/gshadow
ln
-sv
/data/etc/gshadow /etc/gshadow
tar
xf httpd-2.4.26.tar.bz2
patch
-Np1
-d
httpd-2.4.26 < httpd-2.4.26-blfs_layout-1.patch
cd
httpd-2.4.26
&&
sed
'/dir.*CFG_PREFIX/s@^@#@'
-i
support/apxs.in
cd
httpd-2.4.26
&&
./configure
--enable-authnz-fcgi
--enable-layout
=
BLFS
--enable-mods-shared
=
"all cgi"
--enable-mpms-shared
=
all
--enable-suexec
=
shared
--with-apr
=
/usr/bin/apr-1-config
--with-apr-util
=
/usr/bin/apu-1-config
--with-suexec-bin
=
/usr/lib/httpd/suexec
--with-suexec-caller
=
apache
--with-suexec-docroot
=
/srv/www
--with-suexec-logfile
=
/var/log/httpd/suexec.log
--with-suexec-uidmin
=
100
--with-suexec-userdir
=
public_html
$(MAKE)
-C
httpd-2.4.26
$(MAKE)
-C
httpd-2.4.26
install
mv
-v
/usr/sbin/suexec /usr/lib/httpd/suexec
chgrp
apache /usr/lib/httpd/suexec
chmod
4754 /usr/lib/httpd/suexec
chown
-v
-R
apache:apache /srv/www
mkdir
-p
/etc/httpd/conf
cat
/etc/httpd/httpd.conf |
sed
-n
'/^# DocumentRoot:/,/^# DirectoryIndex:/{ /^# DirectoryIndex:.*$$/d; p; }'
>
/etc/httpd/conf/DocumentRoot.conf
sed
'/^# DocumentRoot:/,/^# DirectoryIndex:/{/^# DirectoryIndex:/!d}'
-i
/etc/httpd/httpd.conf
cat
/etc/httpd/httpd.conf |
sed
-n
'/^# DirectoryIndex:/,/^# The following/{ /^# The following.*$$/d; p; }'
>
/etc/httpd/conf/DirectoryIndex.conf
sed
'/^# DirectoryIndex:/,/^# The following/{/^# The following/!d}'
-i
/etc/httpd/httpd.conf
@
echo
"IncludeOptional conf/*.conf"
>>
/etc/httpd/httpd.conf
@
echo
"d /run/httpd 755 root root -"
>
/usr/lib/tmpfiles.d/httpd.conf
@
echo
"
$$
HTTPD_SERVICE"
>
/lib/systemd/system/httpd.service
systemctl
enable
httpd.service
rm
-rf
httpd-2.4.26
httpd-service
:
define
HTTPD_SERVICE
[Unit]
Description
=
Apache Web Server
After
=
network.target remote-fs.target nss-lookup.target
[Service]
Type
=
forking
PIDFile
=
/run/httpd/httpd.pid
ExecStart
=
/usr/sbin/apachectl start
ExecStop
=
/usr/sbin/apachectl graceful-stop
ExecReload
=
/usr/sbin/apachectl graceful
PrivateTmp
=
true
LimitNOFILE
=
infinity
[Install]
WantedBy
=
multi-user.target
endef
export
HTTPD_SERVICE
httpd-2.4.26-blfs_layout-1.patch
0 → 100644
View file @
b2a4894d
This diff is collapsed.
Click to expand it.
httpd-2.4.26.tar.bz2
0 → 100644
View file @
b2a4894d
File added
httpd.groups
0 → 100644
View file @
b2a4894d
etc
/etc/.*
bin
/usr/bin/.*
/usr/sbin/.*
/usr/share/httpd/icons/.*
/usr/share/httpd/build/.*
/usr/share/httpd/error/.*
/usr/lib/tmpfiles.d/.*
/lib/systemd/system/.*
/usr/lib/httpd/modules/.*
/usr/lib/httpd/cgi-bin/.*
/usr/lib/httpd/suexec
headers
/usr/include/.*
man
/usr/share/man/.*
doc
/usr/share/httpd/manual/.*
www
/srv/www/.*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment