CentOS 5 (8)

Memcached centos 5 设置

  (3) 設置memcached vim /etc/sysconfig/memcached PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="512" OPTIONS="" (4) 啟動memcached # Set Memcached to start automatically on boot chkconfig memcached on # Start Memcached /etc/init.d/memcached start ## OR ## service memcached start (5) 檢查memcached是否正常的運作。 yum install nc   nc = netcat echo stats | nc localhost 11211 STAT pid 7599 STAT uptime 10 STAT time 1265288542 STAT version 1.4.4 STAT pointer_size 32 STAT rusage_user 0.003999 STAT rusage_system 0.052991 STAT curr_connections 10 STAT total_connections 11 STAT connection_structures 11 STAT cmd_get 0 STAT cmd_set 0 STAT cmd_flush 0 STAT get_hits 0 STAT get_misses 0 STAT delete_misses 0 STAT delete_hits 0 STAT incr_misses 0…
Read more...

centos 5.8 pptp 安装

http://poptop.sourceforge.net/dox/     http://poptop.sourceforge.net/yum/stable/packages/     http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm
Read more...

centos 5.8 安装 php 5.2 mysql 5.1

方法3  IUS http://iuscommunity.org/Docs/ClientUsageGuide http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/http://wiki.iuscommunity.org/Repos 打开 http://dl.iuscommunity.org/pub/ius/stable/查找 文件 /Redhat/5/x86_64/查找最新 epel-release-5-xxx.noarch.rpmius-release-xxxxxxx.ius.el5.noarch.rpm 安装wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-xxxxx.ius.el5.noarch.rpm wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-xxxxxx.ius.el5.noarch.rpm rpm -Uvh ius-release*.rpm epel-release*.rpm 列表可以安装的包yum list | grep -w \.ius\. 安装 replace 插件$ sudo yum install yum-plugin-replace 查看 php[[email protected] ~]# rpm -qa | grep php 替换新版 php yum replace php --replace-with php52 安装几个插件 yum install -y php52-xml php52-dom php52-mcrypt php52-gd php52-mbstring php52-mhash 替换后查看 [[email protected] ~]# php -v 重启 apache[[email protected] ~]# httpd -tSyntax OK [[email protected] ~]# /etc/init.d/httpd restartStopping httpd: [ OK ]Starting httpd: [ OK ] 替换 mysqlyum replace mysql --replace-with mysql51     命令列表如下   wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpmwget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpmrpm -Uvh ius-release*.rpm epel-release*.rpmyum install yum-plugin-replaceyum replace php --replace-with php52yum…
Read more...

mysql mycnf 4g centos 5.7 plesk sb panel

[mysqld]bind-address=127.0.0.1set-variable=local-infile=0datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysql# Default to using old password format for compatibility with mysql 3.x# clients (those using the mysqlclient10 compatibility package).old_passwords=1
Read more...

CentOS 5.5 x64 PPTPD Server -2

Install the poptop repository rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm   Installing Unstable/Beta   # Install the poptop repository first # poptop-beta updates ppp to 2.4.5-8.1.rhel5 from 2.4.4   [[email protected] yum.repos.d]# yum --enablerepo=poptop-beta install pptpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.aarnet.edu.au * base: mirror.aarnet.edu.au * extras: mirror.aarnet.edu.au * updates: mirror.aarnet.edu.au poptop-beta | 2.3 kB 00:00 poptop-beta/primary_db | 7.8 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package pptpd.x86_64 0:1.3.4-2.rhel5.1 set to be updated --> Processing Dependency: ppp = 2.4.5 for package: pptpd --> Running transaction check ---> Package ppp.x86_64 0:2.4.5-8.1.rhel5 set to…
Read more...

CENTOS 5 WEBMIN

If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing : [Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1 You should also fetch and install my GPG key with which the packages are signed, with the command : rpm --import http://www.webmin.com/jcameron-key.asc You will now be able to install with the command : yum install webmin All dependencies should be resolved automatically.
Read more...

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0003398376{main}( ).../index.php:0
20.02951348768Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.02951348768Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.10142790984Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ).../SiteApplication.php:233
50.10182815400Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ).../SiteApplication.php:194
60.10222870752Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:377
70.10232887808require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ).../ComponentHelper.php:402
80.10563020048K2ControllerItemlist->execute( $task = 'category' ).../k2.php:64
90.10563020048K2ControllerItemlist->display( $cachable = ???, $urlparams = ??? ).../BaseController.php:710
100.10793043672K2ControllerItemlist->display( $cachable = TRUE, $urlparams = ['limit' => 'UINT', 'limitstart' => 'UINT', 'id' => 'INT', 'tag' => 'STRING', 'searchword' => 'STRING', 'day' => 'INT', 'year' => 'INT', 'month' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'ordering' => 'CMD', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../itemlist.php:49
110.10793043672K2ControllerItemlist->display( $cachable = TRUE, $urlparams = ['limit' => 'UINT', 'limitstart' => 'UINT', 'id' => 'INT', 'tag' => 'STRING', 'searchword' => 'STRING', 'day' => 'INT', 'year' => 'INT', 'month' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'ordering' => 'CMD', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../controller.php:19
120.10863051184Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItemlist { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = 'CentOS 5'; public $description = ''; public $link = ''; public $base = 'https://www.shan.info/itemlist/category/90-centos-5.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'itemlist'; protected $_models = ['item' => class K2ModelItem { ... }, 'itemlist' => class K2ModelItemlist { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'itemlist'; protected $_layout = 'category'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category_item.php'; protected $_output = '\n<article class="itemView groupPrimary"> \t\n\t\t<time datetime="2010-12-26T12:52:47+01:00">\n\t\t26 Dec\t</time>\n\t\t\t\n\t<section>\t\t\n\t\t<header>\n\t\t\t\t\n\t\t\t\t\t\t<h2>\n\t\t\t\t\t\t\t\t\t\t<a href="/item/177-centos-5-webmin.html">CENTOS 5 WEBMIN</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t\n\t\t\t<ul>\n\t\t\t\t\t\t\t\t<li class="itemCategory"> <span>Published in</span> <a href="/itemlist/category/90-centos-5.html">CentOS 5</a> </li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class="itemCommen'; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $now = '2021-01-24 03:50:58'; public $nullDate = '0000-00-00 00:00:00'; public $category = class TableK2Category { public $id = '90'; public $name = 'CentOS 5'; public $alias = 'centos-5'; public $description = ''; public $parent = '0'; public $extraFieldsGroup = '0'; public $published = '1'; public $image = '/components/com_k2/images/placeholder/category.png'; public $access = '1'; public $ordering = '5'; public $params = '{"inheritFrom":"49","theme":"","num_leading_items":"2","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"4","num_primary_columns":"2","primaryImgSize":"Medium","num_secondary_items":"4","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"4","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"1","catImage":"1",'; public $trash = '0'; public $plugins = ''; public $language = '*'; protected $_tbl = '#__k2_categories'; protected $_tbl_key = 'id'; protected $_tbl_keys = [...]; protected $_db = class JDatabaseDriverMysqli { ... }; protected $_trackAssets = FALSE; protected $_rules = NULL; protected $_locked = FALSE; protected $_autoincrement = TRUE; protected $_observers = class JObserverUpdater { ... }; protected $_columnAlias = [...]; protected $_jsonEncode = [...]; protected $_errors = [...]; public $metaDescription = NULL; public $metaKeywords = NULL; public $metaRobots = NULL; public $metaAuthor = NULL; public $link = '/itemlist/category/90-centos-5.html'; public $text = ''; public $jcfields = [...]; public $event = class stdClass { ... } }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $feed = 'https://www.shan.info/itemlist/category/90-centos-5.html&format=feed&Itemid=53'; public $leading = []; public $primary = [0 => class stdClass { ... }, 1 => class stdClass { ... }, 2 => class stdClass { ... }, 3 => class stdClass { ... }, 4 => class stdClass { ... }, 5 => class stdClass { ... }, 6 => class stdClass { ... }, 7 => class stdClass { ... }]; public $secondary = []; public $links = []; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 0; public $limit = 10; public $total = 8; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 1; public $pagesCurrent = 1; public $pagesTotal = 1; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL }; public $item = class stdClass { public $id = '177'; public $title = 'CENTOS 5 WEBMIN'; public $alias = 'centos-5-webmin'; public $catid = '90'; public $published = '1'; public $introtext = 'If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing : [Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1 You should also fetch and install my GPG key with which the packages are signed, with the command : rpm --import http://www.webmin.com/jcameron-key.asc You will now be able to install with the command : yum install webmin All dependencies sh'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = '[]'; public $extra_fields_search = ''; public $created = '2010-12-26 11:52:47'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '0'; public $checked_out_time = '0000-00-00 00:00:00'; public $modified = '2013-01-05 12:19:01'; public $modified_by = '63'; public $publish_up = '2010-12-26 11:52:05'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '1'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '2250'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $categoryname = 'CentOS 5'; public $categoryid = '90'; public $categoryalias = 'centos-5'; public $categoryparams = '{"inheritFrom":"49","theme":"","num_leading_items":"2","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"4","num_primary_columns":"2","primaryImgSize":"Medium","num_secondary_items":"4","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"4","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"1","catImage":"1",'; public $itemGroup = 'primary'; public $category = class TableK2Category { ... }; public $link = '/item/177-centos-5-webmin.html'; public $printLink = '/item/177-centos-5-webmin.html?tmpl=component&amp;print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $rawTitle = 'CENTOS 5 WEBMIN'; public $author = class Joomla\CMS\User\User { ... }; public $text = 'If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing : [Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1 You should also fetch and install my GPG key with which the packages are signed, with the command : rpm --import http://www.webmin.com/jcameron-key.asc You will now be able to install with the command : yum install webmin All dependencies sh'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '400' } }, $method = 'display', $id = ???, $wrkarounds = ??? ).../BaseController.php:663
130.10913071872K2ViewItemlist->display( $tpl = ??? ).../ViewController.php:102
140.16774004072K2ViewItemlist->display( $tpl = NULL ).../view.html.php:1407
150.16774004072K2ViewItemlist->loadTemplate( $tpl = NULL ).../HtmlView.php:230
160.16844080896include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php ).../HtmlView.php:701