Eric @ EricBess WebHome

Wins do not arrogant, not to lose hungry, there is shock chest and face, such as mine Pinghu

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

ZendDebugger for Freebad

Requester:

disable your ZendOptimizer and eaccelerator
download ZendDebugger.os place to / usr/local/lib/php/20060613 /

ZendDebugger.so for freebsd (2.2 MiB, 5 hits)
You need to be a registered user to download this file.

Install:

edit your php.ini. For me php.ini is in / usr / local / etc /

[Zend]
zend_extension=/usr/local/lib/php/20060613/ZendDebugger.so
zend_debugger.allow_hosts=10.10.2.0/24
zend_debugger.expose_remotely=always
zend_debugger.connector_port=10001

restart your apache

Look in the phpinfo () got the result below!

zenddebugger

Click to continue reading

November 3rd, 2008 Posted by eric | Coding, System | no comments

My Freebsd Setting

Former chapter: FreeBSD standard setup and tuning [load]

0 sections: a minimum of installation work

sysinstall -> Configure -> Distributions -> man / / install the man I used to, there is no such thing, really painful
/ usr / libexec / locate.updatedb / / update the database LOCATE

Subsection 1: ssh configuration

ee / etc / rc.conf
/ / If there sshd_enable = "YES" then we have to open an ssh server, if not, please add.

ee / etc / ssh / sshd_config
/ / Find # PermitRootLogin no line, remove the # sign in front, then the back of no change yes, according to the ESC and then double-save from the carriage return. If you can use VI.

/ / Restart the SSH service
/ etc / rc.d / sshd restart

Subsection 2: System Update

/ / Cvsup installation procedure. cvsup from a remote server hosts the main cvs (1) distributed database and update the tree-source software package used to update the operating system and software.
setenv PACKAGEROOT "ftp://ftp.freebsdchina.org/"
setenv PACKAGESITE "ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/" OR
/ / At / etc / profile, quickly set up the domestic packagesite
export PACKAGESITE = ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/
export PACKAGEROOT = ftp://ftp.freebsdchina.org/

pkg_add-r cvsup-without-gui
rehash

/ / Now we can use the cvsup, first of all-source software package to update ports.
cp / usr / share / examples / cvsup / ports-supfile ~ root

Update servers:

ee ~ root / ports-supfile
/ / * default host = CHANGE_THIS.FreeBSD.org
/ / In order to more rapidly, generally choose from our relatively close to the server:
/ / * default host = cvsup.freebsdchina.org

Update PORTS LIST:

cvsup-g-L 2 ~ root / ports-supfile

Click to continue reading

March 23rd, 2008 Posted by eric | Unix / BSD / Linux | no comments

FreeBSD 7.0 released today

FreeBSD 7.0-RELEASE officially released, which is 7-STABLE branch of the first official release, but also the first to the current plan rather than function as a priority odd version. This version of the main highlights include:

- SMP for the environment as well as many other database performance testing exposed the scalability issue has been a significant improvement. FreeBSD 7.0 with a number of cases, the general load performance than FreeBSD 6.X increased 350 percent, high-load conditions to improve performance up to 1500 percent. And so far the best performance of the Linux kernel (version 2.6.22 and 2.6.24), high-performance 15%. These performance improvements for the results from the analysis of system performance and improve the performance assessment of the use case for your specific work load may vary. Performance improvement is mainly derived from the following improvements:
* 1:1 threading model used by default libthr the thread library.
* The inter-process communication (IPC), and scheduler locking network improvements.
* 5.x and 6.x branch of the introduction of the SMP structure optimization.

A number of performance tests show that this version of FreeBSD for up to 8 CPU's case, its performance with the linear increase in the number of CPU. A lot of work to load in the multi-core systems showed remarkable performance.

Click to continue reading

February 28th, 2008 Posted by eric | Unix / BSD / Linux | no comments

Proftpd for FreeBSD port

Install proftpd

cd / usr / ports / ftp / proftpd
make config

| | [X] IPV6 Use IPv6 | |
| | [] LDAP Use LDAP | |
| | [] LDAP_TLS Use LDAP TLS (Requires LDAP, OPENSSL) | |
| | [X] MYSQL Use MySQL | |
| | [] PGSQL Use Postgres | |
| | [X] OPENSSL Include mod_tls | |
| | [X] QUOTA Include mod_quota | |
| | [X] IFSESSION Include mod_ifsession | |
| | [X] README Include mod_readme | |
| | [X] RATIO Include mod_ratio | |
| | [X] CTRLS Include controls | |
| | [X] REWRITE Include mod_rewrite | |
| | [X] WRAP Include mod_wrap2 | |
| | [] WRAP_FILE Include mod_wrap2_file | |
| | [] WRAP_SQL Include mod_wrap2_sql | |
| | [X] RADIUS Include mod_radius | |
| | [] QUOTATAB_RADIUS include mod_quotatab_radius | |
| | [] BAN Include mod_ban (Requires CTRLS) | |
| | [] NLS Use nls (builds mod_lang) | |
| | [] CYRFIX Patch to fix cyrillic encoding | |
| | [X] CLAMAV Include mod_clamav | |

make install

# Basic configuration

cp / usr / local / etc / proftpd.conf / usr / local / etc / proftpd.conf.sample
vi / usr / local / etc / proftpd.conf

1 2 3

February 19th, 2008 Posted by eric | System | no comments

Apache @ Linux & FreeBSD Setup

1. Linux Setup

1.1 Installation

? [Copy to clipboard] View Code BASH
 1 
 2 
 3 
 4 
 5 
  tar /  http: // apache.justdn.org / httpd / httpd-2.X.XX.tar.bz2tar jxvf tar / httpd-2.X.XX.tar.bz2 wget-P tar / http:// apache.justdn.org / httpd / httpd-2.X.XX.tar.bz2tar jxvf tar / httpd-2.X.XX.tar.bz2 
  cd httpd-2.X.XX 
  = / usr / local / apache . / Configure - prefix = / usr / local / apache 
  10 make-j 10 
  make install 

1.2 Config setting

? [Copy to clipboard] View Code BASH
 1 
 2 
  apachectl / etc / init.d / httpd cp support / apachectl / etc / init.d / httpd 
  / etc / init.d / httpd chmod 755 / etc / init.d / httpd 

Add following to the head "/ etc / init.d / httpd": modified / etc / init.d / httpd: the front lines are changed to look like.

? [Copy to clipboard] View Code BASH
 1 
 2 
 3 
 4 
 5 
 6 
 7 
  # Startup script for the Apache Web Server 
  # Chkconfig: 35 85 15 
  # Description: Apache is a World Wide Web server. It is used to serve \ 
  # HTML files and CGI. 
  # Processname: httpd 
  # Pidfile: / usr / local / apache / log / httpd.pid 
  # Config: / usr / local / apache / conf / httpd.conf 

Run

? [Copy to clipboard] View Code BASH
 1 
  chkconfig - add httpd 

Configuration "/ usr / local / apache / conf / httpd.conf"

? [Copy to clipboard] View Code BASH
 1 
  ServerName yourservername.yourdomainname: 80 

# In the / root / .bash_profile in the PATH **** add: / usr / local / apache / bin

2. Apache with the. Htaccess files to increase user authentication

And then edit the httpd.conf, add cases:
? [Copy to clipboard] View Code BASH
 1 
 2 
 3 
 4 
 5 
 6 
 7 
  "/var/www/test" Alias / test "/ var / www / test" 
  > <Directory "/ var / www / test"> 
    Options Indexes MultiViews 
    AllowOverride AuthConfig # said authenticate 
    Order allow, deny 
    Allow from all 
  </ Directory> 
Finally: attention ". Htaccess" authority.

3. The name of the virtual-host

? [Copy to clipboard] View Code BASH
 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
 10 
  NameVirtualHost 61.152.210.22 
  virtualhost > <Virtualhost> </ virtualhost> 
    ServerAdmin eric@ericbess.com 
    ServerName www.ericbess.com 
    eric / public_html / igenus DocumentRoot / home / eric / public_html / igenus 

  virtualhost > <Virtualhost> </ virtualhost> 
    ServerAdmin eric@dyzq.com 
    ServerName mail.dyzq.com 
    local / httpd / htdocs / DocumentRoot / usr / local / httpd / htdocs / 

4.Other

Here, the best in the apache configuration to increase the default file type of cache mechanism, that is, the use of the apache module expires, add a few lines like the following:

? [Copy to clipboard] View Code BASH
 1 
 2 
 3 
 4 
 5 
 6 
 7 
  ExpiresActive On 
  quot;access plus 10  minutes & quot; ExpiresByType text / html & quot; access plus 10 minutes & quot; 
  quot;access plus 1  day & quot; ExpiresByType text / css & quot; access plus 1 day & quot; 
  quot;access 1  month & quot; ExpiresByType image / jpg & quot; access 1 month & quot; 
  quot;access 1  month & quot; ExpiresByType image / gif & quot; access 1 month & quot; 
  quot;access 1  month & quot; ExpiresByType image / jpg & quot; access 1 month & quot; 
  quot;access plus 3  day & quot; ExpiresByType application / x-shockwave-flash & quot; access plus 3 day & quot; 

Click to continue reading

December 29th, 2007 Posted by eric | Unix / BSD / Linux | no comments

FreeBSD CVSup (simple to use)

CVSup from a remote server hosts the main warehouse CVS release the source code tree and upgrade packages. FreeBSD source code in California to maintain a master server, the development of the CVS warehouse. With CVSup, FreeBSD users can easily maintain their own source code tree updated.

CVSup to upgrade the use of so-called pull model. In pull mode, the client needs at a time when the request to the server-side update. Server passive waiting for the client's request to upgrade. Accordingly upgrade all were initiated by the client. Server will not send the request not to upgrade. Users must manually run CVSup client access to updates, or to set up a cron to work to make it permanent law to run automatically.

CVSup term is written in capital letters that represent the complete package. Its main components are running on each user on the client machine cvsup, and run in each of the FreeBSD mirror site on the server side cvsupd.

Installation

CVSup install the simplest way is to use FreeBSD packages collection in the pre-compiled net / cvsup package.
# Pkg_add-r cvsup
If you do not want to install Xorg or XFree86 TM computer, you can only use CVSup GUI does not include the net / cvsup-without-gui.
# Pkg_add-r cvsup-without-gui

So we installed cvsup process, but we have to refresh you can order the use of cvsup. Input
# rehash

Click to continue reading

December 11th, 2007 Posted by eric | Unix / BSD / Linux | no comments

2 3 » Page 1 of 3 1 2 3 »