SlideShare una empresa de Scribd logo
1 de 22
Drupal DTP Deployment  Troubles and Problems 6.x 	@landike (Andrii Lundiak)
Deployment steps
Steps level
What we have today to discuss Hosting environment worries First install steps Magic php.ini This very helpful .htaccess file We all like settings.php Strange unbelievable error messages or  Let find more Troubles and more Problems and Ways how to fix them.
Useful MySQL stuff ,[object Object]
mysql -h DBSERVER -p  -u username dbname < dbname.sql
mysqldump-u username -p dbname > dbname.sql
mysql -h DBSERVER -p -u username dbname > dbname.sql Usemysql.cnffile to run easier #--------------- [client] user = myuser password = mypass host = DBSERVER [mysql] database = dbname #------------- mysql< dbname.sql
Log Files It's good to know what we have on hosting server and especially where Log files are.  To access the files directly on the server, on some Unix shells, you can type the following command: tail -f /var/log/apache2/error.log To check that you are looking at the right file, you may wish to type the following commands to find where the log files are. grep 'ErrorLog' /etc/apache2/* grep 'ErrorLog' /etc/apache2/*/*
Error Reporting If error reporting is turned off, you could be getting a fatal error but not seeing it. On a production site, it is common to have error reporting turned off. Take care to have in index.php:error_reporting(E_ALL);ini_set('display_errors', TRUE);ini_set('display_startup_errors', TRUE); this will help in debug/test mode
Install and Go Create Database … and enjoy easy installation If some php settings are not in properly state, install process will tell you (about register_globals, mbstring.http_output, safe_mode, etc.)
php.ini magician How to override php settings: value of a configuration option in php.ini .htaccess directives using ini_set() in settings.php or  use control panel on your hosting server or call to admin person or change hosting server 
Another way to override If you have access to php.ini it’s AWESOME, and It’s great if you have your own php.ini near by www On some hosting servers such kind of option is used to enable using local php.ini file: ssuPHP_ConfigPath /hsphere/local/home/sitelocation This setting must be located in .htaccess file And php.ini file must exists in /hsphere/local/home/sitelocation/php.ini
Allowed memory size … Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)... Increase PHP's memory limit, up to 16MB or 24M or 32MB or especially 96MB for a site with built-in image processing using ImageAPI GD memory_limit = 16M in your php.ini file.  or php_valuememory_limit 16Min your .htaccessfile or ini_set('memory_limit', '16M'); in your settings.php file ???
Execution time of 30s exceeded “Fatal error: Maximum execution time of 30 seconds exceeded in ….ncludesatabase.mysql.inc on line XXX” The default PHP timeout defined in php.ini is 30 seconds. This is too short for some activities like listing/enabling modules. max_execution_time 120; (php.ini) php_valuemax_execution_time 120 (.htaccess) ini_set(‘max_execution_time’, ‘120’) (settings.php) Set “max_execution_time “ = 3000 and Enjoy  (is very useful in testing stage)
Dear friend - .htaccess .htaccess was not uploaded (Access Denied message, Disabled Clean urls) ,[object Object],“PHP:  Error parsing …” - () was in .htaccess comments http://example.com -> http://www.example.com ,[object Object]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] http://www.example.com -> http://example.com ,[object Object]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301],[object Object]
This option is used in CKFinder configuring
Do not miss it, going from dev-server to production-serverTake care about file permission and $db_url and $update_free_access Don’t forget, if you have $db_prefix, you should use {table} in SQL query build
WSOD (White Screen Of Death) "Invisible" Errors or Blank Pages, how to fix: SELECT * FROM watchdog LIMIT 20; Easy manual quick-fixing  ,[object Object],Dtools ,[object Object],Increase CPU limit on hosting server ,[object Object],[object Object]
God, bless IDEs, which remove trailing whitespace. Or you should take care with your coding “You are not authorized to access this page” ,[object Object]

Más contenido relacionado

La actualidad más candente

Apache hadoop 2_installation
Apache hadoop 2_installationApache hadoop 2_installation
Apache hadoop 2_installation
sushantbit04
 
Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1
beckman16
 
Hadoop Installation and basic configuration
Hadoop Installation and basic configurationHadoop Installation and basic configuration
Hadoop Installation and basic configuration
Gerrit van Vuuren
 

La actualidad más candente (20)

2016 03 15_biological_databases_part4
2016 03 15_biological_databases_part42016 03 15_biological_databases_part4
2016 03 15_biological_databases_part4
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
Caching and tuning fun for high scalability @ phpBenelux 2011
Caching and tuning fun for high scalability @ phpBenelux 2011Caching and tuning fun for high scalability @ phpBenelux 2011
Caching and tuning fun for high scalability @ phpBenelux 2011
 
Sah
SahSah
Sah
 
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012
 
File::CleanupTask
File::CleanupTaskFile::CleanupTask
File::CleanupTask
 
Apache hadoop 2_installation
Apache hadoop 2_installationApache hadoop 2_installation
Apache hadoop 2_installation
 
PHP - Intriduction to MySQL And PHP
PHP - Intriduction to MySQL And PHPPHP - Intriduction to MySQL And PHP
PHP - Intriduction to MySQL And PHP
 
My sql administration
My sql administrationMy sql administration
My sql administration
 
Beyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the code
 
PostgreSQL Administration for System Administrators
PostgreSQL Administration for System AdministratorsPostgreSQL Administration for System Administrators
PostgreSQL Administration for System Administrators
 
Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1
 
Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)
 
Hadoop completereference
Hadoop completereferenceHadoop completereference
Hadoop completereference
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
Caching and tuning fun for high scalability @ 4Developers
Caching and tuning fun for high scalability @ 4DevelopersCaching and tuning fun for high scalability @ 4Developers
Caching and tuning fun for high scalability @ 4Developers
 
Red hat lvm cheatsheet
Red hat   lvm cheatsheetRed hat   lvm cheatsheet
Red hat lvm cheatsheet
 
Hadoop Installation and basic configuration
Hadoop Installation and basic configurationHadoop Installation and basic configuration
Hadoop Installation and basic configuration
 
Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011
Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011
Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011
 
Advanced Replication
Advanced ReplicationAdvanced Replication
Advanced Replication
 

Destacado (7)

Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Compte rendu 8 nov 2012
Compte rendu 8 nov 2012Compte rendu 8 nov 2012
Compte rendu 8 nov 2012
 
Drupal организация разработки
Drupal   организация разработкиDrupal   организация разработки
Drupal организация разработки
 
Virgen Milagrosa University Foundation
Virgen Milagrosa University FoundationVirgen Milagrosa University Foundation
Virgen Milagrosa University Foundation
 
SEO - podstawy i aktualne trendy - SEMTEC
SEO - podstawy i aktualne trendy - SEMTECSEO - podstawy i aktualne trendy - SEMTEC
SEO - podstawy i aktualne trendy - SEMTEC
 
Optymalizacja stron internetowych - zrób to sam - Semanticad
Optymalizacja stron internetowych - zrób to sam - SemanticadOptymalizacja stron internetowych - zrób to sam - Semanticad
Optymalizacja stron internetowych - zrób to sam - Semanticad
 
Apache Mahout: Driving the Yellow Elephant
Apache Mahout: Driving the Yellow ElephantApache Mahout: Driving the Yellow Elephant
Apache Mahout: Driving the Yellow Elephant
 

Similar a Dc kyiv2010 jun_08

How to? Drupal developer toolkit. Dennis Povshedny.
How to? Drupal developer toolkit. Dennis Povshedny.How to? Drupal developer toolkit. Dennis Povshedny.
How to? Drupal developer toolkit. Dennis Povshedny.
DrupalCampDN
 
Drupal Multisite Setup
Drupal Multisite SetupDrupal Multisite Setup
Drupal Multisite Setup
ipsitamishra
 

Similar a Dc kyiv2010 jun_08 (20)

Drupal on your laptop
Drupal on your laptopDrupal on your laptop
Drupal on your laptop
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, Terminologies
 
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformDrupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
 
WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019
 
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cliWordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
 
Download It
Download ItDownload It
Download It
 
Network Manual
Network ManualNetwork Manual
Network Manual
 
Manage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cliManage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cli
 
Document Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OSDocument Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OS
 
Apache
ApacheApache
Apache
 
How to? Drupal developer toolkit. Dennis Povshedny.
How to? Drupal developer toolkit. Dennis Povshedny.How to? Drupal developer toolkit. Dennis Povshedny.
How to? Drupal developer toolkit. Dennis Povshedny.
 
Development Setup of B-Translator
Development Setup of B-TranslatorDevelopment Setup of B-Translator
Development Setup of B-Translator
 
WordPress Development Environments
WordPress Development Environments WordPress Development Environments
WordPress Development Environments
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris CharltonDrush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton
 
Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2
 
Scaling PHP apps
Scaling PHP appsScaling PHP apps
Scaling PHP apps
 
AEM (CQ) Dispatcher Security and CDN+Browser Caching
AEM (CQ) Dispatcher Security and CDN+Browser CachingAEM (CQ) Dispatcher Security and CDN+Browser Caching
AEM (CQ) Dispatcher Security and CDN+Browser Caching
 
Drupal Multisite Setup
Drupal Multisite SetupDrupal Multisite Setup
Drupal Multisite Setup
 

Más de Andrii Podanenko

Глобальні навчальні дні друпал
Глобальні навчальні дні друпалГлобальні навчальні дні друпал
Глобальні навчальні дні друпал
Andrii Podanenko
 
Ubercart7 views catalog ru
Ubercart7 views catalog ruUbercart7 views catalog ru
Ubercart7 views catalog ru
Andrii Podanenko
 

Más de Andrii Podanenko (20)

Глобальні навчальні дні друпал
Глобальні навчальні дні друпалГлобальні навчальні дні друпал
Глобальні навчальні дні друпал
 
природна і економна дорожня карта для переходу команди розробки на тест центр...
природна і економна дорожня карта для переходу команди розробки на тест центр...природна і економна дорожня карта для переходу команди розробки на тест центр...
природна і економна дорожня карта для переходу команди розробки на тест центр...
 
Головні Принципи Автоматизації
Головні Принципи АвтоматизаціїГоловні Принципи Автоматизації
Головні Принципи Автоматизації
 
Docker SQL Continuous Integration Flow
Docker SQL Continuous Integration FlowDocker SQL Continuous Integration Flow
Docker SQL Continuous Integration Flow
 
Drupal 8 DevOps . Profile and SQL flows.
Drupal 8 DevOps . Profile and SQL flows.Drupal 8 DevOps . Profile and SQL flows.
Drupal 8 DevOps . Profile and SQL flows.
 
Drupal 8 configuration development flow
Drupal 8 configuration development flowDrupal 8 configuration development flow
Drupal 8 configuration development flow
 
MoldCamp - multidimentional testing workflow. CIBox.
MoldCamp  - multidimentional testing workflow. CIBox.MoldCamp  - multidimentional testing workflow. CIBox.
MoldCamp - multidimentional testing workflow. CIBox.
 
CIbox - OpenSource solution for making your #devops better
CIbox - OpenSource solution for making your #devops betterCIbox - OpenSource solution for making your #devops better
CIbox - OpenSource solution for making your #devops better
 
DrupalCon Los Angeles - Continuous Integration Toolbox
DrupalCon Los Angeles - Continuous Integration ToolboxDrupalCon Los Angeles - Continuous Integration Toolbox
DrupalCon Los Angeles - Continuous Integration Toolbox
 
Drupal Continuous Integration Workflow
Drupal Continuous Integration WorkflowDrupal Continuous Integration Workflow
Drupal Continuous Integration Workflow
 
Сейчас самое время...ЖИТЬ!
Сейчас самое время...ЖИТЬ!Сейчас самое время...ЖИТЬ!
Сейчас самое время...ЖИТЬ!
 
Start using vagrant now!
Start using vagrant now!Start using vagrant now!
Start using vagrant now!
 
Live deployment, ci, drupal
Live deployment, ci, drupalLive deployment, ci, drupal
Live deployment, ci, drupal
 
Drupal contrib module maintaining
Drupal contrib module maintainingDrupal contrib module maintaining
Drupal contrib module maintaining
 
Drupal codesprint kyiv drupal cafe 07.02.2013
Drupal codesprint   kyiv drupal cafe 07.02.2013Drupal codesprint   kyiv drupal cafe 07.02.2013
Drupal codesprint kyiv drupal cafe 07.02.2013
 
Drupal 8 what to wait from
Drupal 8   what to wait fromDrupal 8   what to wait from
Drupal 8 what to wait from
 
Do + ldo for developers(full)
Do + ldo for developers(full)Do + ldo for developers(full)
Do + ldo for developers(full)
 
Диалоговый интенсив 2012 карпаты
Диалоговый интенсив 2012 карпатыДиалоговый интенсив 2012 карпаты
Диалоговый интенсив 2012 карпаты
 
психолог в социальных медиа
психолог в социальных медиапсихолог в социальных медиа
психолог в социальных медиа
 
Ubercart7 views catalog ru
Ubercart7 views catalog ruUbercart7 views catalog ru
Ubercart7 views catalog ru
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Dc kyiv2010 jun_08

  • 1. Drupal DTP Deployment Troubles and Problems 6.x @landike (Andrii Lundiak)
  • 4. What we have today to discuss Hosting environment worries First install steps Magic php.ini This very helpful .htaccess file We all like settings.php Strange unbelievable error messages or Let find more Troubles and more Problems and Ways how to fix them.
  • 5.
  • 6. mysql -h DBSERVER -p -u username dbname < dbname.sql
  • 7. mysqldump-u username -p dbname > dbname.sql
  • 8. mysql -h DBSERVER -p -u username dbname > dbname.sql Usemysql.cnffile to run easier #--------------- [client] user = myuser password = mypass host = DBSERVER [mysql] database = dbname #------------- mysql< dbname.sql
  • 9. Log Files It's good to know what we have on hosting server and especially where Log files are. To access the files directly on the server, on some Unix shells, you can type the following command: tail -f /var/log/apache2/error.log To check that you are looking at the right file, you may wish to type the following commands to find where the log files are. grep 'ErrorLog' /etc/apache2/* grep 'ErrorLog' /etc/apache2/*/*
  • 10. Error Reporting If error reporting is turned off, you could be getting a fatal error but not seeing it. On a production site, it is common to have error reporting turned off. Take care to have in index.php:error_reporting(E_ALL);ini_set('display_errors', TRUE);ini_set('display_startup_errors', TRUE); this will help in debug/test mode
  • 11. Install and Go Create Database … and enjoy easy installation If some php settings are not in properly state, install process will tell you (about register_globals, mbstring.http_output, safe_mode, etc.)
  • 12. php.ini magician How to override php settings: value of a configuration option in php.ini .htaccess directives using ini_set() in settings.php or use control panel on your hosting server or call to admin person or change hosting server 
  • 13. Another way to override If you have access to php.ini it’s AWESOME, and It’s great if you have your own php.ini near by www On some hosting servers such kind of option is used to enable using local php.ini file: ssuPHP_ConfigPath /hsphere/local/home/sitelocation This setting must be located in .htaccess file And php.ini file must exists in /hsphere/local/home/sitelocation/php.ini
  • 14. Allowed memory size … Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)... Increase PHP's memory limit, up to 16MB or 24M or 32MB or especially 96MB for a site with built-in image processing using ImageAPI GD memory_limit = 16M in your php.ini file. or php_valuememory_limit 16Min your .htaccessfile or ini_set('memory_limit', '16M'); in your settings.php file ???
  • 15. Execution time of 30s exceeded “Fatal error: Maximum execution time of 30 seconds exceeded in ….ncludesatabase.mysql.inc on line XXX” The default PHP timeout defined in php.ini is 30 seconds. This is too short for some activities like listing/enabling modules. max_execution_time 120; (php.ini) php_valuemax_execution_time 120 (.htaccess) ini_set(‘max_execution_time’, ‘120’) (settings.php) Set “max_execution_time “ = 3000 and Enjoy  (is very useful in testing stage)
  • 16.
  • 17.
  • 18.
  • 19. This option is used in CKFinder configuring
  • 20. Do not miss it, going from dev-server to production-serverTake care about file permission and $db_url and $update_free_access Don’t forget, if you have $db_prefix, you should use {table} in SQL query build
  • 21.
  • 22.
  • 24. admin/build/themes on slow hostingTo fix this issue: call drupal_flush_all_caches(); anywhere
  • 25. Disabling Modules Via the Module Administration Page in the UI Administer > Site Building > Modules … Uncheck and Save Via the Database If your WSOD is caused by a specific module and you cannot access the module admin page, go to system table, set status to 0 and then clear the cache table
  • 26. You should have cron There are many ways to configure cron (curl, lynx, wget, even GET), but … Here is real “drupal” way: Change file permission for scripts/drupal.sh (chmoda+x scripts/drupal.sh) Use in crontab file (or in Hosting Control Panel) this command: /home/account/www/scripts/drupal.sh --root /home/account/www http://default/cron.php PS. Cron is used by many modules: Update, Event, Aggregator, Search, Notifications, Send, Image watermark, Watchdog and other which must run time-related tasks.
  • 27.
  • 29. JavaScript/AJAX/XMLHttpRequest errorsThese actions would be great to do before/during/after deployment: TRUNCATE TABLE watchdog; drupal_flush_all_caches(); or “Clear Cached Data” "Rebuild Permissions" in Post Settings page “Re-Index site”
  • 30. Think at first || rapid development Masquarade module Transliteration Devel/Themer module Drush module “TEASER break” button in rich editor an Node-System Use professional IDE
  • 31.