Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 08-07-2012, 04:55 PM   #1
tranqui89
Administrator
 
Gia nhập: Dec 2011
Trả Lời: 32
Cấu hình Apache không đúng dẫn đến lỗi: New files of configuration for Apache web ser
Cấu hình Apache không đúng dẫn đến lỗi: New files of configuration for Apache web server were not built due to errors in configuration templates.

Áp dụng cho:
  • Parallels Plesk Panel 10.x for Linux
Mô tả lỗi


Những lỗi sau xuất hiện khi login vào Parallels Plesk Panel 10:

New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating configuration



Nguyên nhân


1. Gói mailman thì chưa được cài đặt trên server. Những lỗi sau xuất hiện khi cố gắng thực hiện khởi tạo lai file cấu hình Apache:

Mã:
~# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
No valid mailman bindir detected

Thư mục Mailman từ file psa.conf thì bị bỏ lỡ:

Mã:
~# grep MAILMAN /etc/psa/psa.conf
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /var/lib/mailman
Mã:
~# ls -ld /usr/lib/mailman /var/lib/mailman
ls: /usr/lib/mailman: No such file or directory
ls: /var/lib/mailman: No such file or directory

2. Một vài domain được khởi tạo cấu hình Apache với các phiên bản cũ của Parallels Plesk như Panel 9.x, 8.x. và file cấu hình Apache không thể khởi tạo chạy trên phiên bản mới Parallels Plesk Panel 10.3.

3. File cấu hình Apache của một vài domain không thể khởi tạo bằng Parallels Plesk Panel. Để nhìn thấy lỗi mở domain hosting preferences trong Control Panel (Control Panel > Websites & Domains > DOMAIN.TLD).

4. Có một vài ứng dụng Web cài đặt bị lỗi trên domain dẫn đến việc không cho phép Apache khởi tạo file cấu hình Parallels Plesk Panel 10.3. Để nhìn thấ lỗi này vào preferences của CGI support (Control Panel > Websites & Domains > DOMAIN.TLD > CGI support).



Giải pháp


1. Cài đặt gói mailman. Gói rpm phải được tải về từ autoinstaller website (http://autoinstall.plesk.com), file này nằm thư thư mục 'update-rpm-*'. Trên website chọn phiên bản Plesk của bạn, hệ điều hành và kiến trúc (32 bit hoặc 64 bit), ví dụ: http://autoinstall.plesk.com/PSA_10....6.1.x86_64.rpm.

2. Xóa file cấu hình Apache cũ và tạo lại cái mới.

Kích hoạt file logs trong phần cấu hình PHP của Parallels Plesk Panel 10.3, khởi tạo file cấu hình Apache mới và giám sát lỗi trong
Mã:
/var/log/sw-cp-server/error_log.
a) Kích hoạt logs báo cáo lỗi trong cấu hình PHP của Parallels Plesk Panel 10.3:

Mã:
~# sed -i 's/display_errors = Off/display_errors = On/' /usr/local/psa/admin/conf/php.ini
~# /etc/init.d/sw-cp-server restart
b) Xóa tất cả các thực thể trong file cấu hình 'Configurations' của cơ sở dữ liệu 'psa'.

Mã:
~# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"delete from Configurations"
c) Xóa tất cả dòng record 'Include' trong file cấu hình và tất cả nội dung trong thư mục dưới đây:

Mã:
~# sed -i /Include/d /usr/local/psa/admin/conf/ip_vhosts_bootstrap.conf
~# sed -i /Include/d /usr/local/psa/admin/conf/vhosts_bootstrap.conf
~# sed -i /Include/d /usr/local/psa/admin/conf/webmail_horde_bootstrap.conf
~# sed -i /Include/d /usr/local/psa/admin/conf/webmail_atmail_bootstrap.conf
~# sed -i /Include/d /etc/httpd/conf.d/zz010_psa_httpd.conf
~# rm -f /usr/local/psa/admin/conf/generated/*
d) Cấu hình lại Apache server sử dụng tiện ích 'httpdmng':

Mã:
~# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Theo dõi nhật ký file log /var/log/sw-cp-server/error_log.

3. Những lỗi sau đây xuất hiện trong GUI khi thay đổi domain preferences Control Panel (Control Panel > Websites & Domains > DOMAIN.TLD):

--->8---
PHP Notice: Trying to get property of non-object
Line: 233
File: /usr/local/psa/admin/smb/application/library/Smb/Form/Final/Web/Abstract.php
Stack Trace:
...
---8<---

Disable và enable chế độ CGI support trên domain để tạo lại file cấu hình Apache với hosting preferences:

Mã:
~# /usr/local/psa/bin/domain --update DOMAIN.TLD -cgi false
~# /usr/local/psa/bin/domain --update DOMAIN.TLD -cgi true


4. Những lỗi sau xuất hiện trong file log của sw-cp-server khi thay đổi CGI support cho DOMAIN.TLD (Control Panel > Websites & Domains > DOMAIN.TLD > CGI support). Ví dụ:

/var/log/sw-cp-server/error_log
--->8---
2011-08-05T02:03:41-04:00 ERR (3): Exception: PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: mysql_connect(): Access denied for user 'sjdyh3ia'@'localhost' (using password: NO) in /usr/local/psa/var/apspackages/WordPress-2.3.3-5/cache/scripts/db-util.php on line 66
Unable to connect to DB: Access denied for user 'sjdyh3ia'@'localhost' (using password: NO)
---8<---

Xóa bỏ những ứng dụng web bị lỗi ví dụ như WordPress-2.3.3-5 thông qua Control Panel: Home > Installed Applications > WordPress > Remove.



Chúc các bạn thực hiện thành công

tranqui89 vắng mặt   Trả lời ngay kèm theo trích dẫn này
Gửi trả lời



Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 12:15 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.