| 
 Титла: apache не тръгва при openSUSE
 Публикувано от: erest в Feb 16, 2009, 21:51
 
 С openSUSE 1.1.1 съминсталирах си апаче и  МуСкючл  от yast2 но не тръгват :/
 ето какво ми исписва :/
 Linux:/home/erest # rcapache2 status
 Checking for httpd2:                                                 unused
 Linux:/home/erest # rcapache2 start
 Starting httpd2 (prefork) Syntax error on line 3 of /etc/apache2/conf.d/mod_security2.conf:
 Invalid command 'SecRuleEngine', perhaps misspelled or defined by a module not included in the server configuration
 
 The command line was:
 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
 failed
 Linux:/home/erest #
 
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: erest в Feb 16, 2009, 21:55
 
 /etc/apache2/conf.d/mod_security2.conf: ми изглежда така: # Basic configuration optionsSecRuleEngine On
 SecRequestBodyAccess On
 SecResponseBodyAccess Off
 
 # Handling of file uploads
 # TODO Choose a folder private to Apache.
 # SecUploadDir /opt/apache-frontend/tmp/
 SecUploadKeepFiles Off
 
 # Debug log
 SecDebugLog logs/modsec_debug.log
 SecDebugLogLevel 0
 
 # Serial audit log
 SecAuditEngine RelevantOnly
 SecAuditLogRelevantStatus ^5
 SecAuditLogParts ABIFHZ
 SecAuditLogType Serial
 SecAuditLog logs/modsec_audit.log
 
 # Maximum request body size we will
 # accept for buffering
 SecRequestBodyLimit 131072
 
 # Store up to 128 KB in memory
 SecRequestBodyInMemoryLimit 131072
 
 # Buffer response bodies of up to
 # 512 KB in length
 SecResponseBodyLimit 524288
 
 # Verify that we've correctly processed the request body.
 # As a rule of thumb, when failing to process a request body
 # you should reject the request (when deployed in blocking mode)
 # or log a high-severity alert (when deployed in detection-only mode).
 SecRule REQBODY_PROCESSOR_ERROR "!@eq 0" \
 "phase:2,t:none,log,deny,msg:'Failed to parse request body.',severity:2"
 
 # By default be strict with what we accept in the multipart/form-data
 # request body. If the rule below proves to be too strict for your
 # environment consider changing it to detection-only. You are encouraged
 # _not_ to remove it altogether.
 SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
 "phase:2,t:none,log,deny,msg:'Multipart request body \
 failed strict validation: \
 PE %{REQBODY_PROCESSOR_ERROR}, \
 BQ %{MULTIPART_BOUNDARY_QUOTED}, \
 BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
 DB %{MULTIPART_DATA_BEFORE}, \
 DA %{MULTIPART_DATA_AFTER}, \
 HF %{MULTIPART_HEADER_FOLDING}, \
 LF %{MULTIPART_LF_LINE}, \
 SM %{MULTIPART_SEMICOLON_MISSING}'"
 
 # Did we see anything that might be a boundary?
 SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
 "phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"
 
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: tyuio в Feb 16, 2009, 22:11
 
 не виждам нещо нередно на трети ред ама файла ти не започва ли така?<IfModule mod_security2.c>
 
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: erest в Feb 16, 2009, 22:19
 
 ето така изглежда  http://img164.imageshack.us/img164/1534/snapshot1oq3.png самоче сега проблема е : # rcapache2 startStarting httpd2 (prefork) Syntax error on line 2 of /etc/apache2/conf.d/mod_security2.conf:
 Invalid command 'SecRuleEngine', perhaps misspelled or defined by a module not included in the server configuration
 
 The command line was:
 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
 
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: wfw в Feb 16, 2009, 22:34
 
 ако не държиш на mod_security2 можеш да го спреш.  
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: tyuio в Feb 16, 2009, 22:36
 
 да това е добра идея за началоако знаеш как де
 
 
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: erest в Feb 16, 2009, 23:26
 
 апачето го оправих, сега имам проблемче с мускюл, не мога да му сложа парола, ето какво правя: Linux:/home/erest # rcmysql startCreating MySQL privilege database...
 Installing MySQL system tables...
 OK
 Filling help tables...
 OK
 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
 To do so, start the server, then issue the following commands:
 /usr/bin/mysqladmin -u root password 'new-password'
 /usr/bin/mysqladmin -u root -h erest-Linux.erest.info.tm password 'new-password'
 
 Alternatively you can run:
 /usr/bin/mysql_secure_installation
 
 which will also give you the option of removing the test
 databases and anonymous user created by default.  This is
 strongly recommended for production servers.
 
 See the manual for more instructions.
 
 You can start the MySQL daemon with:
 cd /usr ; /usr/bin/mysqld_safe &
 
 You can test the MySQL daemon with mysql-test-run.pl
 cd mysql-test ; perl mysql-test-run.pl
 
 Please report any problems with the /usr/bin/mysqlbug script!
 
 The latest information about MySQL is available on the web at
 http://www.mysql.com
 Support MySQL by buying support/licenses at http://shop.mysql.com
 Updating MySQL privilege database...
 Looking for 'mysql' in: /usr/bin/mysql
 Looking for 'mysqlcheck' in: /usr/bin/mysqlcheck
 Running 'mysqlcheck'...
 mysql.columns_priv                                 OK
 mysql.db                                           OK
 mysql.func                                         OK
 mysql.help_category                                OK
 mysql.help_keyword                                 OK
 mysql.help_relation                                OK
 mysql.help_topic                                   OK
 mysql.host                                         OK
 mysql.proc                                         OK
 mysql.procs_priv                                   OK
 mysql.tables_priv                                  OK
 mysql.time_zone                                    OK
 mysql.time_zone_leap_second                        OK
 mysql.time_zone_name                               OK
 mysql.time_zone_transition                         OK
 mysql.time_zone_transition_type                    OK
 mysql.user                                         OK
 Running 'mysql_fix_privilege_tables'...
 OK
 Starting service MySQL                                               done
 to6ko-Linux:/home/to6ko # mysqladmin -u root -p rootpassword
 Enter password:
 mysqladmin: connect to server at 'localhost' failed
 error: 'Access denied for user 'root'@'localhost' (using password: YES)'
 erest-Linux:/home/erest #  mysql -u root -p
 Enter password: ( тукка си пиша парола )
 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
 erest-Linux:/home/erest # rcmysql restart
 Restarting service MySQL
 Shutting down service MySQL                                          done
 Starting service MySQL                                               done
 erest-Linux:/home/erest # mysqladmin -u root -p rootpassword
 Enter password: (тук си пиша парола )
 mysqladmin: connect to server at 'localhost' failed
 error: 'Access denied for user 'root'@'localhost' (using password: YES)'
 erest-Linux:/home/erest #
 
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: erest в Feb 16, 2009, 23:34
 
 и не мога да вляза в phpmyadminhttp://img4.imageshack.us/img4/271/snapshot2ml6.png
 
 Титла: Re: apache не тръгва при openSUSE
 Публикувано от: neter в Feb 17, 2009, 01:03
 
 Задай си root паролата така GeSHi (Bash): mysqladmin -u root password ТВОЯТАПАРОЛА
 За да активираш phpmyadmin, следвай инструкцията, която ти е изписана - копирай файла conf/config.inc.php-dist към conf/config.inc.php (демек, влез в папка conf на phpmyadmin и копирай файла config.inc.php-dist с име на копието config.inc.php) и нагласи настройките във въпросния config.inc.php спрямо твоята система и желания ;)
 
 |