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

Mailing List Archive: Apache: Users

Apache 2.4.1 Installation problems

 

 

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


john.iliffe at iliffe

Apr 17, 2012, 8:48 AM

Post #1 of 5 (650 views)
Permalink
Apache 2.4.1 Installation problems

I am trying to update from 2.2.14 to 2.4.1 and have encountered two
problems. 2.2.14 has been working properly for over 2 years. Pages are
located on a separate directory starting at /www with subdirectories s1,
s2, etc for different named virtual hosts. Config file for EACH virtual host
shows document root as /www/s1, /www/s2, etc as relevant.

1. Apache will start properly but gives a "Not Authorized" message when
any page is to be served.

Log:

[Mon Apr 16 13:02:31.267819 2012] [authz_core:error] [pid 23033:tid
1100290368] [client 192.168.1.1:41839] AH01630: client denied by server
configuration: /www/s2/, referer: http://www.xxxxx.ca/url0001.html
[Mon Apr 16 13:02:38.965404 2012] [authz_core:error] [pid 23033:tid
1110780224] [client 192.168.1.1:41842] AH01630: client denied by server
configuration: /www/s1/, referer: http://www.xxxxxx.ca/url0001.html

A search of the Apache archives suggests that this is a config problem
requiring a <Directory> entry so I set up:

# Allow the directory where we store the pages -- 2012-04-15
<Directory /www >
Options FollowSymLinks
Order Allow,Deny
Allow from all
</Directory>

I tried a number of variations such as putting this in each of the virtual
host containers, putting a /* on the end, including it once before all the
virtual host declarations, etc.

Still get same problem.
----------------------------------------------------------------------

Second problem:

Many of the pages are written in PHP and I have PHP installed on the server
and used by 2.2.14. I copied the module libphp5.so into the modules
directory and added a LoadModule directive as follows:

LoadModule php5_module modules/libphp5.so

(This line has to be commented out to start Apache)

When I try to start up Apache I get the following error:

/usr/apache-2.4.1/bin/apachectl -k start
httpd: Syntax error on line 153 of /usr/apache-2.4.1/conf/httpd.conf:
Cannot load /usr/apache-2.4.1/modules/libphp5.so into server:
/usr/apache-2.4.1/modules/libphp5.so: undefined symbol: unixd_config

What causes this and what is the solution?

Thanks.

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


mathijssch at gmail

Apr 17, 2012, 9:02 AM

Post #2 of 5 (633 views)
Permalink
Re: Apache 2.4.1 Installation problems [In reply to]

1: 2.4 uses different auth methods and directives, see http://httpd.apache.org/docs/2.4/upgrading.html and check out the authentication section. You probably either need the compat module, or a new access control directive is overriding your current directory section.

2: Apache 2.4 needs modules that are compiled with the new apr, so make sure to recompile your mod_php as well.

Op 17 apr. 2012 om 17:48 heeft John Iliffe <john.iliffe [at] iliffe> het volgende geschreven:

> I am trying to update from 2.2.14 to 2.4.1 and have encountered two
> problems. 2.2.14 has been working properly for over 2 years. Pages are
> located on a separate directory starting at /www with subdirectories s1,
> s2, etc for different named virtual hosts. Config file for EACH virtual host
> shows document root as /www/s1, /www/s2, etc as relevant.
>
> 1. Apache will start properly but gives a "Not Authorized" message when
> any page is to be served.
>
> Log:
>
> [Mon Apr 16 13:02:31.267819 2012] [authz_core:error] [pid 23033:tid
> 1100290368] [client 192.168.1.1:41839] AH01630: client denied by server
> configuration: /www/s2/, referer: http://www.xxxxx.ca/url0001.html
> [Mon Apr 16 13:02:38.965404 2012] [authz_core:error] [pid 23033:tid
> 1110780224] [client 192.168.1.1:41842] AH01630: client denied by server
> configuration: /www/s1/, referer: http://www.xxxxxx.ca/url0001.html
>
> A search of the Apache archives suggests that this is a config problem
> requiring a <Directory> entry so I set up:
>
> # Allow the directory where we store the pages -- 2012-04-15
> <Directory /www >
> Options FollowSymLinks
> Order Allow,Deny
> Allow from all
> </Directory>
>
> I tried a number of variations such as putting this in each of the virtual
> host containers, putting a /* on the end, including it once before all the
> virtual host declarations, etc.
>
> Still get same problem.
> ----------------------------------------------------------------------
>
> Second problem:
>
> Many of the pages are written in PHP and I have PHP installed on the server
> and used by 2.2.14. I copied the module libphp5.so into the modules
> directory and added a LoadModule directive as follows:
>
> LoadModule php5_module modules/libphp5.so
>
> (This line has to be commented out to start Apache)
>
> When I try to start up Apache I get the following error:
>
> /usr/apache-2.4.1/bin/apachectl -k start
> httpd: Syntax error on line 153 of /usr/apache-2.4.1/conf/httpd.conf:
> Cannot load /usr/apache-2.4.1/modules/libphp5.so into server:
> /usr/apache-2.4.1/modules/libphp5.so: undefined symbol: unixd_config
>
> What causes this and what is the solution?
>
> Thanks.
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jeroen at adaptr

Apr 17, 2012, 11:48 AM

Post #3 of 5 (626 views)
Permalink
Re: Apache 2.4.1 Installation problems [In reply to]

On 2012-04-17 17:48, John Iliffe wrote:
> I am trying to update from 2.2.14 to 2.4.1 and have encountered two
> problems. 2.2.14 has been working properly for over 2 years. Pages are
> located on a separate directory starting at /www with subdirectories s1,
> s2, etc for different named virtual hosts. Config file for EACH virtual host
> shows document root as /www/s1, /www/s2, etc as relevant.
>
> 1. Apache will start properly but gives a "Not Authorized" message when
> any page is to be served.
>
> Log:
>
> [Mon Apr 16 13:02:31.267819 2012] [authz_core:error] [pid 23033:tid
> 1100290368] [client 192.168.1.1:41839] AH01630: client denied by server
> configuration: /www/s2/, referer: http://www.xxxxx.ca/url0001.html
> [Mon Apr 16 13:02:38.965404 2012] [authz_core:error] [pid 23033:tid
> 1110780224] [client 192.168.1.1:41842] AH01630: client denied by server
> configuration: /www/s1/, referer: http://www.xxxxxx.ca/url0001.html
>
> A search of the Apache archives suggests that this is a config problem
> requiring a<Directory> entry so I set up:
>
> # Allow the directory where we store the pages -- 2012-04-15
> <Directory /www>
> Options FollowSymLinks
> Order Allow,Deny
> Allow from all
> </Directory>

AAA configuration has changed completely in 2.4; this is well-documented
in the manual.
Instead of Allow from all, use "Require all granted"; the Order
directive is no longer required.

Refer to http://httpd.apache.org/docs/2.4/howto/auth.html for details.

> I tried a number of variations such as putting this in each of the virtual
> host containers, putting a /* on the end, including it once before all the
> virtual host declarations, etc.

The latter is the correct form if you want to grant access to all
content by default.

> Still get same problem.
> ----------------------------------------------------------------------
>
> Second problem:
>
> Many of the pages are written in PHP and I have PHP installed on the server
> and used by 2.2.14. I copied the module libphp5.so into the modules
> directory and added a LoadModule directive as follows:
>
> LoadModule php5_module modules/libphp5.so
>
> (This line has to be commented out to start Apache)
>
> When I try to start up Apache I get the following error:
>
> /usr/apache-2.4.1/bin/apachectl -k start
> httpd: Syntax error on line 153 of /usr/apache-2.4.1/conf/httpd.conf:
> Cannot load /usr/apache-2.4.1/modules/libphp5.so into server:
> /usr/apache-2.4.1/modules/libphp5.so: undefined symbol: unixd_config
>
> What causes this and what is the solution?

Modules are built for a specific apache portable runtime (APR) version;
you cannot load an old module into a newer APR release.
This is directly linked to the apxs version used to build the module.
You need to either obtain an updated module from your package
repository, or compile the module from source for your apache version.


--
J.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jeroen at adaptr

Apr 17, 2012, 12:01 PM

Post #4 of 5 (630 views)
Permalink
Re: Apache 2.4.1 Installation problems [In reply to]

On 2012-04-17 18:02, Mathijs Schmittmann wrote:

A. Your mail becomes unreadable

Q. What happens when you top-post ?

Also, try to avoid that Reply-to-all button...

> 1: 2.4 uses different auth methods and directives, see http://httpd.apache.org/docs/2.4/upgrading.html and check out the authentication section. You probably either need the compat module, or a new access control directive is overriding your current directory section.
>
> 2: Apache 2.4 needs modules that are compiled with the new apr, so make sure to recompile your mod_php as well.
>
> Op 17 apr. 2012 om 17:48 heeft John Iliffe<john.iliffe [at] iliffe> het volgende geschreven:
>
>> I am trying to update from 2.2.14 to 2.4.1 and have encountered two
>> problems. 2.2.14 has been working properly for over 2 years. Pages are
>> located on a separate directory starting at /www with subdirectories s1,
>> s2, etc for different named virtual hosts. Config file for EACH virtual host
>> shows document root as /www/s1, /www/s2, etc as relevant.
>>
>> 1. Apache will start properly but gives a "Not Authorized" message when
>> any page is to be served.
>>
>> Log:
>>
>> [Mon Apr 16 13:02:31.267819 2012] [authz_core:error] [pid 23033:tid
>> 1100290368] [client 192.168.1.1:41839] AH01630: client denied by server
>> configuration: /www/s2/, referer: http://www.xxxxx.ca/url0001.html
>> [Mon Apr 16 13:02:38.965404 2012] [authz_core:error] [pid 23033:tid
>> 1110780224] [client 192.168.1.1:41842] AH01630: client denied by server
>> configuration: /www/s1/, referer: http://www.xxxxxx.ca/url0001.html
>>
>> A search of the Apache archives suggests that this is a config problem
>> requiring a<Directory> entry so I set up:
>>
>> # Allow the directory where we store the pages -- 2012-04-15
>> <Directory /www>
>> Options FollowSymLinks
>> Order Allow,Deny
>> Allow from all
>> </Directory>
>>
>> I tried a number of variations such as putting this in each of the virtual
>> host containers, putting a /* on the end, including it once before all the
>> virtual host declarations, etc.
>>
>> Still get same problem.
>> ----------------------------------------------------------------------
>>
>> Second problem:
>>
>> Many of the pages are written in PHP and I have PHP installed on the server
>> and used by 2.2.14. I copied the module libphp5.so into the modules
>> directory and added a LoadModule directive as follows:
>>
>> LoadModule php5_module modules/libphp5.so
>>
>> (This line has to be commented out to start Apache)
>>
>> When I try to start up Apache I get the following error:
>>
>> /usr/apache-2.4.1/bin/apachectl -k start
>> httpd: Syntax error on line 153 of /usr/apache-2.4.1/conf/httpd.conf:
>> Cannot load /usr/apache-2.4.1/modules/libphp5.so into server:
>> /usr/apache-2.4.1/modules/libphp5.so: undefined symbol: unixd_config
>>
>> What causes this and what is the solution?
>>
>> Thanks.
>>
>> John
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe [at] httpd
>> For additional commands, e-mail: users-help [at] httpd
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


john.iliffe at iliffe

Apr 19, 2012, 10:30 AM

Post #5 of 5 (613 views)
Permalink
Re: Apache 2.4.1 Installation problems [In reply to]

On Tuesday 17 April 2012 14:48:17 Jeroen Geilman wrote:
> On 2012-04-17 17:48, John Iliffe wrote:
> > I am trying to update from 2.2.14 to 2.4.1 and have encountered two
> > problems. 2.2.14 has been working properly for over 2 years. Pages
> > are located on a separate directory starting at /www with
> > subdirectories s1, s2, etc for different named virtual hosts. Config
> > file for EACH virtual host shows document root as /www/s1, /www/s2,
> > etc as relevant.
> >
> > 1. Apache will start properly but gives a "Not Authorized" message
> > when any page is to be served.
> >
> > Log:
> >
> > [Mon Apr 16 13:02:31.267819 2012] [authz_core:error] [pid 23033:tid
> > 1100290368] [client 192.168.1.1:41839] AH01630: client denied by
> > server configuration: /www/s2/, referer:
> > http://www.xxxxx.ca/url0001.html [Mon Apr 16 13:02:38.965404 2012]
> > [authz_core:error] [pid 23033:tid 1110780224] [client
> > 192.168.1.1:41842] AH01630: client denied by server configuration:
> > /www/s1/, referer: http://www.xxxxxx.ca/url0001.html
> >
> > A search of the Apache archives suggests that this is a config problem
> > requiring a<Directory> entry so I set up:
> >
> > # Allow the directory where we store the pages -- 2012-04-15
> > <Directory /www>
> >
> > Options FollowSymLinks
> > Order Allow,Deny
> > Allow from all
> >
> > </Directory>
>
> AAA configuration has changed completely in 2.4; this is well-documented
> in the manual.
> Instead of Allow from all, use "Require all granted"; the Order
> directive is no longer required.
Did this, it worked. Perhaps the documentation at this URL

http://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#order

should be updated to make it clearer. The reason I am whinging here is
that I already had a working conf on 2.2.14 so it was logical to review the
documentation for 2.4.1 in that context. Anyhow, thanks!
>
> Refer to http://httpd.apache.org/docs/2.4/howto/auth.html for details.
>
> > I tried a number of variations such as putting this in each of the
> > virtual host containers, putting a /* on the end, including it once
> > before all the virtual host declarations, etc.
>
> The latter is the correct form if you want to grant access to all
> content by default.
>
> > Still get same problem.
> > ----------------------------------------------------------------------
> >
> > Second problem:
> >
> > Many of the pages are written in PHP and I have PHP installed on the
> > server and used by 2.2.14. I copied the module libphp5.so into the
> > modules
> >
> > directory and added a LoadModule directive as follows:
> > LoadModule php5_module modules/libphp5.so
> >
> > (This line has to be commented out to start Apache)
> >
> > When I try to start up Apache I get the following error:
> >
> > /usr/apache-2.4.1/bin/apachectl -k start
> > httpd: Syntax error on line 153 of /usr/apache-2.4.1/conf/httpd.conf:
> > Cannot load /usr/apache-2.4.1/modules/libphp5.so into server:
> > /usr/apache-2.4.1/modules/libphp5.so: undefined symbol: unixd_config
> >
> > What causes this and what is the solution?
>
> Modules are built for a specific apache portable runtime (APR) version;
> you cannot load an old module into a newer APR release.
> This is directly linked to the apxs version used to build the module.
> You need to either obtain an updated module from your package
> repository, or compile the module from source for your apache version.
>
>
> --
> J.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

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.