Instalacja Entware dla Tomato
|
kille72 |
Dodano 17-04-2012 10:28
|
Administrator
Posty: 2986
Dołączył: 12/02/2007 23:43
|
Instalacja Entware dla Tomato. (instalowalem na Tomato 092 Big-VPN na WNR3500Lv1)
Zaczynamy od zamontowania "czegos" pod /opt (tak samo jak dla Optware http://openlinksys.info/forum/viewthr...ad_id=7607)
Instalacja:
*** W wersjach 129 i nowszych: dodano skrypt instalacyjny dla Entware (od wersji 138 Entware-ng) - wystarczy wydać komendę entware-install.sh ***
Cytat $ cd /tmp
$ wget http://wl500g-repo.googlecode.com/svn/ipkg/entware_install.sh
$ chmod +x ./entware_install.sh
$ ./entware_install.sh
Wykonujemy restart routera a nastepnie update dostepnych pakietow
Lista pakietow: http://wl500g-repo.googlecode.com/svn...g/openwrt/
Pakiety wyszukuje sie grepujac liste np:
Cytat $ opkg list | grep transmission
Instalacja Transmission (W repo jest wersja 2.50)
Cytat $ opkg install transmission-daemon_2.50-2_entware (paczka Client ma 179 KB)
$ opkg install transmission-web_2.50-2_entware (paczka Webinterface ma 210 KB)
W GUI Tomato zmieniamy Transmission binary path na: /opt/bin (tak jak w Optware)
Transmission z Entware dziala ok, obciazenie chyba podobne. Nie widze za bardzo roznicy...zobaczymy jak stabilnosc. |
|
|
|
kille72 |
Dodano 17-04-2012 11:30
|
Administrator
Posty: 2986
Dołączył: 12/02/2007 23:43
|
Jakie nowe wersje aplikacji sa dostepne ktorych nie da rady skompilowac pod Optware, oprocz przykladowego libtorrent ?
Edit: Transmission 2.50 na Entware wydaje sie byc bardzo stabilny, 6 godzin ostrego sciagania i wszystko pracuje OK.
Mozna miec Optware i Entware zainstalowane na raz? Paczki z Optware pasuja do Entware, ktos wie?
Edytowany przez kille72 dnia 17-04-2012 13:07
|
|
|
|
shibby |
Dodano 17-04-2012 13:11
|
SysOp
Posty: 17109
Dołączył: 15/01/2009 20:30
|
wydaje mi sie ze nie beda wiedziec wzajemnie jakie paczki instalowali.
w sumie nic ciekawego tu nie widze. U mnie jest juz nawet transmission 2.51
Edytowany przez shibby dnia 17-04-2012 14:03
Proxmox VE: i5-13400T, 64GB RAM, 2x 512GB NVMe, 3x 2TB SSD, Intel X710-DA2 SFP+
VM Router: OpenWRT 22.03.4
VM NAS: Synology SA6400
VM VPS: Debian, WWW, Home Assistant
Switch: Netgear MS510TXPP
Switch: Ubiquiti USW-Flex-mini - szt. 2
Wi-Fi: Ubiquiti U6-Lite - szt. 2
|
|
|
|
kille72 |
Dodano 17-04-2012 14:24
|
Administrator
Posty: 2986
Dołączył: 12/02/2007 23:43
|
Tak Shibby, widzialem juz 2.51 Na razie wystarcza Optware, ale dobrze miec alternatywe.
A sa jakies nowe aplikacje ktorych nie da rady skompilowac do Optware a sa do Entware? |
|
|
|
krisan |
Dodano 17-04-2012 14:37
|
Power User
Posty: 207
Dołączył: 22/03/2011 11:48
|
Ja wieczorem może spróbuję zainstalować entware + perl-a. Perl w wersji optware nie ma prawdidłowo ustawionych parametrów związanych z threading, może ten z entware będzie prawidłowo skompilowany. Zweryfikować to można np. próbując uruchomić pakiet automake . Automake zgłasza problem. |
|
|
|
kille72 |
Dodano 17-04-2012 18:09
|
Administrator
Posty: 2986
Dołączył: 12/02/2007 23:43
|
Testowalem dzis caly dzien Entware/Optware + Transmission i chyba ten z Optware mniej obciaza router, takie mam wrazenie. |
|
|
|
kamilj |
Dodano 26-07-2012 23:15
|
Moderator
Posty: 982
Dołączył: 28/12/2011 12:24
|
Potrzebuje pomocy z lighttpd i php.
Niestety nie moge zmusic do dzialania ich razem.
Zainstalowalem lighttpd mod-fastcgi php5 i mod-fastcgi dla php ale nadal nic z tego.
Przy probie wystartowania serwera nie wstaje...
------------------------------------------------------------------------------
[b] RegulaminOpenlinksys.info v0.1
[url=http://openlinksys.info/forum/viewthread.p
|
|
|
|
lazik |
Dodano 27-07-2012 08:08
|
Power User
Posty: 356
Dołączył: 09/12/2011 13:09
|
lighttpd startujesz z S80lighttpd poprzez komendę /opt/etc/init.d/S80lighttpd start:
#!/bin/sh
ENABLED=yes
PROCS=lighttpd
ARGS="-f /opt/etc/lighttpd/lighttpd.conf"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func
/opt/etc/lighttpd/lighttpd.conf:
server.modules = (
# "mod_rewrite",
# "mod_alias",
"mod_fastcgi",
"mod_access",
"mod_auth",
"mod_accesslog"
)
server.network-backend = "write"
server.document-root = "/opt/share/www/"
server.errorlog = "/opt/var/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
"lighttpd/index.html" )
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar"
)
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
$HTTP["url"] =~ "^/owncloud/data/" {
url.access-deny = ("")
}
$HTTP["url"] =~ "^/owncloud($|/)" {
dir-listing.activate = "disable"
}
#### auth module
auth.debug = 2
auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd.user"
auth.require = ( "/" =>
(
"method" => "basic",
"realm" => "rutorrent",
"require" => "user=root"
)
)
#include_shell "cat /opt/etc/lighttpd/conf.d/*.conf"
server.event-handler = "poll"
static-file.exclude-extensions = ( ".fcgi", ".php", ".pl", ".py", ".rb" )
server.port = 9091
server.pid-file = "/var/run/lighttpd.pid"
server.upload-dirs = ( "/opt/tmp" )
fastcgi.server = ( ".php" => ((
"bin-path" => "/opt/bin/php-fcgi",
"socket" => "/opt/tmp/php-fastcgi.socket",
# "host" => "127.0.0.1",
# "port" => 1026
))
)
/opt/etc/php.ini:
[PHP]
zend.ze1_compatibility_mode = Off
; Language Options
engine = On
;short_open_tag = Off
precision = 12
y2k_compliance = On
output_buffering = Off
;output_handler =
zlib.output_compression = Off
;zlib.output_compression_level = -1
;zlib.output_handler =
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
;open_basedir =
disable_functions =
disable_classes =
; Colors for Syntax Highlighting mode. Anything that's acceptable in
; would work.
;highlight.string = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg = #FFFFFF
;highlight.default = #0000BB
;highlight.html = #000000
;ignore_user_abort = On
;realpath_cache_size = 16k
;realpath_cache_ttl = 120
; Miscellaneous
expose_php = On
; Resource Limits
max_execution_time = 30 ; Maximum execution time of each script, in seconds.
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data.
;max_input_nesting_level = 64
memory_limit = 8M ; Maximum amount of memory a script may consume.
; Error handling and logging
; Error Level Constants:
; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR - fatal run-time errors
; E_RECOVERABLE_ERROR - almost fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatibility of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
; E_DEPRECATED - warn about code that will not work in future versions
; of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
;report_zend_debug = 0
track_errors = Off
;html_errors = Off
;docref_root = "/phpmanual/"
;docref_ext = .html
;error_prepend_string = ""
;error_append_string = ""
; Log errors to specified file.
;error_log = /opt/var/log/php_errors.log
; Log errors to syslog.
;error_log = syslog
; Data Handling
;arg_separator.output = "&"
;arg_separator.input = ";&"
variables_order = "EGPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = On
auto_globals_jit = On
post_max_size = 8M
;magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
;always_populate_raw_post_data = On
; Paths and Directories
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
doc_root = "/opt/share/www"
user_dir =
extension_dir = "/opt/lib/php"
enable_dl = On
;cgi.force_redirect = 1
;cgi.nph = 1
;cgi.redirect_status_env = ;
cgi.fix_pathinfo=1
;fastcgi.impersonate = 1;
;fastcgi.logging = 0
;cgi.rfc2616_headers = 0
; File Uploads
file_uploads = On
upload_tmp_dir = "/opt/tmp"
upload_max_filesize = 2M
max_file_uploads = 20
; Fopen wrappers
allow_url_fopen = On
allow_url_include = Off
;from="john@doe.com"
;user_agent="PHP"
default_socket_timeout = 60
;auto_detect_line_endings = Off
; Dynamic Extensions
;extension=ctype.so
;extension=curl.so
;extension=dom.so
;extension=exif.so
;extension=ftp.so
;extension=gd.so
;extension=gmp.so
;extension=hash.so
;extension=iconv.so
;extension=json.so
;extension=ldap.so
;extension=mbstring.so
extension=mcrypt.so
;extension=mysql.so
extension=mysqli.so
;extension=openssl.so
;extension=pcre.so
;extension=pdo.so
;extension=pdo-mysql.so
;extension=pdo-pgsql.so
;extension=pdo_sqlite.so
;extension=pgsql.so
;extension=session.so
;extension=soap.so
;extension=sockets.so
extension=sqlite.so
;extension=sqlite3.so
;extension=tokenizer.so
;extension=xml.so
;extension=xmlreader.so
;extension=xmlwriter.so
; Module Settings
[APC]
apc.enabled = 1
apc.shm_segments = 1 ;The number of shared memory segments to allocate for the compiler cache.
apc.shm_size = 4M ;The size of each shared memory segment.
[Date]
;date.timezone =
;date.default_latitude = 31.7667
;date.default_longitude = 35.2333
;date.sunrise_zenith = 90.583333
;date.sunset_zenith = 90.583333
[filter]
;filter.default = unsafe_raw
;filter.default_flags =
[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1
[sqlite]
;sqlite.assoc_case = 0
[sqlite3]
;sqlite3.extension_dir =
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port = 3306
mysql.default_socket = "/opt/var/run/mysqld.sock"
mysql.default_host = localhost
mysql.default_user = root
mysql.default_password = pass
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.allow_local_infile = On
mysqli.allow_persistent = On
mysqli.cache_size = 2000
mysqli.max_persistent = -1
mysqli.max_links = -1
mysqli.default_port = 3306
mysqli.default_socket = "/opt/var/lib/mysql/mysqld.sock"
mysqli.default_host = 192.168.0.100
mysqli.default_user = root
mysqli.default_password = pass
mysqli.connect_timeout = 60
mysqli.trace_mode = Off
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Session]
session.save_handler = files
session.save_path = "/opt/tmp"
session.use_cookies = 1
;session.cookie_secure =
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = On
session.bug_compat_warn = On
session.referer_check =
session.entropy_length = 0
;session.entropy_file = /dev/urandom
session.entropy_file =
;session.entropy_length = 16
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 4
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[mbstring]
;mbstring.language = Japanese
;mbstring.internal_encoding = EUC-JP
;mbstring.http_input = auto
;mbstring.http_output = SJIS
;mbstring.encoding_translation = Off
;mbstring.detect_order = auto
;mbstring.substitute_character = none;
;mbstring.func_overload = 0
;mbstring.strict_detection = Off
;mbstring.http_output_conv_mimetype=
;mbstring.script_encoding=
[gd]
;gd.jpeg_ignore_warning = 0
[exif]
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel = JIS
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/opt/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
;sysvshm.init_mem = 10000
[ldap]
ldap.max_links = -1
[mcrypt]
;mcrypt.algorithms_dir=
;mcrypt.modes_dir=
|
|
|
|
kamilj |
Dodano 27-07-2012 09:30
|
Moderator
Posty: 982
Dołączył: 28/12/2011 12:24
|
Dzieki za odpowiedz ale niestety nie dziala.... juz kilka razy wszystko instalowalem od nowa i ciagle nic.
Na optware mialem podobnie z tym ze tam dostawalem blad 403 przy probie uzycia php :/
2012-07-27 09:37:27: (mod_fastcgi.c.1103) the fastcgi-backend /opt/bin/php failed to start:
2012-07-27 09:37:27: (mod_fastcgi.c.1107) child exited with status 2 /opt/bin/php
2012-07-27 09:37:27: (mod_fastcgi.c.1110) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2012-07-27 09:37:27: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed.
2012-07-27 09:37:27: (server.c.945) Configuration of plugins failed. Going down.
Edytowany przez kamilj dnia 27-07-2012 09:38
------------------------------------------------------------------------------
[b] RegulaminOpenlinksys.info v0.1
[url=http://openlinksys.info/forum/viewthread.p
|
|
|
|
lazik |
Dodano 27-07-2012 10:03
|
Power User
Posty: 356
Dołączył: 09/12/2011 13:09
|
Cytat kamilj napisał(a):
Dzieki za odpowiedz ale niestety nie dziala.... juz kilka razy wszystko instalowalem od nowa i ciagle nic.
Na optware mialem podobnie z tym ze tam dostawalem blad 403 przy probie uzycia php :/
2012-07-27 09:37:27: (mod_fastcgi.c.1103) the fastcgi-backend /opt/bin/php failed to start:
2012-07-27 09:37:27: (mod_fastcgi.c.1107) child exited with status 2 /opt/bin/php
2012-07-27 09:37:27: (mod_fastcgi.c.1110) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2012-07-27 09:37:27: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed.
2012-07-27 09:37:27: (server.c.945) Configuration of plugins failed. Going down.
Chyba masz błąd w lighttpd.conf bo chce ci uruchamiać /opt/bin/php zamiast /opt/bin/php-fcgi. Patrz sekcja fastcgi.server |
|
|
|
kamilj |
Dodano 27-07-2012 10:26
|
Moderator
Posty: 982
Dołączył: 28/12/2011 12:24
|
ehh nie zwrocilem na to uwagi :/
dzieki za pomoc...
------------------------------------------------------------------------------
[b] RegulaminOpenlinksys.info v0.1
[url=http://openlinksys.info/forum/viewthread.p
|
|
|
|
lazik |
Dodano 27-07-2012 10:27
|
Power User
Posty: 356
Dołączył: 09/12/2011 13:09
|
czyli ruszyło?
A w załączniku przykłady co pod entware z lub bez lighttpd fajnie działa:
- aria2 GUI
- owncloud
- mediatomb (chyba trochę lepsze od standardowego minidlna)
- mollify
- phpmyadmin 3.5.1
lazik załączono następujące plik:
Nie masz uprawnień, by zobaczyć załączniki w tym wątku.
Edytowany przez lazik dnia 27-07-2012 13:59
|
|
|
|
kamilj |
Dodano 27-07-2012 17:24
|
Moderator
Posty: 982
Dołączył: 28/12/2011 12:24
|
Tak ruszylo tylko mialem klopoty z uruchomieniem mysql bo wyskakiwalo ze sie uruchamial a tak naprawde nie dziala (zero komunikatow o jakimkolwiek bledzie) wiec chwilowo dalem sobie spokój... :]
Moze jutro bede dalej walczyc...
Mollify to naprawde swietny skrypt... tylko jego konfiguracja troche czasu zajmuje
Jak tylko odpale mysql na entware potestuje również lms bo to swietna sprawa jezeli ktos chce miec info o uzytkownikach w jednym miejscu no i do tego dziala z tomato naprawde dobrze :]
------------------------------------------------------------------------------
[b] RegulaminOpenlinksys.info v0.1
[url=http://openlinksys.info/forum/viewthread.p
|
|
|
|
lazik |
Dodano 28-07-2012 08:33
|
Power User
Posty: 356
Dołączył: 09/12/2011 13:09
|
Pytanie z PW, ale tutaj wrzucę może innym się przyda.
Uruchomienie MYSQL w wersji 5.1.53-7.
/opt/etc/my.conf:
[client]
port = 3306
socket = /opt/var/lib/mysql/mysqld.sock
[mysqld]
user = root
socket = /opt/var/lib/mysql/mysqld.sock
port = 3306
basedir = /opt
############ Don't put this on the NAND #############
# Figure out where you are going to put the databases
# And run mysql_install_db --force
datadir = /opt/var/lib/mysql/
######### This should also not go on the NAND #######
tmpdir = /opt/var/lib/mysql/
skip-external-locking
bind-address = 127.0.0.1
# Fine Tuning
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# Here you can see queries with especially long duration
#log_slow_queries = /opt/var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
# The following can be used as easy to replay backup logs or for replication.
server-id = 1
log_bin = /opt/var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
starter:
#konfig mysql
echo "Tomato" > /etc/hostname
/opt/etc/init.d/S70mysqld start
/opt/etc/init.d/S70mysqld:
#!/bin/sh
ENABLED=yes
PROCS=mysqld
ARGS=""
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func
/opt/share/www/phpmyadmin/config.inc.php
/* $Id: config.inc.php,v 2.52 2005/03/16 17:22:08 lem9 Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* phpMyAdmin Configuration File
*
* All directives are explained in Documentation.html
*/
/**
* Sets the php error reporting - Please do not change this line!
*/
if (!isset($old_error_reporting)) {
error_reporting(E_ALL);
@ini_set('display_errors', '1');
}
/**
* Your phpMyAdmin url
*
* Complete the variable below with the full url ie
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
*
* It must contain characters that are valid for a URL, and the path is
* case sensitive >
phpmyadmin wywali wam info o mcrypcie i trzeba go zainstalować i włączyć w php.ini. W celu sprawdzenia czy działa wystarczy stworzyć stronkę php z zawartością:
$algorithms = mcrypt_list_algorithms("/opt/lib/libmcrypt");
foreach ($algorithms as $cipher) {
echo "$cipher \n";
}
?>
Edytowany przez lazik dnia 28-07-2012 09:04
|
|
|
|
kamilj |
Dodano 28-07-2012 10:58
|
Moderator
Posty: 982
Dołączył: 28/12/2011 12:24
|
Niestety ale u mnie mysql nie startuje...
Niby zaraz po instalacji jest ok ale jak wgram phpmyadmin i chce sie polaczyc do serwera mam infoe serwer nie dziala.
po wydaniukomendy restartu mysql od razu jest info ze nie dziala chociaz wczesiej wszystko bylo ok.
------------------------------------------------------------------------------
[b] RegulaminOpenlinksys.info v0.1
[url=http://openlinksys.info/forum/viewthread.p
|
|
|
|
lazik |
Dodano 28-07-2012 11:07
|
Power User
Posty: 356
Dołączył: 09/12/2011 13:09
|
Cytat kamilj napisał(a):
Niestety ale u mnie mysql nie startuje...
Niby zaraz po instalacji jest ok ale jak wgram phpmyadmin i chce sie polaczyc do serwera mam infoe serwer nie dziala.
po wydaniukomendy restartu mysql od razu jest info ze nie dziala chociaz wczesiej wszystko bylo ok.
musisz miec cos namieszane w konfigach, niepotworzone foldery, brak praw dostępu. To że phpmyadmin nie działa to nie jest problem. Zobacz czy mysql z konsoli ci wstaje i można na nim z linii komend pracować. |
|
|
|
kamilj |
Dodano 28-07-2012 12:10
|
Moderator
Posty: 982
Dołączył: 28/12/2011 12:24
|
sprawdzalem twoj konfig i nadal to samo. Wyzej pisalem ze z konsoli nie startuje, logi tez puste
------------------------------------------------------------------------------
[b] RegulaminOpenlinksys.info v0.1
[url=http://openlinksys.info/forum/viewthread.p
|
|
|
|
krisan |
Dodano 28-07-2012 14:38
|
Power User
Posty: 207
Dołączył: 22/03/2011 11:48
|
@kamilj:
Zakładając, że php/lighhttpd skonfigurowane masz prawidłowo i problem leży w konfiguracji mysql to :
1.Plik opcji dla mysql to my.cnf pod Linuxem. a nie my.conf. Upewnij się jaką masz nazwę.
2. Uruchom server mysql-a poleceniem (nie używaj S70mysqld):
Cytat /opt/libexec/mysqld --console --verbose & i naciśnij enter aby wrócić do linii poleceń.
Jeśli serwer załadował się prawidłowo - po wykonaniu poniższej linii będziesz mógł sprawdzić, czy się uruchomił:
Cytat ps mysqld | grep mysqld
Jeśli nie - podaj komunikat jaki dostałeś podczas uruchamiania mysqld. Możesz też wkleić wynik polecenia:
Cytat /opt/libexec/mysqld --verbose --help począwszy od linii Variables |
|
|
|
lazik |
Dodano 28-07-2012 15:05
|
Power User
Posty: 356
Dołączył: 09/12/2011 13:09
|
Cytat krisan napisał(a):
@kamilj:
Zakładając, że php/lighhttpd skonfigurowane masz prawidłowo i problem leży w konfiguracji mysql to :
1.Plik opcji dla mysql to my.cnf pod Linuxem. a nie my.conf. Upewnij się jaką masz nazwę.
2. Uruchom server mysql-a poleceniem (nie używaj S70mysqld):
Cytat /opt/libexec/mysqld --console --verbose & i naciśnij enter aby wrócić do linii poleceń.
Jeśli serwer załadował się prawidłowo - po wykonaniu poniższej linii będziesz mógł sprawdzić, czy się uruchomił:
Cytat ps mysqld | grep mysqld
Jeśli nie - podaj komunikat jaki dostałeś podczas uruchamiania mysqld. Możesz też wkleić wynik polecenia:
Cytat /opt/libexec/mysqld --verbose --help począwszy od linii Variables
Pod entware mysqld ląduje w /opt/bin/ a nie libexec |
|
|
|
kamilj |
Dodano 28-07-2012 15:37
|
Moderator
Posty: 982
Dołączył: 28/12/2011 12:24
|
Wynik po wydaniu komendy
/opt/bin/mysqld --verbose --help
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- -----------------------------
abort-slave-event-count 0
allow-suspicious-udfs FALSE
auto-increment-increment 1
auto-increment-offset 1
automatic-sp-privileges TRUE
back_log 50
basedir /opt
bind-address localhost
binlog-direct-non-transactional-updates FALSE
binlog-row-event-max-size 1024
binlog_cache_size 32768
binlog_format (No default value)
bulk_insert_buffer_size 8388608
character-set-client-handshake TRUE
character-set-filesystem binary
character-set-server latin1
character-sets-dir /opt/share/mysql/charsets/
chroot (No default value)
collation-server latin1_swedish_ci
completion-type 0
concurrent-insert 1
connect_timeout 10
console FALSE
datadir .
datetime_format %Y-%m-%d %H:%i:%s
date_format %Y-%m-%d
default-character-set latin1
default-collation latin1_swedish_ci
default-storage-engine MyISAM
default-table-type MyISAM
default-time-zone (No default value)
default_week_format 0
delayed_insert_limit 100
delayed_insert_timeout 300
delayed_queue_size 1000
disconnect-slave-event-count 0
div_precision_increment 4
enable-locking FALSE
engine-condition-pushdown TRUE
expire_logs_days 10
external-locking FALSE
flush_time 0
ft_max_word_len 84
ft_min_word_len 4
ft_query_expansion_limit 20
ft_stopword_file (No default value)
gdb FALSE
general_log FALSE
general_log_file (No default value)
group_concat_max_len 1024
help TRUE
init-connect (No default value)
init-file (No default value)
init-slave (No default value)
interactive_timeout 28800
join_buffer_size 131072
keep_files_on_create FALSE
key_buffer_size 16777216
key_cache_age_threshold 300
key_cache_block_size 1024
key_cache_division_limit 100
language /opt/share/mysql/english/
large-pages FALSE
lc-time-names en_US
local-infile TRUE
log (No default value)
log-bin /opt/var/log/mysql/mysql-bin
log-bin-index (No default value)
log-bin-trust-function-creators FALSE
log-bin-trust-routine-creators FALSE
log-error
log-isam myisam.log
log-output FILE
log-queries-not-using-indexes TRUE
log-short-format FALSE
log-slave-updates FALSE
log-slow-admin-statements FALSE
log-slow-slave-statements FALSE
log-tc tc.log
log-tc-size 24576
log-update (No default value)
log-warnings 1
log_slow_queries /opt/var/log/mysql/mysql-slow.log
long_query_time 2
low-priority-updates FALSE
lower_case_table_names 0
master-connect-retry 60
master-host (No default value)
master-info-file master.info
master-password (No default value)
master-port 3306
master-retry-count 86400
master-ssl FALSE
master-ssl-ca (No default value)
master-ssl-capath (No default value)
master-ssl-cert (No default value)
master-ssl-cipher (No default value)
master-ssl-key (No default value)
master-user test
max-binlog-dump-events 0
max_allowed_packet 16777216
max_binlog_cache_size 4294963200
max_binlog_size 104857600
max_connections 151
max_connect_errors 10
max_delayed_threads 20
max_error_count 64
max_heap_table_size 16777216
max_join_size 4294967295
max_length_for_sort_data 1024
max_prepared_stmt_count 16382
max_relay_log_size 0
max_seeks_for_key 4294967295
max_sort_length 1024
max_sp_recursion_depth 0
max_tmp_tables 32
max_user_connections 0
max_write_lock_count 4294967295
memlock FALSE
min_examined_row_limit 0
multi_range_count 256
myisam-recover OFF
myisam_block_size 1024
myisam_data_pointer_size 6
myisam_max_extra_sort_file_size 2147483647
myisam_max_sort_file_size 2146435072
myisam_mmap_size 4294967295
myisam_repair_threads 1
myisam_sort_buffer_size 8388608
myisam_stats_method nulls_unequal
myisam_use_mmap FALSE
ndb-use-copying-alter-table FALSE
net_buffer_length 16384
net_read_timeout 30
net_retry_count 10
net_write_timeout 60
new FALSE
old FALSE
old-alter-table FALSE
old-passwords FALSE
old-style-user-limits FALSE
open_files_limit 1024
optimizer_prune_level 1
optimizer_search_depth 62
optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
pid-file /opt/tmp/unknown.pid
plugin-load (No default value)
plugin_dir /opt/lib/mysql/plugin
port 3306
port-open-timeout 0
preload_buffer_size 32768
profiling_history_size 15
query_alloc_block_size 8192
query_cache_size 0
query_prealloc_size 8192
range_alloc_block_size 4096
read_buffer_size 131072
read_only FALSE
read_rnd_buffer_size 262144
record_buffer 131072
relay-log (No default value)
relay-log-index (No default value)
relay-log-info-file relay-log.info
relay_log_purge TRUE
relay_log_space_limit 0
replicate-same-server-id FALSE
report-host (No default value)
report-password (No default value)
report-port 3306
report-user (No default value)
rpl-recovery-rank 0
safe-user-create FALSE
secure-auth FALSE
secure-file-priv (No default value)
server-id 1
show-slave-auth-info FALSE
skip-grant-tables FALSE
skip-slave-start FALSE
slave-exec-mode STRICT
slave-load-tmpdir /opt/tmp/
slave_compressed_protocol FALSE
slave_net_timeout 3600
slave_transaction_retries 10
slow-query-log TRUE
slow_launch_time 2
slow_query_log_file /opt/var/log/mysql/mysql-slow.log
socket /opt/var/run/mysqld.sock
sort_buffer_size 2097144
sporadic-binlog-dump-fail FALSE
sql-mode OFF
symbolic-links TRUE
sync-binlog 0
sync-frm TRUE
sysdate-is-now FALSE
table_cache 64
table_definition_cache 256
table_lock_wait_timeout 50
table_open_cache 64
tc-heuristic-recover (No default value)
temp-pool TRUE
thread_cache_size 8
thread_concurrency 10
thread_stack 196608
timed_mutexes FALSE
time_format %H:%i:%s
tmpdir /opt/tmp/
tmp_table_size 16777216
transaction_alloc_block_size 8192
transaction_prealloc_size 4096
updatable_views_with_limit 1
use-symbolic-links TRUE
verbose TRUE
wait_timeout 28800
warnings 1
wynik z komendy: /opt/bin/mysqld --console --verbose
root@unknown:/tmp/home/root# /opt/bin/mysqld --console --verbose
120728 15:35:38 [Warning] '--log_slow_queries' is deprecated and will be removed in a future release. Please use ''--slow_query_log'/'--slow_query_log_file'' instead.
120728 15:35:38 [ERROR] Can't start server : Bind on unix socket: No such file or directory
120728 15:35:38 [ERROR] Do you already have another mysqld server running on socket: /opt/var/run/mysqld.sock ?
120728 15:35:38 [ERROR] Aborting
120728 15:35:38 [Note] /opt/bin/mysqld: Shutdown complete
------------------------------------------------------------------------------
[b] RegulaminOpenlinksys.info v0.1
[url=http://openlinksys.info/forum/viewthread.p
|
|
|