Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 09, 2006, 11:59
Значи php-то и Апачето ми работят,но нямах mysql,поради което аз инсталнай mysql чрез: Примерен код | apt-get install mysql-server mysql-client apt-get install php5-mysql |
И сега действително имам mysql,влизам през конзолата в mysql монитора, но ги няма php функциите за mysql Значи направих си един скрипт за връзка с mysql:
Примерен код | <?php $server = "localhost"; $user = "root"; $password = ""; $conn = mysql_connect( $server, $user, $password ); if ($conn) { $msg = "Свързахте се с MySQL!"; } else { $msg = "Няма връзка!"; } ?> <html> <head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251"> <title>Опит за Връзка към MySQL!</title> </head> <body> <?php echo( $msg ); ?> </body> </html>
|
Но ето я и грешката:
Примерен код | Fatal error: Call to undefined function: mysql_connect() in /var/www/testconn.php on line 5 |
т.е. Според парсерът няма такава функция!? Някой да знае как да го оправя?
Титла: Mysql проблем
Публикувано от: sdr в Sep 09, 2006, 12:18
Прекомпилираш с mysql поддръжка и си готоф
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 09, 2006, 13:44
Така и направих, но сега пък когато се опитам да стартирам Apache-то и ми пише : Примерен код | debian:/home/netcutter# /etc/init.d/apache2 restart Forcing reload of apache 2.0 web server... ... no pidfile found! not running?. debian:/home/netcutter#
|
Какъв е тоя pidfile?
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 09, 2006, 13:59
Относно този pidfile го видях какво значи от apache2.conf: Примерен код | # Based upon the NCSA server configuration files originally by Rob McCool. # Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net> # and also by Thom May <thom@debian.org>.
# ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>); # you will save yourself a lot of trouble.
ServerRoot "/etc/apache2"
# The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename.
LockFile /var/lock/apache2/accept.lock
# PidFile: The file in which the server should record its process # identification number when it starts.
PidFile /var/run/apache2.pid
# Timeout: The number of seconds before receives and sends time out.
Timeout 300
# KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate.
KeepAlive On
# 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 100
# KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection.
KeepAliveTimeout 15
## ## Server-Pool Size Regulation (MPM specific) ##
# prefork MPM # StartServers ......... number of server processes to start # MinSpareServers ...... minimum number of server processes which are kept spare # MaxSpareServers ...... maximum number of server processes which are kept spare # MaxClients ........... maximum number of server processes allowed to start # MaxRequestsPerChild .. maximum number of requests a server process serves <IfModule prefork.c> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 20 MaxRequestsPerChild 0 </IfModule>
# pthread MPM # StartServers ......... initial number of server processes to start # MaxClients ........... maximum number of server processes allowed to start # MinSpareThreads ...... minimum number of worker threads which are kept spare # MaxSpareThreads ...... maximum number of worker threads which are kept spare # ThreadsPerChild ...... constant number of worker threads in each server process # MaxRequestsPerChild .. maximum number of requests a server process serves <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
# perchild MPM # NumServers ........... constant number of server processes # StartThreads ......... initial number of worker threads in each server process # MinSpareThreads ...... minimum number of worker threads which are kept spare # MaxSpareThreads ...... maximum number of worker threads which are kept spare # MaxThreadsPerChild ... maximum number of worker threads in each server process # MaxRequestsPerChild .. maximum number of connections per server process (then it dies) <IfModule perchild.c> NumServers 5 StartThreads 5 MinSpareThreads 5 MaxSpareThreads 10 MaxThreadsPerChild 20 MaxRequestsPerChild 0 AcceptMutex fcntl </IfModule>
User www-data Group www-data
# The following directives define some format nicknames for use with # a CustomLog directive (see below). LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent
# Global error log. ErrorLog /var/log/apache2/error.log
# Include module configuration: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations: Include /etc/apache2/httpd.conf
# Include ports listing Include /etc/apache2/ports.conf
# Include generic snippets of statements Include /etc/apache2/conf.d/[^.#]*
#Let's have some Icons, shall we? Alias /icons/ "/usr/share/apache2/icons/" <Directory "/usr/share/apache2/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
# Set up the default error docs. # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html #
# # Putting this all together, we can Internationalize error responses. # # We use Alias to redirect any /error/HTTP_<error>.html.var response to # our collection of by-error message multi-language collections. We use # includes to substitute the appropriate text. # # You can modify the messages' appearance without changing any of the # default HTTP_<error>.html.var files by adding the line; # # Alias /error/include/ "/your/include/path/" # # which allows you to create your own set of files by starting with the # /usr/local/apache2/error/include/ files and # copying them to /your/include/path/, even on a per-VirtualHost basis. #
<IfModule mod_negotiation.c> <IfModule mod_include.c> Alias /error/ "/usr/share/apache2/error/"
<Directory "/usr/share/apache2/error"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback </Directory>
ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var ErrorDocument 410 /error/HTTP_GONE.html.var ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
</IfModule> </IfModule>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
# UserDir is now a module #UserDir public_html #UserDir disabled root
#<Directory /home/*/public_html> # AllowOverride FileInfo AuthConfig Limit # Options Indexes SymLinksIfOwnerMatch IncludesNoExec #</Directory>
AccessFileName .htaccess
<Files ~ "^\.ht"> Order allow,deny Deny from all </Files>
UseCanonicalName Off
TypesConfig /etc/mime.types DefaultType text/plain
HostnameLookups Off
IndexOptions FancyIndexing VersionSort
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/*
# This really should be .jpg.
AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^
# This is from Matty J's patch. Anyone want to make the icons? #AddIcon /icons/dirsymlink.jpg ^^SYMDIR^^ #AddIcon /icons/symlink.jpg ^^SYMLINK^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* RCS CVS *,t
AddEncoding x-compress Z AddEncoding x-gzip gz tgz
AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .et AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage it .it AddLanguage ja .ja AddLanguage pl .po AddLanguage ko .ko AddLanguage pt .pt AddLanguage no .no AddLanguage pt-br .pt-br AddLanguage ltz .ltz AddLanguage ca .ca AddLanguage es .es AddLanguage sv .se AddLanguage cz .cz AddLanguage ru .ru AddLanguage tw .tw AddLanguage zh-tw .tw
LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
#AddDefaultCharset ISO-8859-1
AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen AddCharset ISO-8859-3 .iso8859-3 .latin3 AddCharset ISO-8859-4 .iso8859-4 .latin4 AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk AddCharset ISO-2022-JP .iso2022-jp .jis AddCharset ISO-2022-KR .iso2022-kr .kis AddCharset ISO-2022-CN .iso2022-cn .cis AddCharset Big5 .Big5 .big5 # For russian, more than one charset is used (depends on client, mostly): AddCharset WINDOWS-1251 .cp-1251 .win-1251 AddCharset CP866 .cp866 AddCharset KOI8-r .koi8-r .koi8-ru AddCharset KOI8-ru .koi8-uk .ua AddCharset ISO-10646-UCS-2 .ucs2 AddCharset ISO-10646-UCS-4 .ucs4 AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb AddCharset utf-7 .utf7 AddCharset utf-8 .utf8 AddCharset big5 .big5 .b5 AddCharset EUC-TW .euc-tw AddCharset EUC-JP .euc-jp AddCharset EUC-KR .euc-kr AddCharset shift_jis .sjis
#AddType application/x-httpd-php .php #AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
# To use CGI scripts outside /cgi-bin/: # #AddHandler cgi-script .cgi
# To use server-parsed HTML files # <FilesMatch "\.shtml(\..+)?$"> SetOutputFilter INCLUDES </FilesMatch>
# If you wish to use server-parsed imagemap files, use # #AddHandler imap-file map
BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0
# # The following directive disables redirects on non-GET requests for # a directory that does not include the trailing slash. This fixes a # problem with Microsoft WebFolders which does not appropriately handle # redirects for folders with DAV methods. #
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^gnome-vfs" redirect-carefully BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
# Allow server status reports, with the URL of http://servername/server-status # Change the ".your_domain.com" to match your domain to enable. # #<Location /server-status> # SetHandler server-status # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location>
# Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".your_domain.com" to match your domain to enable. # #<Location /server-info> # SetHandler server-info # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location>
# Include the virtual host configurations: Include /etc/apache2/sites-enabled/[^.#]*
|
Има ли някакво специално съдържание този файл и мога ли аз да генерирам един? Защото доколкото разбрах от файла той само добавя някакъв идентифиционен файл: # PidFile: The file in which the server should record its process # identification number when it starts.
Титла: Mysql проблем
Публикувано от: senser в Sep 09, 2006, 13:59
E защо се опитваш да го рестартираш, а не да го стартираш  pid файла съдържа номера (pid=process identificator) на процеса на апача
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 09, 2006, 17:33
Еми показва ми че се стартира, но като напиша localhost пак същата работа от какво може да е причинено това? А неможе ли да напиша някое произволно число за пид файл?
Титла: Mysql проблем
Публикувано от: TraNcEmIter в Sep 09, 2006, 19:13
Разгледай дали в /etc/php5/apache2/php.ini е пуснат myslq extension-a (може би е най-долу във файл-а)
Титла: Mysql проблем
Публикувано от: july в Sep 09, 2006, 19:14
А неможе ли да напиша някое произволно число за пид файл? можеш  но ефекта ще е че въпросното число ще се яви име на файл, в който апаша ще си пише/чете пид-номера на процеса... пусни си апаша със дебъг опция (или там както беше за провека на конфиг файла), или си погледни в логовете дали се стартира като хората, или какво не му харесва...
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 09, 2006, 20:30
А как се пуска тая опция? edit:А то иначе си пише какво не му харесва!Просто го няма тоя пид файл 
Титла: Mysql проблем
Публикувано от: july в Sep 09, 2006, 21:35
debian:/home/netcutter# /etc/init.d/apache2 restart Forcing reload of apache 2.0 web server... ... no pidfile found! not running?. debian:/home/netcutter#
тва не е грешка
давай /etc/init.d/apache2 stop /etc/init.d/apache2 stop
ps -ef | grep -i http
(на тва последното му дай изхода)
/etc/init.d/apache2 start
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 09, 2006, 21:49
Примерен код | debian:/home/netcutter# ps -ef | grep -i http root 6580 6454 0 21:49 pts/0 00:00:00 grep -i http debian:/home/netcutter# |
Титла: Mysql проблем
Публикувано от: july в Sep 09, 2006, 22:12
шъ мъ умориш  :):):):) като даде /etc/init.d/apache2 start ко стана?
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 10, 2006, 09:54
Аааа за това ли? Еми то винаги ми се стартирше така, уж нормално: Примерен код | debian:/home/netcutter# /etc/init.d/apache2 start Starting apache 2.0 web server.... debian:/home/netcutter#
|
Ама после пак нямам нищо като напиша localhost И все още като дам рестарт ми го дава това:
Примерен код | debian:/home/netcutter# /etc/init.d/apache2 restart Forcing reload of apache 2.0 web server... ... no pidfile found! not running?. debian:/home/netcutter#
|
Титла: Mysql проблем
Публикувано от: urud в Sep 10, 2006, 10:24
я погледни в /var/log/apache2 какво пише в error.log файловете
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 10, 2006, 11:41
Еми доста има за Апаша там!: Примерен код | [Wed Sep 06 15:29:52 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Wed Sep 06 15:29:52 2006] [notice] mod_python: using mutex_directory /tmp [Wed Sep 06 15:29:53 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Wed Sep 06 16:00:37 2006] [notice] caught SIGTERM, shutting down [Wed Sep 06 19:37:28 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Wed Sep 06 19:37:28 2006] [notice] mod_python: using mutex_directory /tmp [Wed Sep 06 19:37:29 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Wed Sep 06 20:32:13 2006] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Wed Sep 06 22:20:07 2006] [notice] caught SIGTERM, shutting down [Thu Sep 07 08:28:49 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Thu Sep 07 08:28:49 2006] [notice] mod_python: using mutex_directory /tmp [Thu Sep 07 08:28:51 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Thu Sep 07 12:44:22 2006] [notice] caught SIGTERM, shutting down [Thu Sep 07 15:08:09 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Thu Sep 07 15:08:09 2006] [notice] mod_python: using mutex_directory /tmp [Thu Sep 07 15:08:11 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Thu Sep 07 18:33:56 2006] [notice] caught SIGTERM, shutting down [Fri Sep 08 08:08:25 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Fri Sep 08 08:08:25 2006] [notice] mod_python: using mutex_directory /tmp [Fri Sep 08 08:08:27 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Fri Sep 08 12:23:19 2006] [notice] caught SIGTERM, shutting down [Fri Sep 08 18:10:52 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Fri Sep 08 18:10:52 2006] [notice] mod_python: using mutex_directory /tmp [Fri Sep 08 18:10:53 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Fri Sep 08 18:53:47 2006] [notice] caught SIGTERM, shutting down [Fri Sep 08 21:53:25 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Fri Sep 08 21:53:25 2006] [notice] mod_python: using mutex_directory /tmp [Fri Sep 08 21:53:27 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Fri Sep 08 22:19:04 2006] [notice] caught SIGTERM, shutting down [Sat Sep 09 09:30:08 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Sat Sep 09 09:30:08 2006] [notice] mod_python: using mutex_directory /tmp [Sat Sep 09 09:30:09 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Sat Sep 09 10:01:33 2006] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Sat Sep 09 11:25:39 2006] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Sat Sep 09 13:04:05 2006] [notice] caught SIGTERM, shutting down [Sat Sep 09 13:04:06 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Sat Sep 09 13:04:06 2006] [notice] mod_python: using mutex_directory /tmp [Sat Sep 09 13:04:06 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/4.4.2-1.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Sat Sep 09 13:23:54 2006] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Sat Sep 09 13:30:16 2006] [notice] caught SIGTERM, shutting down [Sat Sep 09 13:30:17 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Sat Sep 09 13:30:17 2006] [notice] mod_python: using mutex_directory /tmp [Sat Sep 09 13:30:17 2006] [notice] Apache/2.0.55 (Debian) mod_python/3.2.10 Python/2.4.4c0 PHP/5.1.4-0.1 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations [Sat Sep 09 13:35:13 2006] [notice] caught SIGTERM, shutting down [Sat Sep 09 13:35:14 2006] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads. [Sat Sep 09 13:35:14 2006] [notice] mod_python: using mutex_directory /tmp PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav PHP Warning: cl_loaddbdir: Unable to open file or directory\n in Unknown on line 0 PHP Fatal error: Unable to start clamav module in Unknown on line 0 LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav
|
Титла: Mysql проблем
Публикувано от: july в Sep 10, 2006, 12:30
дай изхода от
httpd -t
и после
httpd -X
второто ще го стартне в дебъг режим и ще плюе гршките е конзолата, дай ги и тях...
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 10, 2006, 12:44
bash: httpd: command not found 
Титла: Mysql проблем
Публикувано от: senser в Sep 10, 2006, 12:57
Цитат (_NetCutter_ @ Сеп. 10 2006,12:44) | bash: httpd: command not found  |
Това като root ли ?
Без да се обиждаш, ама пробвай да вкараш малко повече мисъл в съветите, които ти се дават и да не ги следваш на сляпо.
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 10, 2006, 13:30
Примерен код | netcutter@debian:~$ su Password: debian:/home/netcutter# httpd -t bash: httpd: command not found debian:/home/netcutter#
|
Е какво да напрвя?
Титла: Mysql проблем
Публикувано от: july в Sep 10, 2006, 13:51
нали си го инсталирал от пакет?
виж там кой apt нещо си, ти дава информация за файловете на пакета (кои са и къде са...)
ако си го компилирал ти с опциите по подразбиране, най-вероятно е във /usr/local/(s)bin
я пробвай
find / -name httpd
Титла: Mysql проблем
Публикувано от: senser в Sep 10, 2006, 13:55
Цитат (_NetCutter_ @ Сеп. 10 2006,13:30) | Примерен код | netcutter@debian:~$ su Password: debian:/home/netcutter# httpd -t bash: httpd: command not found debian:/home/netcutter#
|
Е какво да напрвя? |
Има следните възможности, за които се сещам:
1. апача е инсталиран на странно място, което не е в PATH - може да видиш стойността на PATH с "echo $PATH" и после да провериш в съответните директории дали има изпълним файл httpd (ако не знаеш какво точно е това PATH - погледни в нета) 2. по-вероятно ми се струва да не ти е инсталиран apache server-a - това го провери през пакетната си система.
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 10, 2006, 17:51
@july, нямам го явно това, щото нищо не намери А относно пакетите съм инсталнал пакет apache2 и още доста библиотеки. А като потърсих за пакет httpd ми изкара доста и нито един от тях не се казваше така, но намерих един wwwstat на койот описанието му е: httpd logfile analysis package. Да не би да трябва да го сложа? Или какво друго?
Титла: Mysql проблем
Публикувано от: july в Sep 10, 2006, 20:02
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 11, 2006, 09:34
Еми при мене файла е /usr/sbin/apache2,ама не ми го отваря с текстовият редактор. . . И как се гледа какви файлове ще си признае 
Титла: Mysql проблем
Публикувано от: alabal в Sep 11, 2006, 09:39
Цитат | Еми при мене файла е /usr/sbin/apache2,ама не ми го отваря с текстовият редактор. . . |
Значи всичко е наред - този файл е бинарен, не текстов. Конфигурации има в /etc/httpd, ако не се лъжа в Дебиан беше така.
Титла: Mysql проблем
Публикувано от: july в Sep 11, 2006, 09:45
Цитат (_NetCutter_ @ Сеп. 11 2006,09:34) | Еми при мене файла е /usr/sbin/apache2,ама не ми го отваря с текстовият редактор. . . И как се гледа какви файлове ще си признае  |
значи вместо httpd -нещо си дето съм казал по-нагоре... даваш /usr/sbin/apache -нещо си... (или /usr/sbin/apache2)
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 11, 2006, 10:08
Примерен код | debian:/home/netcutter# /usr/sbin/apache2 -t Syntax OK debian:/home/netcutter# /usr/sbin/apache2 -X debian:/home/netcutter# |
Но нищо не се промени Пак не може да се стартира апачето. .. Откакво може да е ?
Титла: Mysql проблем
Публикувано от: alabal в Sep 11, 2006, 10:14
Охххх, братко, за какво ли са направили ето този файл в Дебиан: /var/log/syslog за да можеш да гледаш какво ти говори системата с tail -f /var/log/syslog Целта да си свършиш по-бързо работата, като го четеш - повярвай ми - и аз задавах въпрос след въпрос преди да открия таз полезна команда и тоз безценен файл!
Титла: Mysql проблем
Публикувано от: july в Sep 11, 2006, 10:15
дай -X -e debug
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 11, 2006, 11:06
Примерен код | debian:/home/netcutter# /usr/sbin/apache2 -X -e debug [Mon Sep 11 11:05:15 2006] [debug] /home/skx/debian/sid/apache2/apache2-2.0.55/build-tree/apache2/modules/mappers/mod_so.c(248): loaded module cgi_module [Mon Sep 11 11:05:15 2006] [debug] /home/skx/debian/sid/apache2/apache2-2.0.55/build-tree/apache2/modules/mappers/mod_so.c(248): loaded module perl_module [Mon Sep 11 11:05:15 2006] [debug] /home/skx/debian/sid/apache2/apache2-2.0.55/build-tree/apache2/modules/mappers/mod_so.c(248): loaded module php5_module [Mon Sep 11 11:05:15 2006] [debug] /home/skx/debian/sid/apache2/apache2-2.0.55/build-tree/apache2/modules/mappers/mod_so.c(248): loaded module suphp_module debian:/home/netcutter#
|
А ето и syslog-a,качих го на док файл щото иначе не ми даваше да го запазя като файл на gedit-a: http://kvvpics.hit.bg/syslog.doc
Титла: Mysql проблем
Публикувано от: july в Sep 11, 2006, 11:14
махни го тва, и си го сложи от пакет (със apt get install)
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 11, 2006, 13:47
Кое да махна?Пакета apache2? Или въобще всичко свързано със сървъра?
Титла: Mysql проблем
Публикувано от: july в Sep 11, 2006, 14:07
инсталирай apache от пакет със apt get install
не махай нищо (засега) и пробвай пак горните неща...
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 11, 2006, 14:47
Примерен код | netcutter@debian:~$ su Password: debian:/home/netcutter# apt-get install apache Reading package lists... Done Building dependency tree... Done Suggested packages: apache-doc The following NEW packages will be installed: apache 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/391kB of archives. After unpacking 831kB of additional disk space will be used. Preconfiguring packages ... Selecting previously deselected package apache. (Reading database ... 94743 files and directories currently installed.) Unpacking apache (from .../apache_1.3.34-4_i386.deb) ... grep: /etc/apache/httpd.conf: No such file or directory Stopping apache 1.3 web server...No process in pidfile `/var/run/apache.pid' fou nd running; none killed. . Setting up apache (1.3.34-4) ... Not replacing deleted config file /etc/apache/httpd.conf Not replacing deleted config file /etc/apache/srm.conf Not replacing deleted config file /etc/apache/access.conf Not replacing deleted config file /etc/apache/modules.conf Can't open config file /etc/apache/httpd.conf. No such file or directory Can't open config file /etc/apache/httpd.conf. No such file or directory /usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory /usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory /usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory /usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory grep: /etc/apache/httpd.conf: No such file or directory Configuration syntax error detected, not starting/reloading... fopen: No such file or directory apache: could not open document config file /etc/apache/httpd.conf failed! invoke-rc.d: initscript apache, action "start" failed. dpkg: error processing apache (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: apache E: Sub-process /usr/bin/dpkg returned an error code (1) debian:/home/netcutter#
|
Защо да слагам пакет apache като имам пакет apache2,който е инсталнат?
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 11, 2006, 15:19
Значи успях да го инстална,и сега ми се появяват файловете които са в localhost-а,ама не се четат ако са php. В смисъл като пусна някой .php файл той започва да ми се сваля!
Титла: Mysql проблем
Публикувано от: july в Sep 11, 2006, 15:49
може и apache2 (много буквално четеш)
онова apache, което показа, и си зарежда разни работи от /home/crx .../build_tree, не е от пакет...
та идеята беше да си сложиш от пакет, което да тргъне (щото тва дето имаш тамън да тръгне и се спъва...)
и са да не земеш да сложиш apache2, виж дали няма apache2+php+mysql или нещо от сорта....
п.с. и като ползаваш пакетна система не е зле да я разучиш, т.е. какви пакети има, как са категоризириани и прочие...
apt cache search, не те съветвам, потърси из debian.org (там ми се струва по-прегледно)
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 12, 2006, 11:19
Сега ще започвам да разучавам, но иначе открих че като инсталнах apache в папката му имаше httpd.conf ,а в apache2 има вътре три реда които са коментирани!И копирах тоя файл от апаче в апаче2 ето го файла да го прегледате и да кажете кое да се поуправи! Аз барнах само там дето пише /etc/apache на /etc/apache2 Та ето го и файла: Примерен код | # This is here for backwards compatability reasons and to support # installing 3rd party modules directly via apxs2, rather than # through the /etc/apache2/mods-{available,enabled} mechanism. # #LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
## ## httpd.conf -- Apache HTTP server configuration file ##
# # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://www.apache.org/docs/> for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /etc/apache/srm.conf and then /etc/apache/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/usr/local/apache" will be interpreted by the # server as "/usr/local/apache/logs/foo.log". #
### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. #
# # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # #ServerType standalone
# # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept, unless they are specified # with an absolute path. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot /etc/apache2
# # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename. # LockFile /var/lock/apache.lock
# # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile /var/run/apache.pid
# # ScoreBoardFile: File used to store internal server process information. # Not all architectures require this. But if yours does (you'll know because # this file will be created when you run Apache) then you *must* ensure that # no two invocations of Apache share the same scoreboard file. # ScoreBoardFile /var/run/apache.scoreboard
# # In the standard configuration, the server will process this file, # srm.conf, and access.conf in that order. The latter two files are # now distributed empty, as it is recommended that all directives # be kept in a single file for simplicity. The commented-out values # below are the built-in defaults. You can have the server ignore # these files altogether by using "/dev/null" (for Unix) or # "nul" (for Win32) for the arguments to the directives. # #ResourceConfig /etc/apache/srm.conf #AccessConfig /etc/apache/access.conf
# # Timeout: The number of seconds before receives and sends time out. # Timeout 300
# # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On
# # 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 100
# # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15
# # Server-pool size regulation. Rather than making you guess how many # server processes you need, Apache dynamically adapts to the load it # sees --- that is, it tries to maintain enough server processes to # handle the current load, plus a few spare servers to handle transient # load spikes (e.g., multiple simultaneous requests from a single # Netscape browser). # # It does this by periodically checking how many servers are waiting # for a request. If there are fewer than MinSpareServers, it creates # a new spare. If there are more than MaxSpareServers, some of the # spares die off. The default values are probably OK for most sites. # MinSpareServers 5 MaxSpareServers 10
# # Number of servers to start initially --- should be a reasonable ballpark # figure. # StartServers 5
# # 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
# # MaxRequestsPerChild: the number of requests each child process is # allowed to process before the child dies. The child will exit so # as to avoid problems after prolonged use when Apache (and maybe the # libraries it uses) leak memory or other resources. On most systems, this # isn't really needed, but a few (such as Solaris) do have notable leaks # in the libraries. For these platforms, set to something like 10000 # or so; a setting of 0 means unlimited. # # NOTE: This value does not include keepalive requests after the initial # request per connection. For example, if a child process handles # an initial request and 10 subsequent "keptalive" requests, it # would only count as 1 request towards this limit. # MaxRequestsPerChild 100
# # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the <VirtualHost> # directive. # #Listen 3000 #Listen 12.34.56.78:80
# # BindAddress: You can support virtual hosts with this option. This directive # is used to tell the server which IP address to listen to. It can either # contain "*", an IP address, or a fully qualified Internet domain name. # See also the <VirtualHost> and Listen directives. # #BindAddress *
# # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Please read the file README.DSO in the Apache 1.3 distribution for more # details about the DSO mechanism and run `apache -l' for the list of already # built-in (statically linked and thus always available) modules in your apache # binary. # # Please keep this LoadModule: line here, it is needed for installation. Include /etc/apache2/modules.conf
# # ExtendedStatus: controls whether Apache will generate "full" status # information (ExtendedStatus On) or just basic information (ExtendedStatus # Off) when the "server-status" handler is called. The default is Off. # <IfModule mod_status.c> ExtendedStatus On </IfModule>
### Section 2: 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # <VirtualHost> definition. These values also provide defaults for # any <VirtualHost> containers you may define later in the file. # # All of these directives may appear inside <VirtualHost> containers, # in which case these default settings will be overridden for the # virtual host being defined. #
# # If your ServerType directive (set earlier in the 'Global Environment' # section) is set to "inetd", the next few directives don't have any # effect since their settings are defined by the inetd configuration. # Skip ahead to the ServerAdmin directive. #
# # Port: The port to which the standalone server listens. For # ports < 1023, you will need apache to be run as root initially. # Port 80
# # If you wish apache to run as a different user or group, you must run # apacheas root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run apache as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group nobody on these systems! # User www-data Group www-data
# # ServerAdmin: Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. # ServerAdmin webmaster@localhost
# # ServerName: allows you to set a host name which is sent back to clients for # your server if it's different than the one the program would get (i.e., use # "www" instead of the host's real name). # # Note: You cannot just invent host names and hope they work. The name you # define here must be a valid DNS name for your host. If you don't understand # this, ask your network administrator. # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address (e.g., http://123.45.67.89/) # anyway, and this will make redirections work in a sensible way. ServerName localhost # #ServerName new.host.name
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot /var/www
# # Each directory to which Apache has access, can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # permissions. # <Directory /> Options SymLinksIfOwnerMatch AllowOverride None </Directory>
# # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. #
# # This should be changed to whatever you set DocumentRoot to. # <Directory /var/www/>
# # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes Includes FollowSymLinks MultiViews
# # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride None
# # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory>
# # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. # <IfModule mod_userdir.c> UserDir public_html # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> </IfModule>
# # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.cgi index.php </IfModule>
# # AccessFileName: The name of the file to look for in each directory # for access control information. # AccessFileName .htaccess
# # The following lines prevent .htaccess files from being viewed by # Web clients. Since .htaccess files often contain authorization # information, access is disallowed for security reasons. Comment # these lines out if you want Web visitors to see the contents of # .htaccess files. If you change the AccessFileName directive above, # be sure to make the corresponding changes here. # # Also, folks tend to use names such as .htpasswd for password # files, so this will protect those as well. # <Files ~ "^\.ht"> Order allow,deny Deny from all </Files>
# # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each # document that was negotiated on the basis of content. This asks proxy # servers not to cache the document. Uncommenting the following line disables # this behavior, and proxies will be allowed to cache the documents. # #CacheNegotiatedDocs
# # UseCanonicalName: (new for 1.3) With this setting turned on, whenever # Apache needs to construct a self-referencing URL (a URL that refers back # to the server the response is coming from) it will use ServerName and # Port to form a "canonical" name. With this setting off, Apache will # use the hostname:port that the client supplied, when possible. This # also affects SERVER_NAME and SERVER_PORT in CGI scripts. # UseCanonicalName Off
# # TypesConfig describes where the mime.types file (or equivalent) is # to be found. # TypesConfig /etc/mime.types
# # DefaultType is the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. # DefaultType text/plain
# # The mod_mime_magic module allows the server to use various hints from the # contents of the file itself to determine its type. The MIMEMagicFile # directive tells the module where the hint definitions are located. # mod_mime_magic is not part of the default server (you have to add # it yourself with a LoadModule [see the DSO paragraph in the 'Global # Environment' section], or recompile the server and include mod_mime_magic # as part of the configuration), so it's enclosed in an <IfModule> container. # This means that the MIMEMagicFile directive will only be processed if the # module is part of the server. # <IfModule mod_mime_magic.c> MIMEMagicFile /usr/share/file/magic.mime </IfModule>
# # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it'd be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off
# Note that Log files are now rotated by logrotate, not by apache itself. # This means that apache no longer attempts to magically determine # where your log files are kept; you have to fill out stanzas in # /etc/logrotate.d/apache yourself.
# # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # ErrorLog /var/log/apache/error.log
# # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn
# # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" %T %v" full LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" %P %T" debug LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b \"%{forensic-id}n\"" forensic LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent
# # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a <VirtualHost> # container, they will be logged here. Contrariwise, if you *do* # define per-<VirtualHost> access logfiles, transactions will be # logged therein and *not* in this file. # #CustomLog /var/log/apache/access.log common
# # If you would like to have agent and referer logfiles, uncomment the # following directives. # #CustomLog /var/log/apache/referer.log referer #CustomLog /var/log/apache/agent.log agent
# # If you prefer a single logfile with access, agent, referer and forensic # information (Combined Logfile Format) you can use the following directive. # CustomLog /var/log/apache/access.log combined
<IfModule mod_log_forensic.c> ForensicLog /var/log/apache/forensic.log </IfModule>
# # Debugging information. With apache 1.3.31 two new debugging modules have been # introduced to facilitate this task: mod_backtrace and mod_whatkilledus. # They must NOT be used in production environment if not for debugging! # You must know what you are doing before enabling the modules and # uncommenting the following lines. # <IfModule mod_backtrace.c> EnableExceptionHook On # # Backtrace logs are written to error.log but optionally they can be # redirected to a different file. # # BacktraceLog /var/log/apache/backtrace.log # </IfModule>
<IfModule mod_whatkilledus.c> EnableExceptionHook On # # Whatkilledus logs are written to error.log but optionally they can be # redirected to a different file. # # WhatKilledUsLog /var/log/apache/whatkilledus.log # </IfModule>
# # Optionally add a line containing the server version and virtual host # name to server-generated pages (error documents, FTP directory listings, # mod_status and mod_info output etc., but not CGI generated documents). # Set to "EMail" to also include a mailto: link to the ServerAdmin. # Set to one of: On | Off | EMail # ServerSignature On
# # This directive controls whether Server response header field which is # sent back to clients includes a description of the generic OS-type of # the server as well as information about compiled-in modules. # Set to one of: Prod[uctOnly] | Min[imal] | OS | Full # If the directive is not specified the default is set to Full. # #ServerTokens Full
# # Aliases: Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn't aliased in this # example, only "/icons/".. #
<IfModule mod_alias.c> Alias /icons/ /usr/share/apache/icons/
<Directory /usr/share/apache/icons> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
Alias /images/ /usr/share/images/
<Directory /usr/share/images> Options MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </IfModule>
# # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # <IfModule mod_alias.c> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
# # "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory /usr/lib/cgi-bin/> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> </IfModule>
# # Redirect allows you to tell clients about documents which used to exist in # your server's namespace, but do not anymore. This allows you to tell the # clients where to look for the relocated document. # Format: Redirect old-URI new-URL #
# # Directives controlling the display of server-generated directory listings. #
<IfModule mod_autoindex.c>
# # FancyIndexing: whether you want fancy directory indexing or standard # IndexOptions FancyIndexing NameWidth=*
# # AddIcon* directives tell the server which icon to show for different # files or filename extensions. These are only displayed for # FancyIndexed directories. # AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/deb.gif .deb
AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^
# # DefaultIcon: which icon to show for files which do not have an icon # explicitly set. # DefaultIcon /icons/unknown.gif
# # AddDescription: allows you to place a short description after a file in # server-generated indexes. These are only displayed for FancyIndexed # directories. # Format: AddDescription "description" filename # #AddDescription "GZIP compressed document" .gz #AddDescription "tar archive" .tar #AddDescription "GZIP compressed tar archive" .tgz
# # ReadmeName: the name of the README file the server will look for by # default, and append to directory listings. # # HeaderName: the name of a file which should be prepended to # directory indexes. # # The module recognize only 2 kind of mime-types, text/html and # text/*, but the only method it has to identify them is via # the filename extension. The default is to include and display # html files. # ReadmeName README.html HeaderName HEADER.html
# Otherwise you can comment the 2 lines above and uncomment # the 2 below in order to display plain text files. # # ReadmeName README.txt # HeaderName HEADER.txt
# # IndexIgnore: a set of filenames which directory indexing should ignore # and not include in the listing. Shell-style wildcarding is permitted. # IndexIgnore .??* *~ *# HEADER.html HEADER.txt RCS CVS *,v *,t
# Uncomment the following IndexIgnore line to add README.* to the file # list that will not be displayed by mod_autoindex. # It is not enabled by default on Debian system to permit users to properly # browse Debian documentation (/doc/) # #IndexIgnore README.*
</IfModule>
# # Document types. # <IfModule mod_mime.c>
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) # uncompress information on the fly. Note: Not all browsers support # this. Despite the name similarity, the following Add* directives # have nothing to do with the FancyIndexing customization # directives above.
AddEncoding x-compress Z AddEncoding x-gzip gz tgz
# # AddLanguage: allows you to specify the language of a document. You can # then use content negotiation to give a browser a file in a language # it can understand. # # Note 1: The suffix does not have to be the same as the language # keyword --- those with documents in Polish (whose net-standard # language code is pl) may wish to use "AddLanguage pl .po" to # avoid the ambiguity with the common suffix for perl scripts. # # Note 2: The example entries below illustrate that in quite # some cases the two character 'Language' abbriviation is not # identical to the two character 'Country' code for its country, # E.g. 'Danmark/dk' versus 'Danish/da'. # # Note 3: There is 'work in progress' to fix this and get # the reference data for rfc3066 cleaned up. # # Danish (da) - Dutch (nl) - English (en) - Estonian (ee) # French (fr) - German (de) - Greek-Modern (el) # Italian (it) - Portugese (pt) - Luxembourgeois (lb) # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs) # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja) # AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage lb .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .se AddLanguage cs .cz
# LanguagePriority: allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change # this. # <IfModule mod_negotiation.c> LanguagePriority en da nl et fr de el it ja pl pt pt-br lb ca es sv </IfModule>
# # AddType allows you to tweak mime.types without actually editing # it, or to make certain files to be certain types. # # For example, the PHP 3.x module (not part of the Apache # distribution - see http://www.php.net) will typically use: # #AddType application/x-httpd-php3 .php3 #AddType application/x-httpd-php3-source .phps # # And for PHP 4.x, use: # #AddType application/x-httpd-php .php #AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz AddType image/bmp .bmp
# hdml AddType text/x-hdml .hdml
# # AddHandler allows you to map certain file extensions to "handlers", # actions unrelated to filetype. These can be either built into # the server or added with the Action command (see below). # # If you want to use server side includes, or CGI outside # ScriptAliased directories, uncomment the following lines. # # To use CGI scripts: # #AddHandler cgi-script .cgi .sh .pl
# # To use server-parsed HTML files mod_include has to be enabled. # <IfModule mod_include.c> AddType text/html .shtml AddHandler server-parsed .shtml </IfModule>
# # Uncomment the following line to enable Apache's send-asis HTTP # file feature. # #AddHandler send-as-is asis
# # If you wish to use server-parsed imagemap files, use # #AddHandler imap-file map
# # To enable type maps, you might want to use # #AddHandler type-map var
</IfModule> # End of document types.
# Default charset to iso-8859-1 (http://www.apache.org/info/css-security/).
AddDefaultCharset on
# # Action: lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for oft-used CGI file processors. # Format: Action media/type /cgi-script/location # Format: Action handler-name /cgi-script/location #
# # MetaDir: specifies the name of the directory in which Apache can find # meta information files. These files contain additional HTTP headers # to include when sending the document # #MetaDir .web
# # MetaSuffix: specifies the file name suffix for the file containing the # meta information. # #MetaSuffix .meta
# # Customizable error response (Apache style) # these come in three flavors # # 1) plain text #ErrorDocument 500 "The server made a boo boo. # n.b. the (") marks it as text, it does not get output # # 2) local redirects #ErrorDocument 404 /missing.html # to redirect to local URL /missing.html #ErrorDocument 404 /cgi-bin/missing_handler.pl # N.B.: You can redirect to a script or a document using server-side-includes. # # 3) external redirects #ErrorDocument 402 http://some.other_server.com/subscription_info.html # N.B.: Many of the environment variables associated with the original # request will *not* be available to such a script.
<IfModule mod_setenvif.c> # # The following directives modify normal HTTP response behavior. # The first directive disables keepalive for Netscape 2.x and browsers that # spoof it. There are known problems with these browser implementations. # The second directive is for Microsoft Internet Explorer 4.0b2 # which has a broken HTTP/1.1 implementation and does not properly # support keepalive when it is used on 301 or 302 (redirect) responses. # BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
# # The following directive disables HTTP/1.1 responses to browsers which # are in violation of the HTTP/1.0 spec by not being able to grok a # basic 1.1 response. # BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 </IfModule>
# If the perl module is installed, this will be enabled. <IfModule mod_perl.c> <IfModule mod_alias.c> Alias /perl/ /var/www/perl/ </IfModule> <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> </IfModule>
# # Allow http put (such as Netscape Gold's publish feature) # Use htpasswd to generate /etc/apache2/passwd. # You must unremark these two lines at the top of this file as well: #LoadModule put_module modules/mod_put.so #AddModule mod_put.c # #<IfModule mod_alias.c> # Alias /upload /tmp #</IfModule> #<Location /upload> # EnablePut On # AuthType Basic # AuthName Temporary # AuthUserFile /etc/apache2/passwd # EnableDelete Off # umask 007 # <Limit PUT> # require valid-user # </Limit> #</Location>
# # Allow server status reports, with the URL of http://servername/server-status # Change the ".your_domain.com" to match your domain to enable. # #<Location /server-status> # SetHandler server-status # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location>
# # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".your_domain.com" to match your domain to enable. # #<Location /server-info> # SetHandler server-info # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location>
# Allow access to local system documentation from localhost. # (Debian Policy assumes /usr/share/doc is "/doc/", at least from the localhost.) <IfModule mod_alias.c> Alias /doc/ /usr/share/doc/ </IfModule>
<Location /doc> order deny,allow deny from all allow from 127.0.0.0/255.0.0.0 Options Indexes FollowSymLinks MultiViews </Location>
# # There have been reports of people trying to abuse an old bug from pre-1.1 # days. This bug involved a CGI script distributed as a part of Apache. # By uncommenting these lines you can redirect these attacks to a logging # script on phf.apache.org. Or, you can record them yourself, using the script # support/phf_abuse_log.cgi. # #<Location /cgi-bin/phf*> # Deny from all # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi #</Location>
<IfModule mod_proxy.c> # # Proxy Server directives. Uncomment the following lines to # enable the proxy server: # #ProxyRequests On
#<Directory proxy:*> # Order deny,allow # Deny from all # Allow from .your_domain.com #</Directory>
# # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block # #ProxyVia On
# # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) # #CacheRoot "/var/cache/apache" #CacheSize 5 #CacheGcInterval 4 #CacheMaxExpire 24 #CacheLastModifiedFactor 0.1 #CacheDefaultExpire 1 #NoCache a_domain.com another_domain.edu joes.garage_sale.com
</IfModule> # End of proxy directives.
### Section 3: Virtual Hosts # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/> # for further details before you try to setup virtual hosts. # You may use the command line option '-S' to verify your virtual host # configuration.
# # If you want to use name-based virtual hosts you need to define at # least one IP address (and port number) for them. # #NameVirtualHost 12.34.56.78:80 #NameVirtualHost 12.34.56.78
# # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # #<VirtualHost ip.address.of.host.some_domain.com> # ServerAdmin [EMAIL=webmaster@host.some_domain.com]webmaster@host.some_domain.com[/EMAIL] # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error.log # CustomLog logs/host.some_domain.com-access.log common #</VirtualHost>
#<VirtualHost _default_:*> #</VirtualHost>
# Automatically added by the post-installation script # as part of the transition to a config directory layout # similar to apache2, and that will help users to migrate # from apache to apache2 or revert back easily Include /etc/apache2/conf.d
|
Титла: Mysql проблем
Публикувано от: redcure в Sep 12, 2006, 11:55
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 12, 2006, 15:23
Търсил съм, и го направих това, но без абсолютно никакъв резултат! Дали ще може да махна абсолютно всичко от копма ми свързано с php,apache,mysql,perl и прочие и да го сложа пак! защото забелязах че като махнах пакета апаче(щото имам апаче2) папката му със всички файлове си остана!
Титла: Mysql проблем
Публикувано от: redcure в Sep 12, 2006, 15:42
Какво си направил? Направил съм това, не ми говори нищо!
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 12, 2006, 18:56
Изпълних всичките стъпки които бяха в страницата която ми даде, както и от предишната страница! (под предишна страница имам предвид урока,който е преди тоя за апаче,а именно тоя за mysql)
Титла: Mysql проблем
Публикувано от: redcure в Sep 12, 2006, 20:52
Редактирал ли си /etc/apache2/apache2.conf, /etc/mime.types и т.н. както човека е показал?
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 13, 2006, 08:07
Да Ама не е ли проблема че няма пид файл? И няма ли начин да се направи по някакъв начин? Или ако не може, може ли да се махне всичко що е апаче, php, mysql, perl, и прочие и да се сложи пак по тоя урок?
Титла: Mysql проблем
Публикувано от: july в Sep 13, 2006, 09:16
pid файла, се прави като тръгне apache-to, ако не тръгне не се прави...
ако искаш бори се със симптома, или с причината, избора е твой
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 13, 2006, 10:47
ЕМи аз и да искам нз как Сега просто ме интересува как да махна всичко що е уеб-сървър от моя комп и да пробвам да го сложа по ония урок Ще съм ви благодарен ако помогнете 
Титла: Mysql проблем
Публикувано от: july в Sep 13, 2006, 11:11
слагай пакета с опция force или overwrite ...
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 13, 2006, 11:23
А това как се прави 
Титла: Mysql проблем
Публикувано от: redcure в Sep 13, 2006, 11:25
apt-get --purge remove Прочети това задължително
Титла: Mysql проблем
Публикувано от: july в Sep 13, 2006, 11:28
доколкото видях, е инсталирано и ръчно (със home/нещо_си/build_tree)
та ако не се инсталира със overwrite, може да останат конфиг файлове (и не само), които са "неверни"
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 13, 2006, 13:06
Ми. . .нещо не се получи. . ., уж се махна,ама пак се стартира, пак дава липса на пидфайл при рестарт : Примерен код | netcutter@debian:~$ su Password: debian:/home/netcutter# apt-get --purge remove apache2 Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: apache2* 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. Need to get 0B of archives. After unpacking 81.9kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 95277 files and directories currently installed.) Removing apache2 ... debian:/home/netcutter# |
Титла: Mysql проблем
Публикувано от: Hapkoc в Sep 13, 2006, 14:29
Добре бе, инсталиране на Apache/PHP/MySQL под Debian е едно от най-лесните неща, които съм правил.
1. Спри всички apache-та, които са пуснати в момента:
ps ax | grep -E '(apache|httpd)'
гледаш PID-овете на процесите и
kill -9 PID
2. Спираш автоматичното стартиране на apache:
update-rc.d -f apache remove update-rc.d -f apache2 remove
3. Разкарваш всички инсталирани apache-та:
apt-get --purge remove apache apache2 libapache-mod-php4 libapache2-mod-php4 php4-common php4-mysql
4. Инсталираш пакетите наново:
apt-get install apache2 libapache2-mod-php4 php4-mysql
5. Пробваш дали работи.
5 страници тема за тая простотия....
Титла: Mysql проблем
Публикувано от: july в Sep 13, 2006, 14:32
и ако има останал файл от ръчна инсталация, който пакетната система не би презаписала, почваме отново 
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 13, 2006, 14:37
Еми не трябваше още от инстала на Дебиан да избирам да сложи и уеб-сървър. . . И без друго на тоя Дебиан немам нищо!Викам да си ги сложа наново, но този път да не слагам от самата инсталация това Апаче,а по онзи урок! Но първо ще пробвам това което ми каза Hapkoc 
Титла: Mysql проблем
Публикувано от: senser в Sep 13, 2006, 14:47
освенако не ти е нужна някаква странна инсталация или по-особени рестрикции по-добре си инсталирай пакетите през пакетната система
Титла: Mysql проблем
Публикувано от: Hapkoc в Sep 13, 2006, 15:26
Цитат | и ако има останал файл от ръчна инсталация, който пакетната система не би презаписала, почваме отново |
Кой по-конкретно би бил този файл и какво би правил въпросния файл на място, на което би го намерил apache-а, който идва с debian пакета?
Титла: Mysql проблем
Публикувано от: july в Sep 13, 2006, 15:57
според зависи от настройките (или тези по подразбиране  по-правилно според мен е да пита кво да прави  ама явно по подразбиране при дебиан ги overwrite-ва, така че няма драма...
Титла: Mysql проблем
Публикувано от: Hapkoc в Sep 13, 2006, 16:12
Не те разбрах никак даже.
Debian не overwrite-ва по подразбиране файлове, които не са негови или са променяни. На мен въпроса ми беше, че няма какво да прави файл от ръчна инсталация на apache на място, където би се получил конфликт с debian пакета за apache. А дори да е имало такъв файл, apt-get --purge remove май май ще го изтърка.
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 13, 2006, 23:07
Може ли да ви питам нещо? Защо във всички примери се инсталва php4? Аз досега инсталвах php5 и затова ви питам нали така трябва? Все пак най-новата версия на php е 5.и нещо си Щото като правя реинстал да знам кво да слагам 
Титла: Mysql проблем
Публикувано от: sdr в Sep 14, 2006, 00:08
php5 не е напълно съвместимо с php4 и понеже болшинството сайтове са вече написани на php4 ....
Титла: Mysql проблем
Публикувано от: Hapkoc в Sep 14, 2006, 00:29
Право казва sdr. Нямаш проблем да инсталираш php5.
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 14, 2006, 11:08
OK!Значи слагаме php5 
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 20, 2006, 11:52
Незнам дали ви интересува, но все пак ще ви кажа какво стана! Значи при опит отново да инсталирам Дебиан, си свали всичко от бг миръра на Дебиан (http://bg.debian.org , ако не се лъжа) Но когато стигна до 95% ми даде грешка!И не щеше да се инсталне!А понеже бех притиснат от времето сложих "аварийно" Кубунту(щото става за 10-15 минути),за да се пуска Груб менюто, а с него и наще да си ползват бозата. И днес, щях да го махам но видях линка на ред, за инсталация на Апаш,РНР и прочие за Дебиан, та там видях че има и урок за Убунту! Реших да пробвам и се получи! Ще използвам тая тема за да ви питам как се правеше да ми е по подразбиране енкодинга CP1251, щото сега е ISO-8859-1. И преди ви бях питал, за това, но с търсачката така и не успях да го открия 
Титла: Mysql проблем
Публикувано от: Hapkoc в Sep 20, 2006, 13:53
Стига с тези измислени кодови таблици. От 100 години има UTF и работи!
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 20, 2006, 20:14
А как да направя той да си е по подразбиране?
Титла: Mysql проблем
Публикувано от: Hapkoc в Sep 20, 2006, 22:49
Къде?
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 21, 2006, 10:21
В самияти сървър!Правя страницата, слагам й енкодинг CP1251, но като я отворя се виждат маймунки и като проверя пише че е на ISO-8859-1
Титла: Mysql проблем
Публикувано от: gat3way в Sep 21, 2006, 10:59
коментирай реда AddDefaultCharset блабла в httpd.conf или там където е конфигурацията на апач-а
Титла: Mysql проблем
Публикувано от: _NetCutter_ в Sep 21, 2006, 11:24
Ейй да!Точно!При мене се намира в /etc/apache2/apache2.conf! Сега искам да благодаря на абсолютно всички които ОТНОВО! си се мъчехте над моите смотани проблеми!!! Благодаря Ви! 
|