install directadmin in centos

33  wget http://www.directadmin.com/setup.sh
34  chmod 755 setup.sh
35  ./setup.sh
36  yum -y install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which patch mailx db4-devel
37  yum -y update
38  df -h
39  ./setup.sh
40  service iptables stop
41  chkconfig iptables off

most easy way to install lamp for ubuntu

Install Apache

To start off we will install Apache.

1. Open up the Terminal (Applications > Accessories > Terminal).

2. Copy/Paste the following line of code into Terminal and then press enter:

sudo apt-get install apache2

3. The Terminal will then ask you for you’re password, type it and then press enter.

Testing Apache

To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1. Open up any web browser and then enter the following into the web address:

http://localhost/

You should see a folder entitled apache2-default/. Open it and you will see a message saying “It works!” , congrats to you!

Install PHP

In this part we will install PHP 5.

Step 1. Again open up the Terminal (Applications > Accessories > Terminal).

Step 2. Copy/Paste the following line into Terminal and press enter:

sudo apt-get install php5 libapache2-mod-php5

Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:

sudo /etc/init.d/apache2 restart

Test PHP

To ensure there are no issues with PHP let’s give it a quick test run.

Step 1. In the terminal copy/paste the following line:

sudo gedit /var/www/testphp.php

This will open up a file called phptest.php.

Step 2. Copy/Paste this line into the phptest file:

<?php phpinfo(); ?>

Step 3. Save and close the file.

Step 4. Now open you’re web browser and type the following into the web address:

http://localhost/testphp.php

The page should look like this:

Test PHP Page

Congrats you have now installed both Apache and PHP!

Install MySQL

To finish this guide up we will install MySQL. (Note – Out of Apache and PHP, MySQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.)

Step 1. Once again open up the amazing Terminal and then copy/paste this line:

sudo apt-get install mysql-server

Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the “Bind Address”. Begin by opening up Terminal to edit the my.cnf file.

gksudo gedit /etc/mysql/my.cnf

Change the line

bind-address = 127.0.0.1

And change the 127.0.0.1 to your IP address.

Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal:

mysql -u root

Following that copy/paste this line:

mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘yourpassword’);

(Make sure to change yourpassword to a password of your choice.)

Step 4. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal:

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following:

gksudo gedit /etc/php5/apache2/php.ini

Now we are going to have to uncomment the following line by taking out the semicolon (;).

Change this line:

;extension=mysql.so

To look like this:

extension=mysql.so

Now just restart Apache and you are all set!

sudo /etc/init.d/apache2 restart

The End

Quick note to anyone who encountered problems with setting up the MySQL password, please refer to this page: MysqlPasswordReset

I applaud everyone who has taken the time to read this guide. This guide is also my first ever so I would love to hear back from the public on what you guys think! Just don’t be too harsh. 😉

If you have questions about installing any part of LAMP just drop them in the comment box and I will do my best to help you out.

Linux CentOS 5.6 Installation Guide

Wow, it takes a whole day to prepare the CDs and install CentOS 5.6, here is a memory of how to do it,
– Making CDs
1) download the centOS from
http://isoredirect.centos.org/centos/5.6/isos/i386/
or
http://isoredirect.centos.org/centos/

download either 1/8 to 8/8 or whole one file

2) Make it to iso CD
– this is the most confused parts, finally figure it out,
use Simply Burns ( for Mac System) or you can try (Nero for Windows) to Burn it to ISO.
Select the files from download page, Open with Simply Burns, Burn it to ISO.

3) Use the First CD to start the server, use CD boot in server boot setup
4) 1-8 CD installation

Something need to write down
– Active httpd service
# service httpd start

– check httpd status
# service httpd status

– stop httpd service
# servide httpd stop

– NetCard setting
#ifconfig eth0 192.168.0.167 netmask 255.255.255.0 up
#ifconfig eth0:0 down
#ifconfig eth0:0 up
#/etc/sysconfig/network-scripts/ifcfg-eth0
#etc/resolv.conf
#etc/sysconfig/network

– Something config in ifcfg-eth0
DEVICE=eth0:0
BOOTPROTO=none
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.167
GATEWAY=192.168.0.1
ONPARENT=no
ONBOOT=yes

done

– YUM Installation
1) Install GNOME
#yum groupinstall “X Window System” “GNOME Desktop Environment”

2) Install Firefox
#yum list firefox
#yum install firefox_x86( as listed file name)

3) install chinese language package
#yum install “@Chinese Support”

Done

Or the good link for installation guide from site
http://www.howtoforge.com/installation-guide-centos5.1-desktop

mysqldump more options

You can usually import MySQL dumps that were made on older versions of MySQL into newer versions of MySQL. The contrapositive doesn’t always hold true. Your old server has MySQL 5.1.48, and the new one was configured with MySQL 5.0.77a, and so it wasn’t able to parse the MySQL dump file correctly.

For your reference, below is the MySQL dump command I ran on your old server to ensure data integrity and stored procedures’ integrity:

mysqldump -u ecommer1 -p –add-locks –comments –complete-insert –dump-date –events –routines –tz-utc ecommer1_value > ecommer1_value.sql

/uc_server/index.php was not found on this server处理方法 - discuz

很多朋友的 DZ论坛在退出时出现The requested URL /uc_server/index.php was not found on this server时,也就是正常登录你的用户,再退出时提示的一段错误
我仔细看了一下路径没有问题 ,把UC后台的IP地址都改成了新的IP,但是问题依然
解决方法:看一下FTP论坛根目录下config.inc.php这里的IP是不是还是127.0.0.1,如果是的话,改成IP地址(我用的方法是就是 这个,把这个文件里填写真实IP地址,UC应用里与其填写一致;留空的方法没有尝试)
好了,如果这几个方法都可以反复测试一下,但前提是UC应用一定要与config.inc.php这个文件里一致

如果是DZ X以上版本的请在config/config_ucenter.php修改127.0.0.1为你的IP即可解决!