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

 
Hướng dẫn cấu hình SMTP với Drupal 7

Hướng dẫn cấu hình SMTP với Drupal 7

Trong mục Email Options : nhập các thông tin cho E-mail from address và E-mail from name.

Facebook có thể đánh mất niềm tin của nguời dùng

Facebook có thể đánh mất niềm tin của nguời dùng

Facebook đang hi vọng công cụ tìm kiếm mới của hãng sẽ là bước đột phá lớn kế tiếp trong làng công nghệ. Nhưng chắc chắn mạng xã hội phổ biến nhất thế giới sẽ cần nhiều sự hợp tác hơn từ phía người dùng.

Samsung không có hứng thú với Firefox OS vừa ra mắt của Mozilla

Samsung không có hứng thú với Firefox OS vừa ra mắt của Mozilla

Một quan chức cấp cao của Samsung tuyên bố công khai tại MWC 2013 rằng Samsung không có hứng thú với việc tung ra các thiết bị chạy trên nền hệ điều hành Firefox OS vừa ra mắt của Mozilla.

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

 

Diet con trung