웹호스팅 다른곳으로 이전하면서 그곳 서버가 리눅스길래
처음으로 설치해봤습니다.
호스팅업체와 비슷한 환경 만들려고 해봤는데 쉽지 않네요.
아래 셋팅방법으로 제로보드XE 복원(DB포함)시켰는데
혹시 빠진게 있는지 해서요.
vmware에서 설치했습니다.
하나하나 찾아서 정리한거라 시간이 많이 걸렸네요 ㅎㅎ
우분투 서버 셋팅
-우분투 root 활성화
sudo passwd root
sudo gedit /etc/lightdm/lightdm.conf
—추가----
greeter-show-manual-login=true
autologin-user=root
-Synaptic Package Manager Install
sudo apt-get install synaptic
-Installing Apache
sudo apt-get install apache2
#test http://localhost (It works)
gksu gedit /etc/apache2/conf.d/fqdn (When Gedit opens, type “ServerName localhost” inside the file and click Save. Then close the file.)
- Installing php5
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
sudo gedit /var/www/phpinfo.php (Now point your browser to “http://localhost/phpinfo.php” and see if you can see the text “yoo hooo!” and a lot of information about your php5 installation. If you see that, it means your have successfully installed php5.)
----php파일만들기—
<? phpInfo(); ?>
-Installing MySQL
sudo apt-get install mysql-server libapache2-mod-auth-mysql
(password typing)
-Installing phpMyAdmin
sudo apt-get install phpmyadmin
(Select apache2, no)
sudo gedit /etc/apache2/apache2.conf
-----추가----
Enable PhpMyAdmin
Include /etc/phpmyadmin/apache.conf
sudo /etc/init.d/apache2 restart
test:
http://localhost/phpmyadmin- phpMyAdmin upload size change
sudo gedit /etc/php5/apache2/php.ini
-------수정-------
upload_max_filesize =
post_max_size =
- FTP 설치
sudo apt-get install vsftpd
sudo vi /etc/vsftpd.conf
------수정—
write_enable=YES (주석삭제)
local_root=/var/www (추가)
sudo /etc/init.d/vsftpd restart