Prisijungti

Kaip idiegti Apache serveri ?

  • 25 Rugs '13

Kaip idiegti Apache serveri is http://httpd.apache.org/ i Linux Mint 13 ?

TechtronicMindaugas N.
  • 26 Rugs '13

Geriau install httpd is repozitoriu nei paciam kompiliuoti... Na bet jeigu yra noro tai stai kaip tai padaryti kiek daugiau patyrusiam GNU/Linux user

Patariu instaliuoti apache/httpd i /opt arba /home/httpd.

sudo useradd -m -G users -s /bin/zsh --comment "Project user" project
sudo passwd project
sudo chmod o-r -R /home/project
sudo chmod g-xr -R /home/project
su project
rm ~/.*
wget git.grml.org/f/grml-etc-core/etc/zsh/zshrc -O ~/.zshrc
mkdir -p ~/build/source
mkdir -p ~/tmp/ccache

Speju prireiks ne tik apache/httpd, bet ir php ar mysql todel patariu naudoti ccache bei paskaityti apie gcc.
http://ccache.samba.org/
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html paprastai tariant, RTFM.
sios komandos pades:

gcc -Q --help=target
gcc -Q --help=optimizers
export CCACHE_DIR="/home/project/tmp/ccache"
export CCACHE_SIZE="2G"
export CFLAGS="-mtune=native -march=native -Ofast -pipe" # PAKEISK
export CXXFLAGS="${CFLAGS}"
export CHOST="i686-pc-linux-gnu" # PAKEISK
export CXXFLAGS="${CFLAGS}"
alias ccache="CCACHE_DIR=${CCACHE_DIR} ccache"
ccache --max-files=0
ccache --max-size=2G

Na o dabar Apache/httpd diegimas:

svn checkout http://svn.apache.org/repos/asf/apr/apr/trunk/ ~/build/source/apr
cd ~/build/source/apr
./buildconf
./configure --prefix=/home/project \
        --bindir=/home/project/build/bin \
        --sbindir=/home/project/build/bin \
        --libexecdir=/home/project/build/lib/libexec \
        --sysconfdir=/home/project/config/httpd \
        --localstatedir=/home/project/build/var \
        --libdir=/home/project/build/lib \
        --includedir=/home/project/build/include \
        --datarootdir=/home/project/build/share \
        --with-installbuilddir=/home/project/build/share/libtool \
        --enable-nonportable-atomics \
        --enable-threads \
        --enable-dso \
        --enable-ipv6 \
        --enable-modular-dso \
        --with-crypto \
        --with-pgsql=/usr \
        --with-sqlite3=/usr \
        --with-odbc=/usr \
        --with-expat=/usr \
        --with-iconv=/usr
make
make install
svn checkout http://svn.apache.org/repos/asf/httpd/httpd/trunk ~/build/source/httpd
cd ~/build/source/httpd/
./buildconf
echo '
# Project layout
<Layout project>
            prefix:          /home/project/build
            exec_prefix:     /home/project/build
            bindir:          /home/project/build/bin
            sbindir:         /home/project/build/bin
            libdir:          /home/project/build/lib
            libexecdir:      /home/project/build/lib/modules
            mandir:          /home/project/build/share/man
            sysconfdir:      /home/project/config/httpd
            datadir:         /home/project/build/var
            installbuilddir: /home/project/build/share/libtool
            errordir:        /home/project/config/httpd/error
            htdocsdir:       /home/project/htdocs
            cgidir:          /home/project/htdocs/cgi-bin
            iconsdir:        /home/project/config/httpd/icons
            manualdir:       /home/project/build/share/httpd-manual
            includedir:      /home/project/build/include
            localstatedir:   /home/project/build/var
            runtimedir:      /home/project/build/var/run
            logfiledir:      /home/project/logs
            proxycachedir:   /home/project/build/var/proxy
</Layout>' >> config.layout
        ./configure --prefix=/home/project/build \
                --bindir=/home/project/build/bin \
                --sbindir=/home/project/build/bin \
                --libexecdir=/home/project/build/lib/modules \
                --sysconfdir=/home/project/config/httpd \
                --localstatedir=/home/project/build/var \
                --libdir=/home/project/build/lib \
                --includedir=/home/project/build/include \
                --datarootdir=/home/project/build/share \
                --with-installbuilddir=/home/project/build/share/libtool \
                --with-apr=/home/project/build \
                --enable-mods-shared="reallyall" \
                --enable-mpms-shared="all" \
                --enable-layout="project"
make
make install
TechtronicMindaugas N.
  • 26 Rugs '13

Nauja Apache/httpd turi daug naujoviu, ir labai geru.
Dabar imanoma ir macro kurti arba MPM yra kaip DSO(?) moduliai...

Perkelkit tema moderatoriai i Programinės įrangos diegimas.

TechtronicMindaugas N.
  • 26 Rugs '13

NOTE pradedantiesiems:
Prasau nemaisyti del Apache. Apache yra Apache Software Foundation (ASF).

The ASF is made up of over 100 top level projects that cover a wide range of technologies.

http://www.apache.org/

cyf
  • 29 Spa '14

paprastai diegiu pagal šią pamoką. paprasta, greita ir dar nei karto nepavedė.
štai čia.
o jei nori dar ką nors viršaus tai irgi visai nesunku.. bet gal čia man taip atrodo.. ko gero naujokui nebūtų lengva suderint ir kelias valandas failuose prasikrapštyt.

TechtronicMindaugas N.
  • 29 Spa '14

@cyf rašė:
paprastai diegiu pagal šią pamoką. paprasta, greita ir dar nei karto nepavedė.
štai čia.
o jei nori dar ką nors viršaus tai irgi visai nesunku.. bet gal čia man taip atrodo.. ko gero naujokui nebūtų lengva suderint ir kelias valandas failuose prasikrapštyt.

Klause kaip instaliuoti Apache httpd is http://httpd.apache.org jeigu turi savo diegimo buda tai welcome.

Tiems kam reikia butent tokio diegimo uztenka parasyti komanda apt-get install phpmyadmin

cyf
  • 31 Spa '14

@Techtronic rašė:
Klause kaip instaliuoti Apache httpd is http://httpd.apache.org jeigu turi savo diegimo buda tai welcome.

Tiems kam reikia butent tokio diegimo uztenka parasyti komanda apt-get install phpmyadmin
greičiausia tu teisus, bet gal žmogui reikia tiesiog serverio. tokiu atveju nebūtina darytis sau sunkiau. eiti paprastesniu keliu ir tiek.

Atsakyti