Andrew Moise | 1 Apr 19:09 2015
Picon

Missing log entries?

  Hello all.
  I'm trying to analyze the behavior of visitors to my web site by
parsing my Apache access log, and it seems that the log is missing
some entries. For example, it's happened before that there's an entry
in the log for serving an image, with a referrer set to one of my HTML
pages, but there is no entry in the log for that HTML page (either
before or after the entry for the image loading) from any similar IP
address. I don't think that the headers I'm emitting would cause the
browser to cache that particular HTML page.
  Furthermore (and more to the point of why I'm concerned about this),
parsing the apache log indicates a small fraction (maybe 25%) of the
number of visitors indicated by a third party logging tool (in this
case clicky.com).
  Is there anything that could cause this? For example, does apache
not put an entry in the log if the connection is interrupted before
the entire HTML file is emitted?
  Thanks in advance for your help.
  -Andrew
Rodrigo Cunha | 1 Apr 06:49 2015
Picon

Wikimedia Problema Shape in apache wich php5.5

Hi, my local wiki have problem in your shape.This no take css formating default.
following image





--
Atenciosamente,
Rodrigo da Silva Cunha

hugh williams | 31 Mar 23:39 2015
Picon

Authenticating via either AD or files

Hi;

Running httpd 2.2.15

I have been working towards getting our Linux Apache systems to 
authenticate using our company's AD system, using LDAP. This I can do, 
that is, I can successfully search and bind against our AD server, and 
authenticate a user based on their Windows credentials.

Our Linux systems have their own login and password system (using NIS), 
and we have any number of user accounts which appear in the Windows 
domain *and* in the UX setup. The passwords may or may not match; and 
there are also accounts that are unique to one or the other side of 
things.

What I want is to be able to configure Apache such that a user gets 
challenged, and can enter either their Linux credentials or their 
Windows credentials, and Apache would check one place and if things 
didn't work it would check the other. I need to be able to use specified 
groups and accounts, not just "valid-user", on a directory-by-directory 
basis. I have added this directive in the proper <Directory> block:

AuthBasicProvider file ldap

The 2.2 docs for the AuthBasicProvider directive state:

Providers are queried in order until a provider finds a match for the 
requested username, at which point this sole provider will attempt to 
check the password. A failure to verify the password does not result in 
control being passed on to subsequent providers.

And AuthBasicAuthoritative says:

Setting the AuthBasicAuthoritative directive explicitly to Off allows 
for both authentication and authorization to be passed on to other 
non-provider-based modules if there is no userID or rule matching the 
supplied userID.

Am I correct in interpreting this to mean that if there is an account 
that exists in the htpasswd file, authentication will never be passed on 
to the LDAP system? And if I reversed the provider order and used

AuthzLDAPAuthoritative Off

that same problem would be there, LDAP would grab all attempts to 
authenticate?

Is there any way to get authentication (and eventually authorization) to 
fall through for identical account names? Or will this type of setup 
only work where the account names are different between UX and Windows?

hugh
Joe Jensen (ConAgra Foods | 31 Mar 19:49 2015
Picon

Dates in httpd.conf?

Can anybody tell me a good way to include a date in the apache configuration?  For various reasons I’m trying to avoid |’s to logrotate and want the date in a logfile’s name.  I’m really hoping to put the date into an apache variable I can use within the config. 

 

A prior install involved running sed commands to update the config files on apache startup (!!) which I’m trying to get rid of. 

 

Define DATE ??

 

 

 

Joe Jensen
(402)-240-3645
Host Services

 

From: Mike Rumph [mailto:mike.rumph <at> oracle.com]
Sent: Tuesday, March 31, 2015 11:54 AM
To: users <at> httpd.apache.org
Subject: Re: [users <at> httpd] Only apache 2.4 installed in /usr works fine but not in "/usr/local/apache2" please help me.

 

Hello Padmahas,

The problem is probably due to the issues listed in your other email thread:
"sudo: apachectl: command not found"

Thanks,

Mike Rumph

On 3/31/2015 4:08 AM, Padmahas Bn wrote:

I noticed that apr installed without --prefix option installs apr to /usr/local by default.

I also noticed apr-utils requires "--with-apr=/usr/local/apr" option to configure.

And another thing is apache2.4 installed with "--prefix=/usr" option will install inside /usr path, merging things with already existing folders and creating folders which doesn't exist.

And the installation which is only made this way is working fine and I can see result in 127.0.0.1.

Can some one explain why I cannot start server from /usr/local/apache2 ?

Please help me.

 

Padmahas Bn | 31 Mar 13:08 2015
Picon

Only apache 2.4 installed in /usr works fine but not in "/usr/local/apache2" please help me.

I noticed that apr installed without --prefix option installs apr to /usr/local by default.

I also noticed apr-utils requires "--with-apr=/usr/local/apr" option to configure.

And another thing is apache2.4 installed with "--prefix=/usr" option will install inside /usr path, merging things with already existing folders and creating folders which doesn't exist.

And the installation which is only made this way is working fine and I can see result in 127.0.0.1.

Can some one explain why I cannot start server from /usr/local/apache2 ?
Please help me.
Padmahas Bn | 31 Mar 12:36 2015
Picon

sudo: apachectl: command not found

If anyone finds this as a big question please let me know. I'll precise my problem.

Steps I followed:

I installed apr and apr-utils package in the path "/usr" using the --prefix option.

Both were installed successfully. Hence I installed apache 2.4 to the same path ("/usr") using --prefix option while running "./configure" .

Later I came to know if prefix is not mentioned for apache2.4 installation, it will be installed inside /usr/local/apache2 by default.

Hence I again installed without specifying --prefix option which does installed the apache2 into /usr/local/apache2.

Now I cd to /usr/local/apache2/bin and run sudo apachectl -k start and the apache server was started successfully. Only later I came to know the server is running from the /usr files  installed at first time.

Instead of having 2 installations I thought of removing the one installed inside /usr and deleted all files manually and carefully from all sub folders of /usr.

Now when I run the server from /usr/local/apache2 using " sudo apachectl -k start " it says sudo: apachectl: command not found

So I supplied full path using " sudo /usr/local/apache2/bin/apachectl -k start "

But its giving " httpd: Could not open configuration file /usr/conf/httpd.conf: No such file or directory ".

Thank you.
Tim Johnson | 31 Mar 03:31 2015

Scriptalias redirect not working on ubuntu 14.04

On ubuntu 14.04, I have made the following modifications to
/etc/apache2/conf-available :
[code begins]
<IfModule mod_alias.c>
    <IfModule mod_cgi.c>
        Define ENABLE_USR_LIB_CGI_BIN
    </IfModule>

    <IfModule mod_cgid.c>
        Define ENABLE_USR_LIB_CGI_BIN
    </IfModule>

    <IfDefine ENABLE_USR_LIB_CGI_BIN>
        #ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        ScriptAlias /cgi-bin/ /home/http/run/
        #<Directory "/usr/lib/cgi-bin">
        <Directory "/home/http/run">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Require all granted
        </Directory>
    </IfDefine>
</IfModule>
[code ends]

I.E. /usr/lib/cgi-bin is changed to /home/http/run

A simple shell script named 'cgitest' is provided and is set as executable.
After pointing the browser to http://localhost/cgi-bin/cgitest, I get a "not
found" error. If I point the browser to http://localhost/run/cgitest,
I get the code for cgitest, _not_ the output.

What else to I need to do?

thanks
--

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
Stephen Liu | 30 Mar 11:01 2015

Apache default page not displayed

Hi all,

OS - LinuxMint 17

Not displaying Apache2 default page - "It Works"

Apache2 is running
# /etc/init.d/apache2 start
* Starting web server apache2

ls /var/www/
ballet  classic  hymn        info.php  string
bible   html     index.html  opera     wordpress

html is a directory                                               

On browser run - localhost/index.html
Not Found
The requested URL /index.html was not found on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80

Please help.  TIA

Regards
Stephen L

Ethan Rosenberg | 30 Mar 05:51 2015

Apache is Slow

Dear List -

When I call another page in PHP, Apache can take 5 to 10 minutes to open the page.

Example:

         <script type="text/javascript">
         <!--
		window.location.assign("http://localhost/HandleWeight.php");
         //-->\
        </script>

can take 5 - 10 min.

 > root <at> meow:/var/www# /usr/sbin/apache2 -V
 > Config variable ${APACHE_LOCK_DIR} is not defined
 > --> Mutex file:${APACHE_LOCK_DIR} default
 >
 > Config variable ${APACHE_PID_FILE} is not defined
 > --> # PidFile: The file in which the server should record its
 > process
 > # identification number when it starts.
 > # This needs to be set in /etc/apache2/envvars
 > #
 > PidFile ${APACHE_PID_FILE}
 > /etc/apache2/envvars
 > --> export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
 >
 >
 > Config variable ${APACHE_RUN_USER} is not defined
 > Config variable ${APACHE_RUN_GROUP} is not defined
 > --> # These need to be set in /etc/apache2/envvars
 > User ${APACHE_RUN_USER}
 > Group ${APACHE_RUN_GROUP}
 > /etc/apache2/envvars
 > --> export APACHE_RUN_USER=www-data
 > export APACHE_RUN_GROUP=www-data
 >
 >
 > Config variable ${APACHE_LOG_DIR} is not defined  >> this error
 > message appears 5 times??
 > --> ErrorLog ${APACHE_LOG_DIR}/error.log
 >
 >
 > AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf
 > --> I tried to strip out the comments, and came up with less than
 > 74 lines.
 >
 >
 > Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
 > --> See above.
 >
root <at> meow:/home/ethan/BluBev# ps -A |grep apache2
11972 ?        00:00:30 apache2
22196 ?        00:00:00 apache2
22197 ?        00:00:00 apache2
22198 ?        00:00:00 apache2
22199 ?        00:00:00 apache2
22200 ?        00:00:00 apache2

Totally confused.

TIA

Ethan
| 30 Mar 01:34 2015

compile and install from source

Downloaded and compiled bind-9.9.7 (FreeBSD 8.4-RELEASE) and it built fine (./configure && make && make install).

If I try to start named (service named start), it starts this version instead of the version in /usr/local/sbin

I found this in /etc/defaults/rc,conf:

named_enable="NO"               # Run named, the DNS server (or NO).
named_program="/usr/sbin/named" # Path to named, if you want a different one.
named_conf="/etc/namedb/named.conf"     # Path to the configuration file
#named_flags=""                 # Use this for flags OTHER than -u and -c
named_uid="bind"                # User to run named as
named_chrootdir="/var/named"    # Chroot directory (or "" not to auto-chroot it)
named_chroot_autoupdate="YES"   # Automatically install/update chrooted
                               # components of named. See /etc/rc.d/named.
named_symlink_enable="YES"      # Symlink the chrooted pid file
named_wait="NO"                 # Wait for working name service before exiting
named_wait_host="localhost"     # Hostname to check if named_wait is enabled
named_auto_forward="NO"         # Set up forwarders from /etc/resolv.conf
named_auto_forward_only="NO"    # Do "forward only" instead of "forward first”

So I changed the path (in /etc/rc.conf) to /usr/local/sbin/named

But now I get:

$ /etc/rc.d/named start
Starting named.
/etc/rc.d/named: WARNING: failed to start named

But nothing is logged in /var/log/messages

For now, I am pointing back to the old 9.8.4 version.

--

-- 
'Somewhere, A Crime Is Happening,' said Dorfl. --Feet of Clay
@lbutlr | 29 Mar 08:46 2015

compile and install from source

Downloaded and compiled bind-9.9.7 and it built fine (./configure && make && make install). but 
/usr/sbin/named is still 9.8

If I try to start named (service named start), it starts this version instead of the version in /usr/local/sbin

I assume I need to either replace /etc/rc.d/named or fix it somehow?

--

-- 
what was supposed to be so special about a full moon? It was only a big
circle of light. And the dark of the moon was only darkness. But
half-way between the two, when the moon was between the worlds of light
and dark, when even the moon lived on the edge... maybe then a witch
could believe in the moon. --Witches Abroad

Gmane