Есть вопрос по PuTTY

danil_a
На сайте с 15.12.2009
Offline
13
1797

PuTTY он же ssh клиент.

У меня такой ламерский вопрос...

Ставлю eAcellerator через ssh,


1)
apt-get install php5-dev
apt-get install make
cd /tmp/
wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
tar xvjf eaccelerator-0.9.5.3.tar.bz2
cd eaccelerator-0.9.5.3
phpize
./configure –enable-eaccelerator=shared
make
make install

server:/tmp/eaccelerator-0.9.5.3#

дальше нужно ввести
mkdir -p /var/cache/eaccelerator
chmod 0777 /var/cache/eaccelerator
Но из-за строчки
server:/tmp/eaccelerator-0.9.5.3#
команда несрабатывает, почему?
как перейти обратно на server:# и нужно ли?

2)server:/tmp/eaccelerator-0.9.5.3# vi /etc/php5/apache2/php.ini


; eAccelerator configuration
; Note that eAccelerator may also be installed as a PHP extension or as a zend_extension
; If you are using a thread safe build of PHP you must use
; zend_extension_ts instead of zend_extension
extension = “eaccelerator.so”
eaccelerator.shm_size = “16″
eaccelerator.cache_dir = “/var/cache/eaccelerator”
---
-
-
-
-
-
-
-и т.д
как в PuTTY сохранить конфиг например php.ini, после редактирования?

/Как проверить установился акселиратор или нет?

Профи вопросы конечно могут расмешить, но флудить нестоит, кто неможет дать адекватного ответа идем флудить в другие темы:)

С наступающим всех:crazy:

КОНТЕНТ Туризм/Хобби/Отдых 1$ за 1000знк.!!!!!!! (http://advego.ru/shop/text/982333/?p=87sFkAfbTu)
I
На сайте с 27.12.2009
Offline
0
#1

привет

php -i |grep eacc

или phpinfo(); в скрипт и вызвать уже из браузера где ctrl-f по слову eacc

BS
На сайте с 22.06.2009
Offline
73
#2

Во-первых, что именно пишет на ту команду которая не срабатывает, как вы определили что она не сработала?

Второе, в vi нажимаете :wq - это сохранит изменения и выйдет.

Либо поставьте mc и редактируйте там.

После установки php -v, или php -m, в конце должна быть строчка eaccelerator-а.

И не забудьте рестартовать вебсервер, если у вас пхп как модуль апача например.

А вообще, ставьте xcache если вам не принципиально как акселератор, xcache есть в репозах дебиана.

Himiko
На сайте с 28.08.2008
Offline
560
#3
как в PuTTY сохранить конфиг например php.ini, после редактирования?

Это не в PuTTY, а в vi :)

Сохранить, набрав:

:wq! и нажать [ENTER] (именно нажать "двоеточие", потом "w","q","!", а потом нажать ENTER)

Профессиональное администрирование серверов (https://systemintegra.ru). Круглосуточно. Отзывы (/ru/forum/834230) Лицензии (http://clck.ru/Qhf5) ISPManager,VDSManager,Billmanager e.t.c. по низким ценам.
P
На сайте с 20.06.2005
Offline
61
#4

Для тебя лучше всего подойдет mc

его можно поставить командой


apt-get install mc

далее просто запуск либо самого mc (MidnightCommander)


# mc

либо самого редактора


# mcedit <path/filename>

Всех с наступающим :)

С уважением, Георгий
danil_a
На сайте с 15.12.2009
Offline
13
#5
Это не в PuTTY, а в vi

теперь знаю:)

Для тебя лучше всего подойдет mc

остановился на MidnightCommander, спасибо.

люди добрые, подскажите плз

после переустановки vds(ос debian5), апач вроде нормально стартует, но при попытке зайти на страницу, в браузер вылезает 404-я ошибка,

Not Found

The requested URL /index.php was not found on this server.
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g Server at site.ru Port 80

а в лог лезет сообщение "file does not exist: <путь>".

говорит, что корневого каталога сайта нет, хотя он точно есть и права на нем стоят нормальные. в чем может быть причина? :(

[Tue Dec 29 01:32:04 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 01:32:04 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue Dec 29 01:32:06 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 01:32:06 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Dec 29 01:35:35 2009] [error] [client 66.249.65.4] File does not exist: /htdocs
[Tue Dec 29 01:35:55 2009] [error] [client 66.249.65.4] File does not exist: /htdocs
[Tue Dec 29 01:35:57 2009] [error] [client 66.249.65.4] File does not exist: /htdocs
[Tue Dec 29 01:36:15 2009] [error] [client 66.249.65.4] File does not exist: /htdocs
[Tue Dec 29 01:36:43 2009] [error] [client 81.25.58.23] File does not exist: /htdocs, referer: http://www.ovale.ru----???
[Tue Dec 29 01:40:37 2009] [error] [client 95.83.62.230] File does not exist: /htdocs
[Tue Dec 29 01:47:32 2009] [error] [client 123.125.66.79] File does not exist: /htdocs
[Tue Dec 29 01:55:41 2009] [error] [client 85.114.85.233] File does not exist: /htdocs
[Tue Dec 29 01:55:42 2009] [error] [client 67.195.37.187] File does not exist: /htdocs
[Tue Dec 29 01:55:42 2009] [error] [client 67.195.37.187] File does not exist: /htdocs
[Tue Dec 29 01:55:43 2009] [error] [client 85.114.85.233] File does not exist: /htdocs
[Tue Dec 29 01:55:46 2009] [error] [client 85.114.85.233] File does not exist: /htdocs
[Tue Dec 29 02:00:40 2009] [error] [client 66.249.65.9] File does not exist: /htdocs
[Tue Dec 29 02:01:03 2009] [error] [client 95.83.62.230] File does not exist: /htdocs
[Tue Dec 29 02:03:46 2009] [error] [client 220.181.7.71] File does not exist: /htdocs
[Tue Dec 29 02:13:12 2009] [error] [client 95.83.62.230] File does not exist: /htdocs
[Tue Dec 29 02:13:12 2009] [error] [client 95.83.62.230] File does not exist: /htdocs, referer: http://mysite.ru/
[Tue Dec 29 02:15:02 2009] [notice] Graceful restart requested, doing restart
[Tue Dec 29 02:15:02 2009] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.
[Tue Dec 29 02:15:03 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Dec 29 02:15:03 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 02:15:03 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Dec 29 02:15:51 2009] [notice] Graceful restart requested, doing restart
[Tue Dec 29 02:15:51 2009] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.
[Tue Dec 29 02:15:51 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Dec 29 02:15:51 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 02:15:51 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Dec 29 02:19:26 2009] [notice] Graceful restart requested, doing restart
[Tue Dec 29 02:19:26 2009] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.
[Tue Dec 29 02:19:26 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Dec 29 02:19:27 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 02:19:27 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Dec 29 02:22:03 2009] [error] [client 95.83.62.230] File does not exist: /htdocs, referer: https://92.63.103.240/manager/ispmgr
[Tue Dec 29 02:22:45 2009] [error] [client 95.83.62.230] File does not exist: /htdocs, referer: https://92.63.103.240/manager/ispmgr
[Tue Dec 29 02:23:54 2009] [error] [client 95.83.62.230] File does not exist: /htdocs, referer: https://92.63.103.240/manager/ispmgr
[Tue Dec 29 02:26:25 2009] [error] [client 95.83.62.230] File does not exist: /htdocs, referer: https://92.63.103.240/manager/ispmgr
[Tue Dec 29 02:35:21 2009] [notice] Graceful restart requested, doing restart
[Tue Dec 29 02:35:21 2009] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.
[Tue Dec 29 02:35:21 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Dec 29 02:35:21 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 02:35:21 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Dec 29 02:54:02 2009] [error] [client 91.209.196.76] File does not exist: /htdocs
[Tue Dec 29 03:21:52 2009] [error] [client 95.83.62.230] File does not exist: /htdocs, referer: https://92.63.103.240/manager/ispmgr
[Tue Dec 29 03:23:02 2009] [notice] Graceful restart requested, doing restart
[Tue Dec 29 03:23:02 2009] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.
[Tue Dec 29 03:23:02 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Dec 29 03:23:03 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 03:23:03 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Dec 29 04:03:20 2009] [notice] caught SIGTERM, shutting down
[Tue Dec 29 04:03:21 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 04:03:21 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue Dec 29 04:03:22 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 29 04:03:22 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Dec 29 04:07:31 2009] [error] [client 95.83.62.230] File does not exist: /htdocs, referer: https://92.63.103.240/manager/ispmgr

пробовал и с виртульными серверами, но там такой же затык :(

при обращении к любому из них получается эта же ошибка

уж не знаю, куда копать :(((

поставил дебиан, добавил домен и капец.

C2
На сайте с 14.07.2009
Offline
83
#6
[Tue Dec 29 02:15:02 2009] [warn] The Alias directive in /etc/apache2/apache2.conf at line 240 will probably never match because it overlaps an earlier Alias.

меня вот эта строчка смущает

сделайте пожалуйста

cat /etc/apache2/apache2.conf|grep Alias

cyber2 добавил 29.12.2009 в 10:45

А у Вас /htdocs существует и права на него нормальные стоят?

danil_a
На сайте с 15.12.2009
Offline
13
#7

cat /etc/apache2/apache2.conf|grep Alias

# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
Alias /icons/ "/usr/share/apache2/icons/"
# To use CGI scripts outside of ScriptAliased directories:
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# Alias /error/include/ "/your/include/path/"
# Alias /error/ "/usr/share/apache2/error/"
ServerAlias www.site.ru *.site.ru
ScriptAlias /php-bin/ /var/www/dassp/data/php-bin/
ScriptAlias /cgi-bin/ /var/www/dassp/data/www/site.ru/cgi-bin/
/htdocs существует

htdocs ненашел, может нетам искал:)

danil_a добавил 29.12.2009 в 15:08

включил php как модуль апача, заработало

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий