Premature end of ... つーのは content-type を吐いてない時によく見るかな・・
47 :名無しさん@お腹いっぱい。 :02/04/07 23:33
Apache2.xでPHP使えない?
sapi_apache2.c: In function `php_apache_sapi_ub_write': sapi_apache2.c:58: too few arguments to function `apr_brigade_create' sapi_apache2.c:61: too few arguments to function `apr_bucket_transient_create' sapi_apache2.c: In function `php_apache_sapi_flush': sapi_apache2.c:174: too few arguments to function `apr_brigade_create' sapi_apache2.c:175: too few arguments to function `apr_bucket_flush_create' sapi_apache2.c: In function `php_input_filter': sapi_apache2.c:257: too few arguments to function `apr_brigade_create' sapi_apache2.c: In function `php_output_filter': sapi_apache2.c:331: too few arguments to function `apr_brigade_create' sapi_apache2.c:386: too few arguments to function `apr_bucket_transient_create' sapi_apache2.c:395: too few arguments to function `apr_bucket_eos_create' *** Error code 1
Stop in /var/src/php-4.2.0RC1/sapi/apache2filter. *** Error code 1
Stop in /var/src/php-4.2.0RC1/sapi/apache2filter. *** Error code 1
Stop in /var/src/php-4.2.0RC1/sapi. *** Error code 1
28 名前:名無しさん 投稿日:2002/04/11(木) 15:50 SparcSolaris8でDSOなapache2つくろうと ./configure --enable-modules=so \ --enable-mods-shared=all \ --disable-auth-digest すると configure: error: mod_so has been requested but cannot be built on your system って怒られちゃう〜ん config.logみると srclib/apr/include/apr.h で apr_int64_t の typedefが ちゃんと定義されていなくて #error Can not determine the proper size for apr_int64_t だと… srclib/apr/configure みたけど、どうやら型のチェックでこけてる模様 んー… なにがなにやらさぱーりわからん gcc --version は2.95.2 なんだけど、こういう事象でてる人いません? おかげで ./configure;make も同理由でダメポ シクシク
あ、linuxだとちゃんとcompile up したが make -n install したら…ワラタ
> *** WARNING *** > >In order to build PHP as a Apache2 module on FreeBSD, you have to >add --with-tsrm-pth to your ./configure line. Therefore you need >to install gnu-pth from /usr/ports/devel/pth.
あとは、make install時に「Socket.phpが無いんじゃボケ!」とかいってコケたので 姑息にもtouch Socket.php にて何とかその場を誤魔化しました。 >Installing Net/Socket.php >cp: /usr/home/admin/work/php-4_2_0RC3/pear/Net/Socket.php: No such file or directory >*** Error code 1 >Stop in /usr/home/admin/work/php-4_2_0RC3/pear.
phpのconfigureオプションでRC3では、 --disable-cli Disable building CLI version of PHP. なのがRC4では、 --enable-cli EXPERIMENTAL: Enable building CLI version of PHP. に変更されてる模様。CLIインターフェース(wは今後は外れでせうか?
>warning, not much extra random data, consider using the -rand option >Generating RSA private key, 1024 bit long modulus >26546:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:m >d_rand.c:501:You need to read the OpenSSL FAQ, http://www.openssl.org/support/fa >q.html >26546:error:04069003:rsa routines:RSA_generate_key:BN lib:rsa_gen.c:182:
ログには、 [Mon May 6 12:07:24 2002] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost ad dress is not supported, proceeding with undefined results
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>Contents of /hoge/moge</title> </head> <body bgcolor="#ffeedd" text="black"> <h1>Contents of /hoge/moge</h1>
<VirtualHost xxx.xxx.xxx.xxx> ServerName aa.bb User test Group test DocumentRoot /home/test/public_html/aabb ErrorLog /var/log/httpd-aabb.error_log CustomLog /var/log/httpd-aabb.access_log common </VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx> ServerName www.aa.bb User test Group test DocumentRoot /home/test/public_html/aabb ErrorLog /var/log/httpd-aabb.error_log CustomLog /var/log/httpd-aabb.access_log common </VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx> ServerName www.aa.bb ServerAlias aa.bb # ← User test Group test DocumentRoot /home/test/public_html/aabb ErrorLog /var/log/httpd-aabb.error_log CustomLog /var/log/httpd-aabb.access_log common </VirtualHost>
Syntax error on line 331 of /usr/local/apache/conf/httpd.conf: Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration /usr/local/apache/bin/apachectl start: httpd could not be started
http://www.cert.org/advisories/CA-2002-17.html >Upgrade to the latest version >The Apache Software Foundation has released two new versions of >Apache that correct this vulnerability. System administrators >can prevent the vulnerability from being exploited by upgrading >to Apache version 1.3.25 or 2.0.39. The new versions of Apache >will be available from their web site at
Syntax error on line 205 of /usr/local/etc/apache/conf/httpd.conf: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration とおこられます。
>>502 ./configure するときに --enable-module=so つけて、DSO を on にすれ
504 :名無しさん@お腹いっぱい。 :02/06/19 12:20
httpd: module "mod_charset_lite.c" is not compatible with this version of Apache. Please contact the vendor for the correct version.
これの原因わかるかたいらっしゃいましたら教えてください。
505 :502 :02/06/19 12:35
>>503 それで、Moduleのエラーはでなくなりました。 しかし、 # /usr/local/etc/apache/bin/apachectl start /usr/local/etc/apache/bin/apachectl start: httpd could not be started という意味不明な事態がおきてしまいます。 なんで、立ち上がらないのでしょうか?
tomcat3.2.3と連携をしているのですが 1.3.23から1.3.26へアップしたところ Starting httpd: Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk2.conf: API module structure `jk_module' in file /etc/httpd/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO? と出て起動できなくなりました。 httpd.confの最後に Include /usr/local/tomcat/conf/mod_jk2.conf としています。
Apacheで同時アクセス数を制限するのは # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 60
# Limit on total number of servers running, i.e., limit on the number # of clients who can simultaneously connect --- if this limit is ever # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW. # It is intended mainly as a brake to keep a runaway server from taking # the system with it as it spirals down... # #最大実行サーバプロセス数(≒同時接続可能なクライアント数) MaxClients 150
The site www.mext.go.jp is running Apache/1.3.12 (Unix) on Solaris The site www.pref.osaka.jp is running Microsoft-IIS/4.0 on Linux The site www.opas.gr.jp is running Apache/1.3.26 (Unix) on Solaris 8 The site www.city.osaka.jp is running Netscape-Enterprise/3.6 on Solaris The site www.city.sakai.osaka.jp is running Apache/1.3.23 (Unix) on FreeBSD
www.pref.osaka.jpって GET / HTTP/1.0 すると、Apache/1.3.20 (Unix)なんだけど、 GET / HTTP/1.1 すると、Microsoft-IIS/4.0なんですね。 DQNな質問で申し訳ないですが、これってどういうことなんでしょうか?
The site www.pref.fukuoka.jp is running Apache/1.3.26 (Unix) on unknown. The site www.pref.saga.jp is running Apache/1.3.23 (TurboLinux) PHP/3.0.18-i18n-ja-2 on Linux. The site www.pref.kumamoto.jp is running Microsoft-IIS/4.0 on NT4/Windows 98. The site www.pref.miyazaki.jp is running Netscape-Enterprise/4.1 on HP-UX. The site www.pref.nagasaki.jp is running Rapidsite/Apa on IRIX. The site www.pref.oita.jp is running Apache/1.3.26 (Unix) on Solaris 8. The site www.pref.kagoshima.jp is running Apache/1.3.22 (Unix) on Solaris. The site www.pref.okinawa.jp is running Apache on FreeBSD.
*) Fixed off-by-one buffer overflow bug in the compatibility functionality (mapping of old directives to new ones). *) Fixed memory leak in processing of CA certificates. *) In case there is actually a certificate chain in the session cache, we now use the value of SSL_get_peer_certificate(ssl) to verify as it will have been removed from the chain before it was put in the cache. *) Seed the PRNG with a maximum of 1K from the internal scoreboard.
>>644 > http://www.modssl.org/ に、ちゃんとリモートから突ける > セキュリティホールがあるのかどうか書いてほしいよな。 > で、今回はこんな感じだ。 > > *) Fixed off-by-one buffer overflow bug in the compatibility > functionality (mapping of old directives to new ones). 十分書いてるようにみえるんですが… off-by-one調べれ
>>650 >> *) Fixed off-by-one buffer overflow bug in the compatibility >> functionality (mapping of old directives to new ones). > > 十分書いてるようにみえるんですが… > off-by-one調べれ
apache.org name server NS.HYPERREAL.org apache.org name server NS1.COVALENT.NET % host www.apache.org. ns.hyperreal.org. Using domain server: Name: ns.hyperreal.org Addresses: 209.133.83.22
www.apache.org has address 209.66.108.5 % host www.apache.org. ns1.covalent.net. Using domain server: Name: ns1.covalent.net Addresses: 64.84.21.103
Domain names in the .com, .net, and .org domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information.
No match for "APACH.ORG".
>>> Last update of whois database: Wed, 26 Jun 2002 04:49:57 EDT <<<
The Registry database contains ONLY .COM, .NET, .ORG, .EDU domains and Registrars.
Adds or modifies the password for user jsmith. The user is prompted for the password. If executed on a Windows system, the password will be encrypted using the modified Apache MD5 algorithm; otherwise, the system's crypt() routine will be used. If the file does not exist, htpasswd will do nothing except return an error. 初期値が追加、ってことじゃないの?
htpasswd -n[mdps] username htpasswd -nb[mdps] username password -c Create a new file. -n Don't update file; display results on stdout. -m Force MD5 encryption of the password. -d Force CRYPT encryption of the password (default). -p Do not encrypt the password (plaintext). -s Force SHA encryption of the password. -b Use the password from the command line rather than prompting for it. On Windows, TPF and NetWare systems the '-m' flag is used by default. On all other systems, the '-p' flag will probably not work.
/var/src/php-4.3.0-dev-zend2-alpha2/sapi/apache2filter/sapi_apache2.c: In function `php_register_hook': /var/src/php-4.3.0-dev-zend2-alpha2/sapi/apache2filter/sapi_apache2.c:567: too many arguments to function `ap_register_output_filter' /var/src/php-4.3.0-dev-zend2-alpha2/sapi/apache2filter/sapi_apache2.c:568: too many arguments to function `ap_register_input_filter' *** Error code 1
>934 http://httpd.apache.org/docs/vhosts/details.html If no matching vhost could be found the request is served from the first vhost with a matching port number that is on the list for the IP to which the client connected (as already mentioned before).
# /usr/local/apache/bin/apachectl start Syntax error on line 229 of /usr/local/apache/conf/httpd.conf: Cannot add module via name 'mod_so.c': not in list of loaded modules /usr/local/apache/bin/apachectl start: httpd could not be started