Magic Quotes lỗi cài đặt với Drupal 8

Magic Quotes lỗi cài đặt với Drupal 8

We've had a few members start to test Drupal 8 and several ran into a problem during the installation.

Basically their hosting service is out-of-date or incorrectly set up. During the installation they get an error message saying that something called "Magic Quotes" isn't supported.

Here's an explanation of that problem and how you can fix it.

Some Background on this Problem

As Drupal advances, it requires more updated versions of the underlying software.

For example, Drupal 8 requires PHP 5.3.5. This is a good thing, because PHP 5.2 is dead software. Support for PHP 5.2 ended in September 2011.

So, PHP 5.3 is a good version to use for your site. However, it does start the removal of some features, including one called Magic Quotes. Drupal 8 asks that Magic Quotes feature be disabled.

However, many hosting companies still haven't updated to PHP 5.3.5 or later, either out of laziness or perhaps a fear of breaking their customers websites.

If you have a hosting company that hasn't updated or hasn't turned off Magic Quotes, here's what to do in order to use Drupal 8.

Step 1: Upload your Drupal 8 Files

  • Upload the Drupal 8 files to your server as with a normal installation.
  • If you have the Magic Quotes problem, when you try to access the installation screen you'll get an error like this:

d8-magic-quotes

Step 2: Create a PHP.ini File

  • Using an FTP manager or your hosting control panel, access your site's files. They will look like the image below:

Magic Quotes lỗi cài đặt với Drupal 8

  • Create a file called php.ini.
  • Add the code below:
1.magic_quotes_gpc = Off
2.extension=pdo.so
3.extension=pdo_mysql.so

Note: If you are using a hosting company, it is possible that they want you to modify your php.ini file in a different way. Consider raising a support ticket with them to check.

Step 3: Add to your .htaccess File

  • Find your .htaccess file.
  • Open the file and add this code. 
  • Change "myusername" and "yourD8folder" to match the folder names that you are using.
1.<IfModule mod_suphp.c>
2.suPHP_ConfigPath /home/myusername/public_html/yourD8folder
3.<Files php.ini>
4.order allow,deny
5.deny from all
6.</Files>
7.</IfModule>

Step 4: Recheck your Installation

  • Revisit your Drupal installation screen and you should be able to complete the installation.
  • If you are still having problems, check with your hosting company on how you turn Magic Quotes off.
Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
 Apple trở thành hãng máy tính lớn nhất hành tinh

Apple trở thành hãng máy tính lớn nhất hành tinh

Hãng công nghệ Apple đã qua mặt đối thủ HP, trở thành nhà sản xuất máy tính cá nhân lớn nhất thế giới trong quý 4/2011, hãng nghiên cứu Canalys vừa đưa ra đánh giá.

Phần 2 - view, controller và router trong Symfony 2

CRUD sẽ làm cho mọi thừ đơn giản, hãy dùng nó để bắt đầu việc ... đọc hiểu. Chạy các lệnh sau:

Terminal 101: Sử dụng lệnh tìm kiếm tập tin

Terminal 101: Sử dụng lệnh tìm kiếm tập tin

Cách tìm kiếm tập tin nhanh chóng bằng Terminal trong Mac.

Công ty diệt chuột T&C

 

Diet con trung