How to build nginx from source with php upload progress module in ubuntu
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY vimal
8 years ago
Technical-Solution
2 comments comment

Are you looking to configure Drupal with nginx Server? Here is how you build nginx from source with php upload progress module in ubuntu.

Create a directory nginx-src and change to that directory

mkdir nginx-src
cd nginx-src

Then download the source package via apt

apt-get source nginx-full

If everything went successful, you get the nginx directory. inside the nginx directory, you have to modify the rules file in the directory debian in the debian/rules file add the configuration option

--add-module=$(MODULESDIR)/nginx-upload-progress 

to the session config.status.full

(Note: The source package with ubuntu already includes the nginx-upload-progress module in the debian/modules directory, so you do not have to download the module separately)

Before compiling the package, we need to make sure every dependency libraries are available for compiling nginx with the command

sudo apt-get build-dep nginx-full

(In ubuntu I found that the dependency on libgd2-noxpm-dev conflicts with php5-gd package. So if you want to keep php5-gd with nginx you have to edit the debian/control file and change the dependency on libgd2-noxpm-dev to libgd2-xpm-dev)

After setting up all the dependencies, execute the command

dpkg-buildpackage -rfakeroot -uc -b

to build the debs required.

The deb files will be created in the nginx-src directory. You can then install the package with the command

sudo dpkg -i nginx-full_1.0.5-1_i386.deb

You can verify whether the upload-progress library is enabled with the command

sudo nginx -V


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
close

on 04th April 2007 / by webmaster
Linux is the epitome of the FLOSS model. Technical Solution Linux installation Leave a reply Your email address will not be published. Required fields are marked * Dewey J. Corl (not verified) access_time 28 Sep 2020 - 19:18 Linux is not ready for the general public! (I am a Ubuntu user). For proof, 1. try to simply print labels on a Dymo label printer. It takes a LOT of work to get to the ease of label printing already available in Windows and Mac. 2. try syncing a modern Palm based PDA. Yes, jpilot and others will sync the main data, but pictures and midi files do not get transferred without a lot of extra setup. These are examples of applications that are not ready for the general public. Since an operating system only supports applications, Linux is not ready to be a common desktop for the general public. While we are waiting for the applications to catch up, keep up the good work!! Anoop John (not verified) access_time 28 Sep 2020 - 19:18 Dewey Yes you may be right. But these are not applications that a common man would use. A common man would use one of these applications - Internet browser, Chat Client, Email Client, Document Writer, Presentation Creator, Spreadsheet Editor, Movie Viewer, Music Player, CD/DVD Writer. Both examples you cited are more specific applications that only a small percentage of the whole population uses. It will take time before those hardware vendors identify the need from their perspective to address the Linux community. Krishnadas (not verified) access_time 28 Sep 2020 - 19:18 Dear Mr Anoop, Thank you very much for the free installation of LINUX done in my PC. I am getting immersed in the LINUX and seeing the versatility. To my surprise, I am able to read one of my old backup CD(wherein lot of my valuable file exist) done in DIRECT CD wizard (a custom cd writing software of Easy Cd creator in WIN98) which could not be read in XP. Installation of old version of easycd creator/direct cd program was not possible in XP. I thought that possible i lost all data. Very pleasant start! Srikanth N. S. (not verified) access_time 28 Sep 2020 - 19:18 Hi Anoop, My friend is thrilled with Ubuntu. One of his grouses with windows was that after OS installation, everything else is to be installed separately which is a real headache. WHereas if u install Linux, everything is installed as a package and he is thrilled to bits! Let linux installation spread in Trivandrum and your service in this direction is highly appreciated. Kepp up the good work Regards. PDA Freak (not verified) access_time 28 Sep 2020 - 19:18 Is it possible to install linux on a packardbell notebook ? Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

author-image
Lucas Saliés Brum (not verified)
access_time 29 Sep 2020 - 05:58

Thank you!!!
Awesome tutorial!


author-image
augusto (not verified)
access_time 29 Sep 2020 - 05:58

on my brand new vps, had a
root@li205-109:/opt/nginx-src# sudo dpkg -i nginx-full_1.2.1-2.2_i386.deb
(Reading database ... 31565 files and directories currently installed.)
Preparing to replace nginx-full 1.2.1-2.2 (using nginx-full_1.2.1-2.2_i386.deb) ...
Unpacking replacement nginx-full ...
dpkg: dependency problems prevent configuration of nginx-full:
nginx-full depends on nginx-common (= 1.2.1-2.2); however:
Package nginx-common is not installed.

dpkg: error processing nginx-full (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx-full

while installing the packaging with
sudo dpkg -i nginx-full_1.0.5-1_i386.deb

Solved with a sudo apt-get install nginx-common