Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Apache build

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


aruna_gummalla at yahoo

Nov 18, 2009, 12:10 PM

Post #1 of 7 (533 views)
Permalink
Apache build

Hi,

I want to build httpd server and install on some other machine with my own build scripts.

Does it hard codes any paths internally?

Thanks & Regards,
Aruna.


jmedina at e-dialog

Nov 18, 2009, 12:19 PM

Post #2 of 7 (511 views)
Permalink
RE: Apache build [In reply to]

It is doable. I compile my own apache and provide it as a tar.gz file bundled with other set of scripts.

If the paths on the target machine do not match the paths on your build machine, then you will need to define LD_LIBRARY_PATH


________________________________
From: Aruna Gummalla [mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009 3:11 PM
To: users [at] httpd
Subject: [users [at] http] Apache build

Hi,

I want to build httpd server and install on some other machine with my own build scripts.

Does it hard codes any paths internally?

Thanks & Regards,
Aruna.


aruna_gummalla at yahoo

Nov 18, 2009, 12:28 PM

Post #3 of 7 (496 views)
Permalink
RE: Apache build [In reply to]

Thanks Jorge.

Is it possible to build for x86-64 machine?

I am trying to build with --host=x86_64-linux-gnu --enable-lib64=yes
It builds but when I look at the modules file mod_ssl.so. They are all 32 bit only.

What could be the mistake that I am doing.

Please let me know.

Thanks & Regards,
Aruna.

--- On Thu, 11/19/09, Jorge Medina <jmedina [at] e-dialog> wrote:

From: Jorge Medina <jmedina [at] e-dialog>
Subject: RE: [users [at] http] Apache build
To: "users [at] httpd" <users [at] httpd>
Date: Thursday, November 19, 2009, 1:49 AM




It is doable. I compile my own apache and provide it as a
tar.gz file bundled with other set of scripts.
 
If the paths on the target machine do not match the paths
on your build machine, then you will need to define LD_LIBRARY_PATH

 



From: Aruna Gummalla
[mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009
3:11 PM
To: users [at] httpd
Subject: [users [at] http]
Apache build






Hi,

I want to build httpd server and install on some
other machine with my own build scripts.

Does it hard codes any
paths internally?

Thanks &
Regards,
Aruna.


jmedina at e-dialog

Nov 18, 2009, 2:59 PM

Post #4 of 7 (497 views)
Permalink
RE: Apache build [In reply to]

Yes. But I build the APR and the APU libraries myself (and include them in my tar.gz file).
Since I also enable SSL, I also build OpenSSL and pass the path to it at build time with -with-ssl and with LD_LIBRARY_PATH at runtime.

export CPPFLAGS="-m64 -O3"
export CXXFLAGS="-m64 -O3"
export CFLAGS="-m64 -O3"

configure \
--with-ldap \
--quiet \
--srcdir=${HTTPD_ROOT} \
--with-port=80 \
--enable-mods-shared="all headers ssl ldap authnz_ldap info echo mime proxy proxy_ajp proxy_balancer" \
--prefix=/home/user/opt/apache \
--with-apr=${APR_DIR} \
--with-apr-util=${APU_DIR} \
--with-expat=builtin \
--with-mpm=worker \
--with-ssl=${OPENSSL_TARGET_DIR} \
--enable-lib64
________________________________
From: Aruna Gummalla [mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009 3:29 PM
To: users [at] httpd
Subject: RE: [users [at] http] Apache build

Thanks Jorge.

Is it possible to build for x86-64 machine?

I am trying to build with --host=x86_64-linux-gnu --enable-lib64=yes
It builds but when I look at the modules file mod_ssl.so. They are all 32 bit only.

What could be the mistake that I am doing.

Please let me know.

Thanks & Regards,
Aruna.

--- On Thu, 11/19/09, Jorge Medina <jmedina [at] e-dialog> wrote:

From: Jorge Medina <jmedina [at] e-dialog>
Subject: RE: [users [at] http] Apache build
To: "users [at] httpd" <users [at] httpd>
Date: Thursday, November 19, 2009, 1:49 AM

It is doable. I compile my own apache and provide it as a tar.gz file bundled with other set of scripts.

If the paths on the target machine do not match the paths on your build machine, then you will need to define LD_LIBRARY_PATH


________________________________
From: Aruna Gummalla [mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009 3:11 PM
To: users [at] httpd
Subject: [users [at] http] Apache build

Hi,

I want to build httpd server and install on some other machine with my own build scripts.

Does it hard codes any paths internally?

Thanks & Regards,
Aruna.


aruna_gummalla at yahoo

Nov 18, 2009, 4:14 PM

Post #5 of 7 (496 views)
Permalink
RE: Apache build [In reply to]

I am giving a --PREFIX option to install in a particular directory. But I install the build at two different locations on two different machines.

Even if i give the LD_LIBRARY_PATH it does not start. Actually in all the configuration files it uses the PREFIX directory. But I want to install in different directories for the same build.

Is it possible?

Thanks & Regards,
Aruna.

--- On Thu, 11/19/09, Jorge Medina <jmedina [at] e-dialog> wrote:

From: Jorge Medina <jmedina [at] e-dialog>
Subject: RE: [users [at] http] Apache build
To: "users [at] httpd" <users [at] httpd>
Date: Thursday, November 19, 2009, 4:29 AM




 
Yes. But I build the
APR and the APU libraries myself (and include them in my tar.gz file). 

Since I also enable SSL, I also build OpenSSL and pass
the path to it at build time with -with-ssl and with LD_LIBRARY_PATH at
runtime.
 
export CPPFLAGS="-m64
-O3"
export CXXFLAGS="-m64
-O3"
export CFLAGS="-m64
-O3"
 
configure \
   
--with-ldap \
    --quiet \
   
--srcdir=${HTTPD_ROOT} \
    --with-port=80 \
   
--enable-mods-shared="all headers ssl ldap
authnz_ldap info echo mime proxy proxy_ajp proxy_balancer"
\
    --prefix=/home/user/opt/apache \
   
--with-apr=${APR_DIR} \
    --with-apr-util=${APU_DIR}
\
    --with-expat=builtin \
   
--with-mpm=worker \
    --with-ssl=${OPENSSL_TARGET_DIR}
\
    --enable-lib64



From: Aruna Gummalla
[mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009
3:29 PM
To: users [at] httpd
Subject: RE:
[users [at] http] Apache build






Thanks Jorge.

Is it possible to build for x86-64
machine?

I am trying to build with --host=x86_64-linux-gnu
--enable-lib64=yes
It builds but when I look at the modules file
mod_ssl.so. They are all 32 bit only.

What could be the mistake
that I am doing.

Please let me know.

Thanks &
Regards,
Aruna.

--- On Thu, 11/19/09, Jorge Medina
<jmedina [at] e-dialog> wrote:


From:
Jorge Medina <jmedina [at] e-dialog>
Subject: RE: [users [at] http]
Apache build
To: "users [at] httpd"
<users [at] httpd>
Date: Thursday, November 19, 2009,
1:49 AM



It is doable. I compile my own apache and provide
it as a tar.gz file bundled with other set of
scripts.
 
If the paths on the target machine do not match the
paths on your build machine, then you will need to define
LD_LIBRARY_PATH
 



From: Aruna Gummalla
[mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November
18, 2009 3:11 PM
To: users [at] httpd
Subject:
[users [at] http] Apache build






Hi,

I want to build httpd server and install
on some other machine with my own build scripts.

Does it
hard codes any paths internally?

Thanks &
Regards,
Aruna.


ef-lists at email

Nov 18, 2009, 10:55 PM

Post #6 of 7 (484 views)
Permalink
RE: Apache build [In reply to]

Hi,

have you verified, that your platform compiler can compile in 64-bit mode? In case of gcc, you can forcce it with -m64. Create a little helloworld-program and compile it with -m64. If the compiler complains, you can't build 64-bit executables.

You may also want to try to set CFLAGS to "-m64" (for gcc).

Regards,
Edgar

> Thanks Jorge.
>
> Is it possible to build for x86-64 machine?
>
> I am trying to build with --host=x86_64-linux-gnu --enable-lib64=yes
> It builds but when I look at the modules file mod_ssl.so. They are
> all 32 bit only.
>
> What could be the mistake that I am doing.
>
> Please let me know.
>
> Thanks & Regards,
> Aruna.
>
> --- On *Thu, 11/19/09, Jorge Medina *<jmedina [at] e-dialog> wrote:
>
> From: Jorge Medina <jmedina [at] e-dialog>
> Subject: RE: [users [at] http] Apache build
> To: "users [at] httpd" <users [at] httpd>
> Date: Thursday, November 19, 2009, 1:49 AM
>
> It is doable. I compile my own apache and provide it as a tar.gz file
> bundled with other set of scripts.
>
> If the paths on the target machine do not match the paths on your
> build machine, then you will need to define LD_LIBRARY_PATH
>
> *From:* Aruna Gummalla [mailto:aruna_gummalla [at] yahoo]
> *Sent:* Wednesday, November 18, 2009 3:11 PM
> *To:* users [at] httpd
> *Subject:* [users [at] http] Apache build
>
> Hi,
>
> I want to build httpd server and install on some other machine with
> my own build scripts.
>
> Does it hard codes any paths internally?
>
> Thanks & Regards,
> Aruna.
>
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jmedina at e-dialog

Nov 19, 2009, 7:21 AM

Post #7 of 7 (482 views)
Permalink
RE: Apache build [In reply to]

On the build machine

a) Execute configure
b) Execute make
c) Execute make install

then create your package (in my case a tar.gz file).

On the runtime machine:

Use LD_LIBRARY_PATH and provide the path to your *customized* httpd.conf. (option -f)
You may want to rewrite apachectl to set the appropiate environment


________________________________
From: Aruna Gummalla [mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009 7:15 PM
To: users [at] httpd
Subject: RE: [users [at] http] Apache build

I am giving a --PREFIX option to install in a particular directory. But I install the build at two different locations on two different machines.

Even if i give the LD_LIBRARY_PATH it does not start. Actually in all the configuration files it uses the PREFIX directory. But I want to install in different directories for the same build.

Is it possible?

Thanks & Regards,
Aruna.

--- On Thu, 11/19/09, Jorge Medina <jmedina [at] e-dialog> wrote:

From: Jorge Medina <jmedina [at] e-dialog>
Subject: RE: [users [at] http] Apache build
To: "users [at] httpd" <users [at] httpd>
Date: Thursday, November 19, 2009, 4:29 AM


Yes. But I build the APR and the APU libraries myself (and include them in my tar.gz file).
Since I also enable SSL, I also build OpenSSL and pass the path to it at build time with -with-ssl and with LD_LIBRARY_PATH at runtime.

export CPPFLAGS="-m64 -O3"
export CXXFLAGS="-m64 -O3"
export CFLAGS="-m64 -O3"

configure \
--with-ldap \
--quiet \
--srcdir=${HTTPD_ROOT} \
--with-port=80 \
--enable-mods-shared="all headers ssl ldap authnz_ldap info echo mime proxy proxy_ajp proxy_balancer" \
--prefix=/home/user/opt/apache \
--with-apr=${APR_DIR} \
--with-apr-util=${APU_DIR} \
--with-expat=builtin \
--with-mpm=worker \
--with-ssl=${OPENSSL_TARGET_DIR} \
--enable-lib64
________________________________
From: Aruna Gummalla [mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009 3:29 PM
To: users [at] httpd
Subject: RE: [users [at] http] Apache build

Thanks Jorge.

Is it possible to build for x86-64 machine?

I am trying to build with --host=x86_64-linux-gnu --enable-lib64=yes
It builds but when I look at the modules file mod_ssl.so. They are all 32 bit only.

What could be the mistake that I am doing.

Please let me know.

Thanks & Regards,
Aruna.

--- On Thu, 11/19/09, Jorge Medina <jmedina [at] e-dialog> wrote:

From: Jorge Medina <jmedina [at] e-dialog>
Subject: RE: [users [at] http] Apache build
To: "users [at] httpd" <users [at] httpd>
Date: Thursday, November 19, 2009, 1:49 AM

It is doable. I compile my own apache and provide it as a tar.gz file bundled with other set of scripts.

If the paths on the target machine do not match the paths on your build machine, then you will need to define LD_LIBRARY_PATH


________________________________
From: Aruna Gummalla [mailto:aruna_gummalla [at] yahoo]
Sent: Wednesday, November 18, 2009 3:11 PM
To: users [at] httpd
Subject: [users [at] http] Apache build

Hi,

I want to build httpd server and install on some other machine with my own build scripts.

Does it hard codes any paths internally?

Thanks & Regards,
Aruna.

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.