1. 개요 XE에서 짧은 주소를 사용할 경우 mod_rewrite 모듈을 실행해야한다. 2. 모듈 실행 sudo a2enmod rewrite 3. apache 재시작 sudo service apache2 restart
Author: manager
MSSQL Express 백업 설정
1. 개요 MSSQL Express 버전은 백업 스케쥴러가 없어서 스크립트로 백업해야한다. 2. SQL문 작성 — Format — DECLARE @DIR NVARCHAR(100) DECLARE @BACKUPNAME NVARCHAR(100) SET @DIR = N'[폴더명]\[파일명]_’ + CONVERT(NVARCHAR(20), GETDATE(), 112) + N’.BAK’ SET @BACKUPNAME = N'[폴더명]\[파일명]_’ + CONVERT(NVARCHAR(20), GETDATE(),112) + N’.BAK’ BACKUP DATABASE [DB] TO DISK = @DIR WITH NOFORMAT, NOINIT, NAME = @BACKUPNAME, […]
Install PHP7 on CentOS7
1. 설치 yum install epel-release sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum install php71w php71w-cli php71w-devel php71w-bcmath php71w-common php71w-mcrypt php71w-domxml php71w-gd php71w-imap php71w-mbstring php71w-xmlrpc php71w-pear “Image*” * PHP 모듈 설치 : php71w-모듈이름 2. apache 재시작 sudo systemctl restart httpd.service
[Manual] Install APM on Ubuntu
1. 개요 설치 순서 : Apache, MySQL, PHP, phpMyAdmin 우분투에 APM + phpmyadmin 설치 1) Apache 웹 서버 설치 a. apache2 설치 sudo apt install -y apache2 apache2-dev b. 보안 설정 vi /etc/apache2/conf-enabled/security.conf ServerTokens Prod ServerSignature Off vi /etc/apache2/apache2.conf <Directory /var/www/> Options FollowSymLinks ; Indexes 삭제 AllowOverride None Require all granted </Directory> c. rewrite […]
APM source 설치 (A 2.2.24 / P 5.2.16 / M 5.1.69) on CentOS
1. 개요 APM source 설치 Apache : 2.2.24 / PHP : 5.2.16 / MYSQL : 5.1.69 – httpd 2.2.24 – php 5.2.16 – mysql 5.1.69 yum install expat-devel ncurses ncurses-devel openssl-devel libxml2-devel curl-devel gdbm-devel libc-client-devel krb5-devel libjpeg-devel bzip2-devel openssl-devel libpng-devel freetype-devel ncurses-devel libc-client-devel gdbm-devel pcre-devel gcc enchant-devel libXpm-devel libicu-devel openldap-devel readline-devel libtidy libtidy-devel libxslt-devel yum […]
APM source 설치 (A 2.4 / P 5.6 / M 5.7) on CentOS
1. 개요 APM source 설치 Apache : 2.4 / PHP : 5.6 / MYSQL 5.7 – httpd 2.4 wget http://mirror.navercorp.com/apache//httpd/httpd-2.4.29.tar.gz – php 5.6 wget http://kr1.php.net/get/php-5.6.32.tar.gz/from/this/mirror -O php-5.6.32.tar.gz – mysql 5.7 wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.20.tar.gz –no-check-certificate yum install expat-devel ncurses ncurses-devel openssl-devel libxml2-devel curl-devel gdbm-devel libc-client-devel krb5-devel libjpeg-devel bzip2-devel openssl-devel libpng-devel freetype-devel ncurses-devel libc-client-devel gdbm-devel pcre-devel gcc […]
Apache 확인
1. apache 프로세서가 꽉 찼을 경우 설정값 확인 vi /etc/apache2/apache2.conf 2. MaxClients 확인 netstat -an | grep 80 ps auxww | grep apache2 3. VirtualHost 확인 httpd -S or apache2 -S ; 위에서 부터 순서대로 적용 4. syntax 오류 확인 httpd -t or apache2 -t /usr/sbin/apachectl -t
apache 구동 후 접속 에러
1. 개요 다음과 같은 오류메시지가 나올 경우 ubuntu@server:/home/testserver$ tail -f /var/log/apache2/test.com-error.log [Mon Oct 30 22:28:33.267156 2017] [authz_core:error] [pid 16485:tid 139851441596160] [client x.x.x.x:51342] AH01630: client denied by server configuration: /home/testserver 2. 해결 방법 sudo vi /etc/apache2/apache2.conf <Directory /> Options FollowSymLinks AllowOverride None # Require all denied ; 주석 처리 Require all granted ; 추가 </Directory> […]
Apache Virtualhost 설정
[Ubuntu] apt로 설치한 apache2 cd /etc/apache2/sites-enabled sudo cp 000-default.conf [사이트명].conf sudo vi [사이트명].conf <VirtualHost *:80> ServerName [도메인 ex> test.com] ServerAlias [별칭 도메인 ex> www.test.com] ServerAdmin [관리자 이메일] DocumentRoot [디렉토리 경로 ex> /home/test/public_html] Redirect [디렉토리] [리다리엑트 URL ex> https://www.naver.com] ErrorLog ${APACHE_LOG_DIR}/[도메인 ex> test.com]-error.log ; errorlog 경로 CustomLog ${APACHE_LOG_DIR}/[도메인 ex> test.com]-access.log combined ; accesslog 경로 </VirtualHost> […]
변수 값 유무 확인
1. 개요 POST로 전달받은 refresh 값이 존재하고, 그 값이 1인지 체크 2. Code if (isset($_POST[‘refresh’]) && $_POST[‘refresh’] == 1){ echo “hello” }