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

 
keyword để Seo

Cách chọn keyword để Seo thành công

Chọn từ khóa nào để cạnh tranh thứ hạng trên các công cụ tìm kiếm là một quyết định quan trọng. Nếu quyết định không chính xác, cả một chương trình cạnh tranh hàng chục ngày, chi phí hàng triệu đồng sẽ chỉ có ý nghĩa như một bài học để rút kinh nghiệm.

Phần 2: Quản lý các Drupal sites với AEgir rất tiện lợi

Phần 2: Quản lý các Drupal sites với AEgir rất tiện lợi

AEgir can be somewhat perplexing if youʼre unfamiliar with the multisite file structure so weʼll start by discussing some of the terminology.

Giới thiệu TTR Configurable Widget in Drupal 7

Giới thiệu TTR Configurable Widget in Drupal 7

Microserve is proud to announce the submission of another Drupal contrib module – TTR Configurable Widget. The module extends upon the Taxonomy Term Reference field by adding further customisable options to use rather than the default ‘Checkboxes’ and ‘Select List’.

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

 

Diet con trung