apache22 + perl
Добавлено: 2010-01-21 15:39:10
Требуется прикрутит perl к apache22. Перерыл кучу инфу ничего путного не нашел.
Наведите на мысль.
Наведите на мысль.
Часто, когда ты думаешь, что выбираешь между "сделать хорошо" и "сделать плохо", ты лишь влияешь на момент, когда это будет "сделано через жопу".
https://forum.lissyara.su/
Код: Выделить всё
http://faq.cs2.ru/readarticle.php?article_id=265
мм а как тогда еще может быть?hizel писал(а):где там написано что этот perl надо прикрутить к apache?
CTOPMbI4 писал(а):мм а как тогда еще может быть?
Код: Выделить всё
chmod +x install.pl
./install.pl
Код: Выделить всё
http://ip/stats/install/index.php
Код: Выделить всё
# cat /usr/local/etc/php/extensions.ini
extension=bz2.so
extension=ctype.so
extension=xmlwriter.so
extension=xml.so
extension=tokenizer.so
extension=session.so
extension=posix.so
extension=pdo.so
extension=pdo_sqlite.so
extension=json.so
extension=iconv.so
extension=hash.so
extension=pcre.so
extension=filter.so
extension=simplexml.so
extension=spl.so
extension=sqlite.so
extension=dom.so
extension=xmlreader.so
Код: Выделить всё
===> PHPizing for php5-dba-5.2.12
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
===> Configuring for php5-dba-5.2.12
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... i386-portbld-freebsd8.0
checking host system type... i386-portbld-freebsd8.0
checking target system type... i386-portbld-freebsd8.0
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for dpopen in -lqdbm... yes
checking for QDBM support... yes
checking for gdbm support... configure: error: You cannot combine --with-gdbm with --with-qdbm
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/databases/php5-dba/work/php-5.2.12/ext/dba/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/databases/php5-dba.
*** Error code 1
Stop in /usr/ports/databases/php5-dba.
*** Error code 1
Stop in /usr/ports/lang/php5-extensions.
*** Error code 1
Stop in /usr/ports/lang/php5-extensions.
Код: Выделить всё
csup -L 2 ports-supfile
cd /usr/ports/databases/php5-dba/
make clean
make config install clean
Код: Выделить всё
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for dpopen in -lqdbm... yes
checking for QDBM support... yes
checking for gdbm support... configure: error: You cannot combine --with-gdbm with --with-qdbm
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/databases/php5-dba/work/php-5.2.12/ext/dba/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/databases/php5-dba.
*** Error code 1
Stop in /usr/ports/databases/php5-dba.
Код: Выделить всё
The Firebird2 package has been configured with the following options:
Architecture : ClassicServer
Debug : disabled
64 bit I/O for 32-bit platforms : enabled
Raw devices : enabled
Lock manager : enabled
Service name : gds_db
Service port : 3050
GPRE modules : c_cxx.cpp
Install Dir : /var/db/firebird
Now type `make' to compile Firebird2
===> Building for firebird-client-2.0.3_2
==> Please do not build firebird as 'root' because this may cause conflicts with SysV semaphores of running services.
*** Error code 1
Stop in /usr/ports/databases/firebird20-client.
*** Error code 1
Код: Выделить всё
[Mon Feb 01 15:38:08 2010] [warn] Init: Session Cache is not configured [hint: S SLSessionCache]
[Mon Feb 01 15:38:08 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/loca l/sbin/suexec)
Код: Выделить всё
точнее он запускается
apachectl configtest
Syntax OK
Код: Выделить всё
ps -ax | grep http
1332 ?? I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
1723 ?? S 0:00.00 /usr/local/sbin/httpd -k start
Код: Выделить всё
/usr/local/etc/rc.d/apache22 stop
cat /var/log/httpd-error.log > /var/log/httpd-error.old.log
cat /dev/null > /var/log/httpd-error.log
/usr/local/etc/rc.d/apache22 start
Код: Выделить всё
cat /var/log/httpd-error.log
Код: Выделить всё
sockstat | grep httpd
www httpd 1903 3 stream /var/run/cgisock.1902
www httpd 1875 3 stream /var/run/cgisock.1874
www httpd 1855 3 stream /var/run/cgisock.1854
www httpd 1838 3 stream /var/run/cgisock.1837
www httpd 1459 3 stream /var/run/cgisock.1457
Код: Выделить всё
ps -A | grep httpd
1459 ?? I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
1838 ?? I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
1855 ?? I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
1875 ?? I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
Код: Выделить всё
grep -rin deny /usr/local/etc/apache22/*
Код: Выделить всё
/usr/local/etc/apache22/extra/httpd-autoindex.conf:25: Order allow,deny
/usr/local/etc/apache22/extra/httpd-dav.conf:22: Order Allow,Deny
/usr/local/etc/apache22/extra/httpd-info.conf:15: Order deny,allow
/usr/local/etc/apache22/extra/httpd-info.conf:16: Deny from all
/usr/local/etc/apache22/extra/httpd-info.conf:34: Order deny,allow
/usr/local/etc/apache22/extra/httpd-info.conf:35: Deny from all
/usr/local/etc/apache22/extra/httpd-manual.conf:15: Order allow,deny
/usr/local/etc/apache22/extra/httpd-multilang-errordoc.conf:29: Order allow,deny
/usr/local/etc/apache22/extra/httpd-userdir.conf:20: Order allow,deny
/usr/local/etc/apache22/extra/httpd-userdir.conf:24: Order deny,allow
/usr/local/etc/apache22/extra/httpd-userdir.conf:25: Deny from all
/usr/local/etc/apache22/httpd.conf:114: Order allow,deny
/usr/local/etc/apache22/httpd.conf:179: Order deny,allow
/usr/local/etc/apache22/httpd.conf:180: Deny from all
/usr/local/etc/apache22/httpd.conf:218: Order allow,deny
/usr/local/etc/apache22/httpd.conf:236: Order allow,deny
/usr/local/etc/apache22/httpd.conf:237: Deny from all
/usr/local/etc/apache22/httpd.conf:332: Order allow,deny
Код: Выделить всё
ServerRoot "/usr/local"
Listen 80
LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
LoadModule dumpio_module libexec/apache22/mod_dumpio.so
LoadModule include_module libexec/apache22/mod_include.so
LoadModule filter_module libexec/apache22/mod_filter.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dav_module libexec/apache22/mod_dav.so
LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule suexec_module libexec/apache22/mod_suexec.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule cgid_module libexec/apache22/mod_cgid.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_module libexec/apache22/libphp5.so
LoadModule fastcgi_module libexec/apache22/mod_fastcgi.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Alias /stat "/usr/local/www/lightsquid"
<Directory "/usr/local/www/lightsquid">
AddHandler cgi-script .cgi
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
User www
Group www
</IfModule>
</IfModule>
ServerAdmin mail@mal.ru
ServerName freebsd
DocumentRoot "/usr/local/www/apache22/data"
<Directory />
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/usr/local/www/apache22/data">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog "/var/log/httpd-error.log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "/var/log/httpd-access.log" combined
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/www/apache22/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig etc/apache22/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include etc/apache22/Includes/*.conf