Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod_fastcgi better than mod_fcgid !?! |
Page Previous 1, 2, 3, 4, 5 |
Author |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7404 Location: EU, Germany, Next to Hamburg
|
Posted: Wed 19 Mar '14 13:22 Post subject: |
|
|
jimski wrote: | James Blond wrote: | I can post the build script that I use. |
OK James, please post the script. |
Sorry, I forgot it
just replace mario with your user name and better tell me how to use an env variable
build code for a fresh installed debian
Code: |
mkdir apache24
cd apache24
sudo aptitude install build-essential
sudo aptitude install zlib1g-dev
wget http://openssl.org/source/openssl-1.0.1f.tar.gz
tar xfz openssl-1.0.1f.tar.gz
cd openssl-*
./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared no-ssl2
make depend
make
sudo make install
sudo aptitude install liblua5.1-dev
wget http://httpd.apache.org/dev/dist/httpd-2.4.9.tar.gz
tar xvfz httpd-2.4.9.tar.gz
cd httpd-2.4.9/srclib
wget http://www.carfab.com/apachesoftware//apr/apr-1.5.0.tar.gz
tar xvfz apr-1.5.0.tar.gz
mv apr-1.5.0 apr
wget http://mirror.netcologne.de/apache.org//apr/apr-util-1.5.3.tar.gz
tar xvfz apr-util-1.5.3.tar.gz
mv apr-util-1.5.3 apr-util
wget http://mirror.netcologne.de/apache.org//apr/apr-iconv-1.2.1.tar.gz
tar xvfz apr-iconv-1.2.1.tar.gz
mv apr-iconv-1.2.1 apr-iconv
wget http://zlib.net/zlib-1.2.8.tar.gz
tar xvfz zlib-1.2.8.tar.gz
mv zlib-1.2.8 zlib
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
tar xvfz pcre-8.33.tar.gz
mv pcre-8.33 pcre
cd ..
sudo aptitude install autoconf
sudo aptitude install libtool
sudo aptitude install libpcre3-dev
./buildconf
./configure --prefix=/opt/apache2 --enable-pie --enable-mods-shared=all --enable-so --disable-include --enable-lua --enable-deflate --enable-headers --enable-expires --enable-ssl=shared --enable-mpms-shared=all --with-mpm=event --enable-rewrite --with-z=/home/mario/apache24/httpd-2.4.9/srclib/zlib --enable-module=ssl --enable-fcgid --with-included-apr
make
sudo make install
sudo aptitude install subversion
cd ..
svn checkout http://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk mod_fcgid
cd mod_fcgid
APXS=/opt/apache2/bin/apxs ./configure.apxs
make
sudo make install
make clean
|
|
|
Back to top |
|
jimski

Joined: 18 Jan 2014 Posts: 196 Location: USSA
|
Posted: Wed 19 Mar '14 14:57 Post subject: |
|
|
C0nw0nk wrote: |
Also the MySQL server i use runs on a different machine but i dont have any issues with load speeds from it. |
Try to benchmark your webserver alone serving a php file and then benchmark it serving the same php file with one mysql query with couple of joint tables, then you will see your number of requests per second drop like a rock.
Also, applications like yours that probably don't need full ACID compliance and are most likely read intensive are faster than applications that are write/read intensive, particularly with write transactions involving locking several tables.
James Blond wrote: |
...build code for a fresh installed debian...
|
Thank you James but I probably won't build it again at this point. I need to stop testing and move to production. Also after reading this article I decided to copy their setup for my appliction except I will use Centos and Postgres.
http://highscalability.com/blog/2012/9/26/wordpresscom-serves-70000-reqsec-and-over-15-gbitsec-of-traf.html
. |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Thu 20 Mar '14 10:10 Post subject: |
|
|
Yeah i use allot of caching i avoid the file cache because Joomla 2.5 has a major issue with the file cache filling up so i use wincache's user cache, As for mysql when i upgrade to Joomla 3.x.x i can actualy use postgres so i will be using that for serving traffic too instead of mysql.
As it says for us Joomla fans
http://www.joomla.org/3/en
Quote: | PostgreSQL Driver. You will be able to run Joomla 3 sites using the PostgreSQL database. |
Still a shame for windows servers not having those benefits[/quote] |
|
Back to top |
|
|
|
|
|
|