일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 소비전력
- iptime
- 보르비스초월
- mysql
- 가상서버호스팅
- 시놀로지
- 킹북이초월
- 알리익스프레스
- php
- 티스토리
- SKT
- 스톤에이지
- 램가스초월
- 거제도
- 윈도우10
- 워드프레스
- KB국민카드
- 알뜰폰
- jQuery
- ConoHa
- proxmox
- 복현오거리
- 리눅스
- html/css
- Ajax
- KB증권
- centos
- Apache
- 아파치
- 자바스크립트
- Today
- Total
목록LAMP (100)
맛집 여행 캠핑 일상 생활
서버가 몇 년만인지 모르겠지만 아래와 같이 아파치 재시작이 안되는 현상이 있네요~ apachectl configtest 로는 아무런 이상도 없는데 재시작이 되지를 않아서 journalctl -xe 로 로그를 확인한 결과입니다. [root@example conf.d]# journalctl -xe -- The result is failed. Jul 17 08:53:49 example.com systemd[1]: Unit httpd.service entered failed state. Jul 17 08:53:49 example.com systemd[1]: httpd.service failed. Jul 17 08:53:49 example.com polkitd[26529]: Unregistered Authenti..
이번에는 오라클 클라우드 VM에 CentOS 8 Stream 버전에서 아파치 + PHP-FPM 여러버전 설치하는 방법입니다. dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm dnf -y install httpd nginx mod_ssl dnf -y install php php-fpm dnf -y module reset php dnf -y module enable php:remi-7.3 dnf -y update 디폴트 PHP 버전은 7.3으로 설정하겠습니다. ( CentOS 8..
최근에 오라클 클라우드 VM에 PHP 여러버전을 설치해보니 예전에 먹히는게 안먹히더군요~ 그래서 다시 정리해보았습니다. 테스트 환경은 CentOS 7.9 버전입니다. yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum -y install yum-utils yum -y install mod_ruid2 yum -y install php php-bcmath php-cli php-common php-fpm php-gd php-json php-mbstring php-mysqlnd ..
서버를 하나 다시 설정하려고 보니 아래와 같은 에러가 나는군요~ 환경설정 파일은 백업 받았는데 모듈을 설치 안한 것 같습니다. [root@localhost conf.d]# apachectl configtest AH00526: Syntax error on line 18 of /etc/httpd/conf.d/ssl.conf: Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration # yum -y install mod_ssl
PHP 5.4 버전에서 empty 함수로 인한 에러가 발생한다면 아래 처럼 empty 함수를 구현해주는 방법이 있습니다. empty 함수를 is_empty 로 치환 하면 됩니다. function is_empty( $str ) { if($str == "") { return true; } else if($str == 0) { return true; } else if($str == "0") { return true; } else if($str == NULL) { return true; } else if($str == false) { return true; } else if(is_array($str) && count($str)==0) { return true; } else { return false; } } 위..
같은 이름의 파일명으로 다른 이미지를 업로드 했는데 이전 이미지로 보여지는 경우가 많습니다. 브라우저의 캐시 기능 때문입니다. 다른 파일명으로 저장을 하면 되겠지만 프로그래밍을 다시 하기 귀찮은 경우 간단하게 파일의 수정시간을 체크해서 뒤에다 숫자로 스트링을 붙여주면 됩니다.
[CentOS] VNSTAT PHP FrontEnd 설치 방법 yum install vnstat 이 설치된 상태에서 vnstat php frontend 를 설치하면 웹브라우저에서 네트워크 트래픽 사용량을 볼 수가 있습니다.git clone https://github.com/bjd/vnstat-php-frontend.gitmkdir -p /var/www/vnstatmv ./vnstat-php-frontend/* /var/www/vnstat/vi /var/www/vnstat/config.php //$language = 'nl'; $language = 'en'; //$iface_list = array('eth0', 'sixxs'); $iface_list = array('enp2s0'); //$iface_tit..
[리눅스] 아파치 에러 AH00035 아파치 설치 후 아래와 같은 메시지가 뜨면 퍼미션 오류인데 SELINUX 설정을 바꾸면 해결이 됩니다.[Thu Nov 22 11:14:18.334138 2018] [core:error] [pid 12090] (13)Permission denied: [client 192.168.1.4:57003] AH00035: access to /index.php denied (filesystem path '/home/homepage/www/index.php') because search permissions are missing on a component of the path # vi /etc/selinux/config#SELINUX=enforcingSELINUX=disabled ..
[아파치] AH00558 httpd ServerName 아파치에서 아래와 같은 메시지가 나오면 httpd.conf 파일에 ServerName 이 누락된 경우입니다.[root@vps conf.d]# apachectl configtestAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this messageSyntax OK ServerName localhost이렇게라도 넣은 다음에 재시작 해보세요~
[PHP] 날짜형식 정규식 체크 php 에서 날짜를 받아서 mysql 에 넣을때 잘못된 데이트형식으로 입력하면 '0000-00-00' 으로 입력됩니다.날짜를 체크하는 함수를 한번 만들어 봤습니다.function date_check($str) { $str = str_replace('.', '', $str); $str = str_replace('-', '', $str); $YY = substr(date('Y'),0,2); if(strlen($str)==6) { $str = $YY.$str; } if ( preg_match('/^(\d{4})-?(\d{2})-?(\d{2})$/',$str,$match) && checkdate($match[2],$match[3],$match[1]) ) { return true;..