Ricompilato e aggiornato apache modssl php

cd mod_ssl-2.8.28-1.3.37

./configure –with-apache=../../apache_1.3.37 –with-ssl=/usr/local/ssl
–enable-shared=ssl –with-mm=/usr/local

cd ../../apache_1.3.37

EAPI_MM="/usr/local" SSL_BASE="/usr/local/ssl" ./configure
–enable-module=so –enable-shared=ssl –enable-module=ssl
–enable-module=rewrite

make && make install

cd ../php/php-4.4.4

./configure –with-mysql=/usr/local/mysql –with-openssl=/usr/local/ssl
–with-apxs=/usr/local/apache/bin/apxs –enable-mbstring
–with-mm=/usr/local –with-zlib –with-gd

make && make install

aggiunto a httpd.conf


AddModule mod_rewrite.c

Ricompilazione php

è stato necessario ricompilare perchè mancava il supporto zlib e gd

./configure –with-mysql=/usr/local/mysql –with-openssl=/usr/local/ssl
–with-apxs=/usr/local/apache/bin/apxs –enable-mbstring
–with-mm=/usr/local –with-zlib –with-gd

poi nn si collegava al db, è stato necessario creare un link da
/tmp/mysql.sock a /var/lb/mysql/mysql.sock
e cambaire i permessi della dir /var/lib/mysql con un chmod ugo+x

MRSB – Sistema di prenotazione aule active directory windows server 2003 R2

Hi,
first of all, i'm sorry for my bad english!

I solved some problem occurred in ldap authentication with ADS Windows
2003 R2.

i've changed:

auth_ldap.inc in this manner:

function authValidateUser($user, $pass)
{
global $auth;
global $ldap_host;
global $ldap_base_dn;
global $ldap_user_attrib;
global $ldap_filter;
global $account_suffix; // <——- added LINE 26

// establish ldap connection
// the '@' suppresses errors
$ldap = @ldap_connect($ldap_host);
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3); // <——– Added
line 77
ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0); //disable plain text
passwords // <——— Added line 78

// Check that connection was established

//if(@ldap_bind($ldap, $dn, $pass)) // <—- changed line 92 from …
if(@ldap_bind($ldap, $user.$account_suffix, $pass)) // <— … to


i've configured
config.inc.php
like this:

# Where is the LDAP server
$ldap_host = "172.21.1.20";
$ldap_base_dn = "cn=users, dc=pippo, dc=local";
$account_suffix = "@pippo.local";
$ldap_user_attrib = "sAMAccountName";

In the follow line there was an error …
#//$ldap_user_filter =
"memberOf=CN=ServicePrenotazioniSale,OU=ServiceGroup,dc=prvprato1,dc=local";

this is correct
$ldap_filter =
"memberOf=CN=ServicePrenotazioniSale,OU=ServiceGroup,dc=pippo,dc=local";

I hope someone can use this information to solve same problem.
Good bye.

P.S.
mrbs is a very good program!!!

Problemi con libmysqlclient.so e mysql binary installation

Ho scaricato ed estratto
MySQL-shared-4.1.18-0.i386.rpm
Poi ho copiato in /usr/local/mysql/lib
i file e i link che conteneva l'rpm
ho aggiunto /usr/local/mysql/lib in /etc/ld.so.conf
e ho lancato ldconfig

Fonte:

http://www.elbnet.com/supportlinks/mysql/manual_Placeholder.html

M.2.4 Problems Using the Perl |DBI|/|DBD| Interface
<http://www.elbnet.com/supportlinks/mysql/manual_toc.html#Perl_support_problems>

If Perl reports that it can't find the `../mysql/mysql.so' module, then
the problem is probably that Perl can't locate the shared library
`libmysqlclient.so'.

You can fix this by any of the following methods:

* Compile the |Msql-Mysql-modules| distribution with |perl
Makefile.PL -static -config| rather than |perl Makefile.PL|.
* Copy |libmysqlclient.so| to the directory where your other shared
libraries are located (probably `/usr/lib' or `/lib').
* On Linux you can add the pathname of the directory where
`libmysqlclient.so' is located to the `/etc/ld.so.conf' file.
* Add the pathname of the directory where `libmysqlclient.so' is
located to the |LD_RUN_PATH| environment variable.

If you get the following errors from |DBD-mysql|, you are probably using
|gcc| (or using an old binary compiled with |gcc|):

/usr/bin/perl: can't resolve symbol '__moddi3'
/usr/bin/perl: can't resolve symbol '__divdi3'

Add |-L/usr/lib/gcc-lib/… -lgcc| to the link command when the
`mysql.so' library gets built (check the output from |make| for
`mysql.so' when you compile the Perl client). The |-L| option should
specify the pathname of the directory where `libgcc.a' is located on
your system.

Another cause of this problem may be that Perl and MySQL aren't both
compiled with |gcc|. In this case, you can solve the mismatch by
compiling both with |gcc|.

If you get the following error from |Msql-Mysql-modules| when you run
the tests:

t/00base…………install_driver(mysql) failed: Can't load '../blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: ../blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: uncompress at /usr/lib/perl5/5.00503/i586-linux/DynaLoader.pm line 169.

it means that you need to include the compression library, -lz, to the
link line. This can be doing the following change in the file
`lib/DBD/mysql/Install.pm':

$sysliblist .= " -lm";

to

$sysliblist .= " -lm -lz";

After this, you MUST run 'make realclean' and then proceed with the
installation from the beginning.

If you want to use the Perl module on a system that doesn't support
dynamic linking (like SCO) you can generate a static version of Perl
that includes |DBI| and |DBD-mysql|. The way this works is that you
generate a version of Perl with the |DBI| code linked in and install it
on top of your current Perl. Then you use that to build a version of
Perl that additionally has the |DBD| code linked in, and install that.

On SCO, you must have the following environment variables set:

shell> LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/progressive/lib
or
shell> LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/lib:/usr/ccs/lib:/usr/progressive/lib:/usr/skunk/lib
shell> LIBPATH=/usr/lib:/lib:/usr/local/lib:/usr/ccs/lib:/usr/progressive/lib:/usr/skunk/lib
shell> MANPATH=scohelp:/usr/man:/usr/local1/man:/usr/local/man:/usr/skunk/man:

First, create a Perl that includes a statically linked |DBI| by running
these commands in the directory where your |DBI| distribution is located:

shell> perl Makefile.PL -static -config
shell> make
shell> make install
shell> make perl

Then you must install the new Perl. The output of |make perl| will
indicate the exact |make| command you will need to execute to perform
the installation. On SCO, this is |make -f Makefile.aperl inst_perl
MAP_TARGET=perl|.

Next, use the just-created Perl to create another Perl that also
includes a statically-linked |DBD::mysql| by running these commands in
the directory where your |Msql-Mysql-modules| distribution is located:

shell> perl Makefile.PL -static -config
shell> make
shell> make install
shell> make perl

Finally, you should install this new Perl. Again, the output of |make
perl| indicates the command to use.

Vi / Vim e cron… la soluzione a tutti i miei problemi

Da sempre uso vim (e lo invoco con il comando vi).
Su slackware, dopo l'insatllazione, la prima operazione che faccio è:
rm /usr/bin/vi
ln -s /usr/bin/vim /usr/bin/vi
e subito dopo
cp /usr/share/vim/vim63/vimrc_example.vim /root/.vimrc

il problema sta proprio in questo…
in /usr/share/vim/vim63/vimrc_example.vim ci sono delle impostazioni
che creano problemi con il funzionamento di cron
infatti, il comando crontab -e (lancato da root) nn mi funzionava e
nonostante apportassi modifiche cron nn se ne accorgeva neanche.
Tutto ok, invece, se lanciavo lo stesso comando x altri utenti
crontab -e -u pippo
tutto OK!!

Per risolvere è bastato aggiungere in /root/.vimrc la seguente riga

set backupcopy=yes

subito dopo la riga

set nocompatible

Adesso tutto funziona perfettamente.

Problemi con lilo… Come risolverli con Knoppix

Avviare knoppix (meglio con knoppix lang=it)

editare /etc/fstab
aggiungere alla partizione da montare
dopo nouser,exec
,dev
—–

adesso dare mount /mnt/sda1
poi
chroot /mnt/sda1
mount -t none /proc
poi lilo -C /etc/lilo.conf -v -t
poi lilo -C /etc/lilo.conf -v

 

oppure

So do this again:
mount /dev/sda4 /mnt
mount /dev/sda1 /mnt/boot
mount –bind /dev /mnt/dev
mount-t proc none /mnt/proc
mount -t sysfs none /mnt/sys
chroot /mnt

poi lilo -C /etc/lilo.conf -v -t
poi lilo -C /etc/lilo.conf -v

 

Saluti a tutti!!!

Squid – NTLM_AUTH – Permessi in base al gruppo

INTERESSANTE
Fonte:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/ntlm_auth.1.html

To setup ntlm_auth for use by squid 2.5 with
group limitation in addi-tion to the above example,
the following should be added to the
_squid.conf_ file.

auth_param ntlm program ntlm_auth –helper-protocol=squid-2.5-ntlmssp \
–require-membership-of='WORKGROUP\Domain Users'

auth_param basic program ntlm_auth –helper-protocol=squid-2.5-basic \
–require-membership-of='WORKGROUP\Domain Users'

Winbindd e Squid – Errore in avvio

Winbindd non parte e da il seguente errore:

invalid permissions on socket directory /var/lib/samba/winbindd_privileged

Soluzione:

chown -R root:squid /var/lib/samba/winbindd_privileged
chmod -R u+rwx /var/lib/samba/winbindd_privileged
chmod -R g-w /var/lib/samba/winbindd_privileged
chmod -R g+rx /var/lib/samba/winbindd_privileged
chmod -R o-rwx /var/lib/samba/winbindd_privileged

Configurazione di htdig + apache

[PDF]
Tutto nacque diversi anni fa… un buon progetto.. la raccolta del
sapere…

perchè, visto che siamo una classe affiatata e ci vogliamo un bene
dell’anima…
perchè non condividere il sapere fra noi e con il resto del mondo?

A tutti può far comodo…

Quindi, visto che nel frattempo nessuno si è mosso e te hai messo a
disposizione una
gran bella cosa (slack + adsl flat) (oltre al culo del quale però
disponiamo, chi +
chi – ormai da diversi anni) ho deciso di iniziare a pubblicare qualcosa.

Ho creato un file:

/etc/apache/documentazione.conf

ScriptAlias //cgi-bin// “//opt/www/cgi-bin//”
<Directory //opt/www/cgi-bin//>
AllowOverride None
Options +ExecCGI
FollowSymLinks
</Directory>

Alias //htdig// “//opt/www/htdocs/htdig//”
<Directory “/opt/www/htdocs/htdig”>
order allow,deny
Allow from all
Options Indexes FollowSymLinks
</Directory>

<Directory “/web/http/documentazione”>
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Ho creato la directory /web/http/documentazione [dove verrà messa la
documentazione che scriviamo/troviamo/ecc…]

Ho modificato la configurazione di default di htdig come segue:

/opt/www/htdig/conf/htdig.conf

# # Example config file for ht://Dig.
# # This configuration file is used by all the programs that make up ht://Dig.
# Please refer to the attribute reference manual for more details on what
# can be put into this file. (http://www.htdig.org/confindex.html)
# Note that most attributes have very reasonable default values so you
# really only have to add attributes here if you want to change the defaults.
# # What follows are some of the common attributes you might want to change. #
# # Specify where the database files need to go. Make sure that there is
# plenty of free disk space available for the databases. They can get
# pretty big. #

database_dir: /opt/www/htdig/db

# # This specifies the URL where the robot (htdig) will start. You can specify
# multiple URLs here. Just separate them by some whitespace.
# The example here will cause the ht://Dig homepage and related pages to be
# indexed. # You could also index all the URLs in a file like so:
# start_url: `${common_dir}/start.url`
#

start_url:

http://www.linux.widge.org/

#
# This attribute limits the scope of the indexing process. The default is to
# set it to the same as the start_url above. This way only pages that are on
# the sites specified in the start_url attribute will be indexed and it will
# reject any URLs that go outside of those sites.
# # Keep in mind that the value for this attribute is just a list of string
# patterns. As long as URLs contain at least one of the patterns it will be
# seen as part of the scope of the index. #

limit_urls_to: ${start_url}documentazione

# # If there are particular pages that you definitely do NOT want to index, you
# can use the exclude_urls attribute. The value is a list of string patterns.
# If a URL matches any of the patterns, it will NOT be indexed. This is
# useful to exclude things like virtual web trees or database accesses. By
# default, all CGI URLs will be excluded. (Note that the //cgi-bin// convention
# may not work on your web server. Check the path prefix used on your web
# server.) #

exclude_urls: //cgi-bin// .cgi

# # Since ht://Dig does not (and cannot) parse every document type, this
# attribute is a list of strings (extensions) that will be ignored during
# indexing. These are **only** checked at the end of a URL, whereas
# exclude_url patterns are matched anywhere.
#

bad_extensions: .wav .gz .z .sit .au .zip .tar .hqx .exe .com .gif \
.jpg .jpeg .aiff .class .map .ram .tgz .bin .rpm .mpg .mov .avi .css

# # The string htdig will send in every request to identify the robot. Change
# this to your email address. #

maintainer: s.magnolfi@aaa.it <mailto:s.magnolfi@comune.prato.it>

# # The excerpts that are displayed in long results rely on stored information
# in the index databases. The compiled default only stores 512 characters of
# text from each document (this excludes any HTML markup…) If you plan on
# using the excerpts you probably want to make this larger. The only concern
# here is that more disk space is going to be needed to store the additional
# information. Since disk space is cheap (! :-)) you might want to set this
# to a value so that a large percentage of the documents that you are going
# to be indexing are stored completely in the database. At SDSU we found
# that by setting this value to about 50k the index would get 97% of all
# documents completely and only 3% was cut off at 50k. You probably want to
# experiment with this value.
# Note that if you want to set this value low, you probably want to set the
# excerpt_show_top attribute to false so that the top excerpt_length characters
# of the document are always shown. #

max_head_length: 10000

# # To limit network connections, ht://Dig will only pull up to a certain limit
# of bytes. This prevents the indexing from dying because the server keeps
# sending information. However, several FAQs happen because people have files
# bigger than the default limit of 100KB. This sets the default a bit higher.
# (see <http://www.htdig.org/FAQ.html> for more) #

max_doc_size: 200000

# # Most people expect some sort of excerpt in results. By default, if the
# search words aren’t found in context in the stored excerpt, htsearch shows
# the text defined in the no_excerpt_text attribute:
# (None of the search words were found in the top of this document.)
# This attribute instead will show the top of the excerpt.
#

no_excerpt_show_top: true

# # Depending on your needs, you might want to enable some of the fuzzy search
# algorithms. There are several to choose from and you can use them in any
# combination you feel comfortable with. Each algorithm will get a weight
# assigned to it so that in combinations of algorithms, certain algorithms get
# preference over others. Note that the weights only affect the ranking of
# the results, not the actual searching. # The available algorithms are:
# accents
# exact
# endings
# metaphone
# prefix
# soundex
# substring
# synonyms
# By default only the “exact” algorithm is used with weight 1.
# Note that if you are going to use the endings, metaphone, soundex, accents,
# or synonyms algorithms, you will need to run htfuzzy to generate
# the databases they use. #

search_algorithm: exact:1 synonyms:0.5 endings:0.1

# # The following are the templates used in the builtin search results
# The default is to use compiled versions of these files, which produces
# slightly faster results. However, uncommenting these lines makes it
# very easy to change the format of search results.
# See <http://www.htdig.org/hts_templates.html> for more details. #
# template_map: Long long ${common_dir}/long.html \
# Short short ${common_dir}/short.html
# template_name: long
# # The following are used to change the text for the page index.
# The defaults are just boring text numbers. These images spice
# up the result pages quite a bit. (Feel free to do whatever, though)
#

next_page_text:
<img src=”/htdig/buttonr.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”next”>
no_next_page_text: prev_page_text:
<img src=”/htdig/buttonl.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”prev”>
no_prev_page_text: page_number_text:
‘<img src=”/htdig/button1.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”1″>’ \
‘<img src=”/htdig/button2.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”2″>’ \
‘<img src=”/htdig/button3.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”3″>’ \
‘<img src=”/htdig/button4.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”4″>’ \
‘<img src=”/htdig/button5.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”5″>’ \
‘<img src=”/htdig/button6.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”6″>’ \
‘<img src=”/htdig/button7.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”7″>’ \
‘<img src=”/htdig/button8.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”8″>’ \
‘<img src=”/htdig/button9.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”9″>’ \
‘<img src=”/htdig/button10.gif” border=”0″ align=”middle” width=”30″ height=”30″ alt=”10″>’

# # To make the current page stand out, we will put a border around the
# image for that page. #

no_page_number_text:
‘<img src=”/htdig/button1.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”1″>’ \
‘<img src=”/htdig/button2.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”2″>’ \
‘<img src=”/htdig/button3.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”3″>’ \
‘<img src=”/htdig/button4.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”4″>’ \
‘<img src=”/htdig/button5.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”5″>’ \
‘<img src=”/htdig/button6.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”6″>’ \
‘<img src=”/htdig/button7.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”7″>’ \
‘<img src=”/htdig/button8.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”8″>’ \
‘<img src=”/htdig/button9.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”9″>’ \
‘<img src=”/htdig/button10.gif” border=”2″ align=”middle” width=”30″ height=”30″ alt=”10″>’
# local variables:
# mode: text
# eval: (if (eq window-system ‘x) (progn (setq
font-lock-keywords (list ‘(“^#.*” . font-lock-keyword-face)
‘(“^[a-zA-Z][^ :]+” . font-lock-function-name-face)
‘(“[+$]*:” . font-lock-comment-face) )) (font-lock-mode)))

# end:

Ed ho creato un file documentazione.html

<html lang=”it”>
<head>
<title>www.linux.widge.org <http://www.linux.widge.org/> – Home Page</title>
</head>
<BODY background=”./image/slack_bg.jpg” text=”black” link=”black” vlink=”Black”>
<font size=”+4″>
<strong><em><div align=”center”>www.linux.widge.org <http://www.linux.widge.org/></div></em></strong>
</font>
<br><br><br><br>
<div align=”left”>
<strong><em><font size=”+2″>
<a href=”http://www.linux.widge.org/htdig/search.html” <http://www.linux.widge.org/htdig/search.html>>Cerca nella Documentazione</a>
</font></em></strong>
</div>
<br><br>
<div align=”left”>
<strong><em><font size=”+2″>
<a href=”http://www.linux.widge.org/documentazione/” <http://www.linux.widge.org/documentazione/>>Sfoglia la Documentazione</a>
</font></em></strong>
</div>
</body>
</html>

In pratica il funzionamento è il seguente:

Chi si collega a www.linux.widge.org <http://www.linux.widge.org/> vede
fra i link della home page un link a
documentazione.html che gli fa scegliere se sfogliare la documentazione
(cioè consultare la lista dei file contenuti nella directory) oppure
effettuare una ricerca con htdig.

Htdig non fa altro che indicizzare i file presenti nella sola directory
documentazione e permette ricerche mirate.

A questo punto mancherebbe soltanto la possibilità di uploadare
direttamente
la documentazione tramite un ftp con un utente e password conosciuta
solo da noi.