Configure Error /usr/local/apache/sbin/apxs Not Found Or Not Executable
Contents |
administrators to compile. Each version of Apache also puts its config files and log /usr/sbin/apxs: no such file or directory files in a different place. Many people have trouble configuring the could not find /usr/sbin/apxs "prefork" version that is installed by SuSE, because instead of one config file, the prefork version (at
Sorry, I Cannot Run Apxs.
least the one supplied by SuSE) has 13 of them. Since apache needs to be updated and reinstalled frequently, most users are better off compiling apache from source from
Invalid Location For Apxs
the very beginning. This also helps your users by ensuring that their html files (and your config files) are always in the same place. PHP5 is recommended over PHP4 because it is much easier to install. It is recommended to compile php as a shared library instead of hard-coding it into apache. The old ".o" and "mod_php4.c" apxs was not found files will be replaced by a single php library. This page will also concentrate exclusively on apache 2.x. STEP 1: Install SSL Install new openssl from www.openssl.org (openssl-0.9.6g.tar.gz) Openssl installs everything in /usr/local/ssl/lib, while SuSE installs it in /usr/lib/. Be sure to copy the new version to /usr/lib or specify "--prefix=/usr/lib" during the config step. ./config make make test make install ./config shared make make install cd /usr/local/ssl/lib cp * /usr/lib lcdonfig If it gives the following error: BEGIN failed--compilation aborted at /usr/lib/perl5/5.00503\ /Pod/Usage.pm line 412. copy the files manually cp libcry* /usr/lib/ cp libssl* /usr/lib/ cp libcry* /usr/local/ssl/lib cp libssl* /usr/local/ssl/lib Restart Samba and Apache, otherwise Samba, apache, and possibly other applications will crash silently. STEP 2: Unpack Apache PHP places files in the Apache source tree that are necessary to create a version of Apache that supports PHP. Untar Apache and type './configure'. Do not skip this step. Then install PHP before continuing. STEP 3: Install PHP Use the latest versions of Apache and PHP to avoi
Support Search GitHub This repository Watch 137 Star 3,579 Fork 450 phusion/passenger Code Issues 163 Pull requests 6 Projects 0 Wiki Pulse Graphs
Configure: Error: Xml2-config Not Found. Please Check Your Libxml2 Installation.
New issue Unable to autodetect Apache default config file on Gentoo #1510 Closed bcthomas opened this Issue May 13, 2015 · 10 comments Projects None yet Labels Priority/High Server/Apache Milestone 5.0.8 Assignees FooBarWidget 2 participants bcthomas commented May 13, 2015 Using gentoo, default apache2 installation (2.2.29). apach2 -l Compiled in modules: core.c worker.c http_core.c mod_so.c passenger-install-apache2-module fails with an error http://randombio.com/linuxsetup42.html about a broken apache2 installation... Checking for required software... * Checking for C compiler... Found: yes Location: /usr/bin/cc * Checking for C++ compiler... Found: yes Location: /usr/bin/c++ * Checking for Curl development headers with SSL support... Found: yes curl-config location: /usr/bin/curl-config Header location: /usr/include/curl/curl.h Version: libcurl 7.42.0 Usable: yes Supports SSL: yes * Checking for OpenSSL development headers... Found: yes Location: https://github.com/phusion/passenger/issues/1510 /usr/include/openssl/ssl.h * Checking for Zlib development headers... Found: yes Location: /usr/include/zlib.h * Checking for Apache 2... Found: yes Location of httpd: /usr/sbin/apache2 Apache version: 2.2.29 * Checking for Apache 2 development headers... Found: yes Location of apxs2: /usr/sbin/apxs2 * Checking for Rake (associated with /usr/bin/ruby20)... Found: yes Location: /usr/bin/ruby20 /usr/local/bin/rake * Checking for OpenSSL support for Ruby... Found: yes * Checking for RubyGems... Found: yes * Checking for Ruby development headers... Found: yes Location: /usr/include/ruby-2.0.0/ruby.h * Checking for rack... Found: yes * Checking for Apache Portable Runtime (APR) development headers... Found: yes Location: /usr/bin/apr-1-config Version: 1.5.0 * Checking for Apache Portable Runtime Utility (APU) development headers... Found: yes Location: /usr/bin/apu-1-config Version: 1.5.3 -------------------------------------------- Checking whether there are multiple Apache installations... Your Apache installation might be broken You are about to install Phusion Passenger against the following Apache installation: apxs2: /usr/sbin/apxs2 However, this Apache installation appears to be broken, so this installer cannot continue. To find out why this installer thinks the above Apache installation is broken, run: export ORIG_PATH="$PATH" sudo -s -E export PATH="$ORIG_PATH" /usr/bin/ruby20 /usr/local/lib64/ruby/gems/2.0.0/gems/passenger-5.0.7/bin/passenger-config --detect-apache2 It is also
any docs on compiling mod_perl2 alongside php5 with apache 2.2, so hopefully this helps someone. I've always statically compiled mod_perl into apache, but the easiest way http://markmaunder.com/2007/08/01/configuring-apache-224-mod_perl-20-php-523-libapreq-with-a-worker-mpm/ to get mod_perl to play nice with PHP under apache2 is to compile them http://stackoverflow.com/questions/31127196/compile-mod-wsgi-with-non-default-apache-webserver as DSO's or dynamic modules that are inserted at runtime. I've tested this under Ubuntu 7 and CentOS 5. At the time of this writing the server hosting this page is running with this config and handles a not-insignificant amount of traffic. NOTE: I use a worker MPM with Apache to get the not found best possible performance. The worker MPM is a hybrid thread/process model. It requires that PHP be threadsafe when compiled. Here are the commands I use. I'm assuming you've downloaded the latest apache httpd 2.2 source code, php's source code, mod_perl's source code and libapreq2's source code. I'm assuming you're smart enough to know when to CD to the directory of each app to compile and install that app, configure error /usr/local/apache/sbin/apxs so I've left out basic steps like that. First compile apache with DSO support. Enable the worker MPM, enable mod_rewrite, enable mod_expires, and add a little magic to make libapreq work: ./configure -prefix=/usr/local/apache2 -with-mpm=worker -enable-so -enable-rewrite -enable-expires -with-included-apr make make install Now that apache is installed, compile and install a thread-safe PHP DSO . Note the enable-maintainer-zts compiles a threadsafe PHP. I've also added mysql support. ./configure -with-mysql -enable-maintainer-zts -with-apxs2=/usr/local/apache2/bin/apxs make make install Now you compile and install a mod_perl DSO. perl Makefile.PL -with-apache2-apxs=/usr/local/apache2/bin/apxs make make install Next you compile and install libapreq as a DSO perl Makefile.PL -with-apache2-apxs=/usr/local/apache2/bin/apxs make make install Make sure your httpd.conf contains the following to enable mod_perl, php and libapreq: LoadModule apreq_module /usr/local/apache2/modules/mod_apreq2.so LoadModule perl_module modules/mod_perl.so LoadModule php5_module modules/libphp5.so DirectoryIndex index.html index.htm index.php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Google+ (Opens in new window) Related This entry was posted in Code by mark. Bookmark the permalink. 11 thoughts on “Configuring apache 2.2.4 + mod_perl 2.0 + php 5.2.3 + libapreq with a worker MPM” Margene Brunet on August 6, 2013 at 12:56 pm said
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Compile mod_wsgi with non-default Apache Webserver? up vote 0 down vote favorite I am trying to install mod_wsgi for a updated version of apache. I currently have Apache 2.4 installed via /opt/rh/httpd24/root/etc/httpd. I am wanting to compile with it using 2.4 not 2.2. Any help on the syntax here? I can't find any reference to that specific argument. [root@bmograba mod_wsgi-4.4.13]# ./configure -help `configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=D