인프라(infra)

xampp 기본설정

주피터0410 2023. 4. 12. 14:49

** xampp 설치후 403 에러 발생시
httpd.conf 화일에서 아래와 같이 변경

<Directory />
    AllowOverride All
    Require all granted
</Directory>



** VirtualHost 설정방법

<VirtualHost *:80>
    DocumentRoot "D:\project\devtest"
    ServerName devtest.local
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>



** php.ini 기본설정
C:\xampp\php\php.ini 화일에서 속성 변경

;default_charset="UTF-8" -> default_charset="UTF-8"
;extension=php_fileinfo.dll -> extension=php_fileinfo.dll
;date.timezone=Europe/Berlin -> date.timezone=Asia/Seoul
;mbstring.language=Korean -> mbstring.language=Korean
;mbstring.internal_encoding=EUC-kr -> mbstring.internal_encoding=UTF-8
;zend_extension="C:\xampp\php\ext\php_xdebug.dll" -> zend_extension="C:\xampp\php\ext\php_xdebug.dll"
;xdebug.remote_enable=0 ->xdebug.remote_enable=1



** php 문장 그대로 출력
C:\xampp\php\php.ini 화일에서 속성 변경

short_open_tag=Off -> short_open_tag=On


** 소켓(sockets) 설정
C:\xampp\php\php.ini 화일에서 활성화

;extension=sockets -> extension=sockets


** gmp extension 설정
C:\xampp\php\php.ini 화일에서 활성화

;extension=gmp -> extension=gmpc


** html에서 php코드 그대로 출력되는 경우
httpd.conf 화일에서 해당 내용 추가

<IfModule mime_module>
    AddType application/x-httpd-php .htm .html .php .php3 .php4 .phtml .inc
    AddType application/x-httpd-php-source .phps



** 웹사이트의 초기페이지 문서로 어떤 파일을 사용할 것인가를 결정하는 지시자
전체 적용시

<IfModule dir_module>
    Directoryindex index.php index.html
</IfModule>


** https 로 설정
C:\xampp\php\php.ini 화일에서 활성화

;extension=openssl -> extension=openssl
;extension=php_openssl.dll


httpd.conf 화일에서 활성화

LoadModule ssl_module modules/mod_ssl.so


httpd-ssl.conf 화일내용 추강

<VirtualHost *:443>
    ##ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:\CloudStation\project\base_frame"
ServerAlias base.local *.base.local
ServerName base.local
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common

    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile C:\xampp\apache\conf\ssl.crt\server.crt
    SSLCertificateKeyFile C:\xampp\apache\conf\ssl.key\server.key

    <Directory /home/codetest/html>
            Options Indexes FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
    </Directory>
</VirtualHost>

'인프라(infra)' 카테고리의 다른 글

ubuntu 18.04 + Janus Gateway 설치  (0) 2023.06.30
git username / password 저장  (0) 2023.03.30
Git Runners 등록  (0) 2023.03.30
ssh-copy-id 키 복사후 비밀번호 없이 접속  (0) 2023.03.30