리눅스 lampp 에서 phpmyadmin 접속하려고 하니 권한 에러가 발생하여 아래와 같이 수정했습니다.

 

root@lampp:/opt/lampp# nano /opt/lampp/etc/extra/httpd-xampp.conf

 

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
#    AllowOverride AuthConfig Limit
#    Require local
#    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  AllowOverride AuthConfig Limit
  Order allow,deny
  Allow from all
  Require all granted

아래와 같이 수정하시면 됩니다~

 

 

 

출처 : https://gist.github.com/dhavalv/744b1cf996f3990615e85083f84ac56b

 

How to access PhpMyadmin on xampp in linux (Ubuntu)via IP Address?

How to access PhpMyadmin on xampp in linux (Ubuntu)via IP Address? - httpd-xampp-help.md

gist.github.com

httpd.conf 파일에 Indexes 를 지우거나 - 를 앞에 붙이면 됩니다~

 

    Options -Indexes FollowSymLinks

 

 

/opt/lampp/etc/extra/httpd-default.conf 

 

ServerTokens Prod

ServerSignature Off

 

 

 

 I just access to \xampp\apache\conf\extra\httpd-default.conf to set "ServerTokens Prod" and "ServerSignature Off". 

https://stackoverflow.com/questions/21399664/how-to-hide-xampp-apache-version-number

 

how to hide xampp apache version number

I am using xampp(1.8.1) apache server. I would like to hide my Apache Version info when user got 404 pages. I did some research and I know that I should add following two directives in configuratio...

stackoverflow.com

 

mysql 이 위치한 디렉토리로 이동

저의 경우 : /opt/lampp/bin/mysql 

 

mysql -u root -p

<처음 root 암호가 없으므로 그냥 엔터>

use mysql;
update user set password=password('원하는신규비번') where user='root';
flush privileges;

 

아래와 같이 입력하면 root user에 접속하는 3개의 조건별로 동일한 비밀번호가 설정된것을 확인할 수 있습니다.

 

use mysql;

select host, user, password from user;

+-----------+------+-------------------------------------------+

| host      | user | password                                  |

+-----------+------+-------------------------------------------+

| localhost | root | *1EBA3FCB04BBE7C3C2A7934FAA99C4D00 |

| 127.0.0.1 | root | *1EBA3FCB04BBE7C3C2A7934FAA99C4D00 |

| ::1       | root | *1EBA3FCB04BBE7C3C2A7934FAA99C4D00 |

| localhost |      |                                           |

| localhost | pma  |                                           |

+-----------+------+-------------------------------------------+

 

mysql 은 root user는 하나이지만 접속하는 host가 localhost, 127.0.0.1,::1 등 host 에 따라 비밀번호를 다르게 설정가능한것으로 보입니다.

SuiteCRM 7.x 에서 생성한 pdf 견적서가 크롬에서 열리지 않았습니다.

 

 

생성한 pdf 파일을 메모장등으로 열어보면  아래와 같이 에러 로그가 pdf 헤더에 붙어져 있어서 크롬은 정상적인 pdf 파일이 아니라고 판단하여 오류를 내보내는 것이였습니다. 제 맥북의 내장 pdf 뷰어는 신기하게도 그냥 열렸지만 말입니다.

 

아래의 로그를 보고 원인을 제거하면 정상적인 pdf 파일이 생성되겠습니다만 저는 php.ini 파일에서 display_errors=off 로 설정해 임시 조치하였습니다.

 

<br />
<b>Notice</b>:  A non well formed numeric value encountered in <b>/opt/lampp/apps/suitecrm/htdocs/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>37072</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/opt/lampp/apps/suitecrm/htdocs/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1248</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/opt/lampp/apps/suitecrm/htdocs/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1248</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/opt/lampp/apps/suitecrm/htdocs/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1322</b><br />
<br />
<b>Notice</b>:  Uninitialized string offset: 0 in <b>/opt/lampp/apps/suitecrm/htdocs/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1322</b><br />
<br />
<b>Notice</b>:  Undefined index: BODY in <b>/opt/lampp/apps/suitecrm/htdocs/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1111</b><br />
<br />
<b>Notice</b>:  Undefined index: BODY>>ID>> in <b>/opt/lampp/apps/suitecrm/htdocs/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1166</b><br />
<br />

 

 

https://suitecrm.com/suitecrm/forum/installation-upgrade-help/17441-notice-a-non-well-formed-numeric-value-encountered

https://superuser.com/questions/91935/how-to-recursively-chmod-all-directories-except-files/91938#91938


폴더(디렉토리)만 755 퍼미션으로 변경하기

find /path/to/base/dir -type d -exec chmod 755 {} +


파일 만 644 퍼미션으로 변경하기

find /path/to/base/dir -type f -exec chmod 644 {} +





현재 vtigercrm 7.1 의 요구사항


  • Apache 2.1+
  • MySQL 5.1+
    • storage_engine = InnoDB
    • local_file = On
    • sql_mode = empty (or NO_ENGINE_SUBSTITUTION) for MySQL 5.6+
  • PHP 5.2+, 7.0
    • php-imap
    • php-curl
    • php-xml
    • max_memory (min. 256MB)
    • max_execution_time (min. 60 seconds)
    • error_reporting (E_ERROR & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED)
    • display_errors = OFF
    • short_open_tags = OFF
  • Hardware: 4 GB RAM, 250 GB Disk (for file attachments)


1. vtigercrm 7.1 설치시 500 internal server error


저의 경우 해결된 방법은 권한 설정이었습니다.

chown -R www-data:www-data vtigercrm



2. sql_mode = ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION 표시되며 진행 안되는 부분
my.cnf 수정
sql_mode                = NO_ENGINE_SUBSTITUTION


3. vtigercrm -> Database charset or collation not compatible with UTF8 표시되며 진행 안됨.

DB를 만들때 아래 명령어로 만듬..


CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_general_ci;


기타 아래 사항

apt install php7.0-mysql


https://dba.stackexchange.com/questions/76788/create-a-database-with-charset-utf-8

https://discussions.vtiger.com/discussion/187591/vtiger-7-1-0

+ Recent posts