Bash Shell로 Apache에 CGI 설정하는 방법

아파치 설치 후 userdir 모듈 enable @@ 아파치 리스타트 sudo a2enmod userdir sudo service apache2 restart userdir.conf 파일 수정 user1@ubuntu-msi-laptop:~/public_html/cgi-bin$ cat /etc/apache2/mods-enabled/userdir.conf <IfModule mod_userdir.c> UserDir public_html UserDir disabled root <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> […]

MySQL 관련 TIP 정리

################################################################################ # phpmyadmin에서 고정으로 패스워드 등록해 놓는 방법 ################################################################################ // config.inc.php 파일에 다음과 같이 설정해 놓는다. /* Authentication type */ $cfg[‘Servers’][$i][‘auth_type’] = ‘config’; /* Server parameters */ $cfg[‘Servers’][$i][‘host’] = ‘localhost’; $cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’; $cfg[‘Servers’][$i][‘compress’] = false; /* Select mysql if your server does not have mysqli */ $cfg[‘Servers’][$i][‘extension’] = ‘mysqli’; $cfg[‘Servers’][$i][‘AllowNoPassword’] = false; $cfg[‘Servers’][$i][‘user’] = […]