{"id":11368,"date":"2024-02-16T06:46:07","date_gmt":"2024-02-16T06:46:07","guid":{"rendered":"https:\/\/myprojects.advchaweb.com\/?p=11368"},"modified":"2024-02-16T09:57:18","modified_gmt":"2024-02-16T09:57:18","slug":"drupal-7-23","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2024\/02\/16\/drupal-7-23\/","title":{"rendered":"Drupal 7.23"},"content":{"rendered":"<p>READ: https:\/\/www.drupal.org\/docs\/7\/install<\/p>\n<p>CREATE LOCAL SETUP<\/p>\n<p>CREATE A CONF<\/p>\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/apache2\/sites-available\/drupal723.test.conf<\/pre>\n<p>CONTENT<\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost drupal723.test:80&gt;\r\n\tServerName www.drupal723.test\r\n\tDocumentRoot \"\/home\/satria\/Documents\/projects\/drupal723\"\r\n\tDirectoryIndex index.php\r\n\t&lt;Directory \"\/home\/satria\/Documents\/projects\/drupal723\"&gt;\r\n\tAllowOverride All\r\n\tAllow from All\r\n\tRequire all granted\r\n\t&lt;\/Directory&gt;\r\n\tErrorLog \/var\/log\/apache2\/drupal723.error.log\r\n\tCustomLog \/var\/log\/apache2\/drupal723.access.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>ENABLE THE VIRTUALHOST<\/p>\n<pre class=\"lang:default decode:true \">sudo a2ensite drupal723.test.conf<\/pre>\n<p>RELOAD APACHE2<\/p>\n<pre class=\"lang:default decode:true \">sudo systemctl reload apache2<\/pre>\n<p>CREATE THE HOST<\/p>\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/hosts\r\n\r\n127.0.0.1 drupal723.test<\/pre>\n<p>RELOAD APACHE2<\/p>\n<p>OPEN: http:\/\/drupal723.test\/<br \/>\n&#8211;&gt; BUT ALMOST BLANK PAGE WITH THIS MESSAGE<\/p>\n<pre class=\"lang:default decode:true \">&lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt;\r\nSkip to main content<\/pre>\n<p>&nbsp;<\/p>\n<p>INSTALL DRUSH<br \/>\nREAD: https:\/\/drupalize.me\/tutorial\/install-drush-using-composer<br \/>\nUSE COMPOSER<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ composer require --dev drush\/drush<\/pre>\n<p>BUT WHEN I TRIED TO CHECK THE DRUSH VERSION &#8216;drush &#8211;version&#8217;, I GOT THIS ERROR<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ .\/vendor\/bin\/drush --version\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nPHP Fatal error:  Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\Kernel' not found in \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/src\/Preflight\/Preflight.php:209<\/pre>\n<p>I ALSO TRIED TO INSTALL IT BY DOWNLOAD IT MANUALLY<\/p>\n<pre class=\"lang:default decode:true\">satria@teddy:~\/Documents\/projects\/drupal723$ wget -O drush.phar https:\/\/github.com\/drush-ops\/drush-launcher\/releases\/latest\/download\/drush.phar\r\n\r\nsatria@teddy:~\/Documents\/projects\/drupal723$ sudo chmod +x drush.phar\r\n\r\nsatria@teddy:~\/Documents\/projects\/drupal723$ sudo mv drush.phar \/usr\/local\/bin\/drush<\/pre>\n<p>THEN CHECK THE VERSION<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush --version\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nDrush Launcher Version: 0.10.2\r\nThe Drush launcher could not find a Drupal site to operate on. Please do *one* of the following:\r\n  - Navigate to any where within your Drupal project and try again.\r\n  - Add --root=\/path\/to\/drupal so Drush knows where your site is located.<\/pre>\n<p>THE DRUSH VERSION IS 0.10.2, BUT IT ALWAYS ASKED THE DRUPAL PATH<br \/>\nI TRIED TO USE DRUSH LAUNCHER<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ export DRUSH_LAUNCHER_FALLBACK=\/usr\/local\/bin\/drush<\/pre>\n<p>&#8211;&gt; REMEMBER: AFTER RUN THE COMMAND, YOU NEED TO CLOSE THE TERMINAL AND OPEN IT AGAIN. IF NOT THE TERMINAL WOULD SHOW MANY REPEATED MESSAGES!!!<br \/>\nBUT STILL ASKED FOR THE DRUPAL PATH!<br \/>\nI MODIFIED composer.json LIKE THIS<\/p>\n<pre class=\"lang:default decode:true \">{\r\n    \"require-dev\": {\r\n        \"drush\/drush\": \"^11.6\"\r\n    },\r\n    \"extra\": {\r\n        \"installer-paths\": {\r\n            \"core\": [\"type:drupal-core\"]\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>THEN RUN &#8216;composer install&#8217;<br \/>\nTHEN CHECK IT AGAIN<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush self-update\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nDrush Launcher Version: 0.10.2\r\nPHP Fatal error:  Uncaught Humbug\\SelfUpdate\\Exception\\FilesystemException: The directory is not writeable: \/usr\/local\/bin. in phar:\/\/\/usr\/local\/bin\/drush\/vendor\/laravel-zero\/phar-updater\/src\/Updater.php:505<\/pre>\n<p>AND IT SHOWED ANOTHER ERROR &#8211;&gt; OK. THE COMMAND SHOULD BE &#8216;sudo drush self-update&#8217;<br \/>\nBUT AFTER THAT, IT STILL ASKED THE PATH.<br \/>\nAFTER &#8216;composer install&#8217;<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush --debug\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nDrush Launcher Version: 0.10.2\r\nROOT: \/home\/satria\/Documents\/projects\/drupal723\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nDrush Launcher Version: 0.10.2\r\nROOT: \/home\/satria\/Documents\/projects\/drupal723\r\nDRUSH VERSION: 11\r\nDRUPAL ROOT: \/home\/satria\/Documents\/projects\/drupal723\r\nCOMPOSER ROOT: \/home\/satria\/Documents\/projects\/drupal723\r\nVENDOR ROOT: \/home\/satria\/Documents\/projects\/drupal723\/vendor\r\n [preflight] Config paths: \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/drush.yml\r\n [preflight] Alias paths: \/home\/satria\/Documents\/projects\/drupal723\/drush\/sites,\/home\/satria\/Documents\/projects\/drush\/sites\r\n [preflight] Commandfile search paths: \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/src\r\nPHP Fatal error:  Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\Kernel' not found in \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/src\/Preflight\/Preflight.php:209<\/pre>\n<p>IT SHOWED THE ABOVE ERROR<br \/>\nSOLUTION:<br \/>\nRUN THIS<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ composer require symfony\/http-kernel -W<\/pre>\n<p>THEN IT SHOWED THE CORRECT OUTPUT<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush --version\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nDrush Launcher Version: 0.10.2\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nDrush Launcher Version: 0.10.2\r\nDrush Commandline Tool 11.6.0<\/pre>\n<p>I TRIED TO CLEAR THE CACHE<br \/>\nREAD: https:\/\/www.drupal.org\/docs\/7\/administering-drupal-7-site\/clearing-or-rebuilding-drupals-cache<br \/>\nBUT GOT THESE ERRORS<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush cc all\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\n\r\nIn CacheCommands.php line 243:\r\n                                                                               \r\n  `cache-clear all` is deprecated for Drupal 8 and later. Please use the `cac  \r\n  he:rebuild` command instead.                                                 \r\n<\/pre>\n<p>OR<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush cache-rebuild\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\n\r\nIn BootstrapHook.php line 36:\r\n                                                                      \r\n  Bootstrap failed. Run your command with -vvv for more information.  \r\n<\/pre>\n<p>EVEN<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush cache-rebuild -vvv\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\n\r\nBox Requirements Checker\r\n========================\r\n\r\n&gt; Using PHP 7.4.33\r\n&gt; PHP is using the following php.ini file:\r\n  \/etc\/php\/7.4\/cli\/php.ini\r\n\r\n&gt; Checking Box requirements:\r\n  \u2714 The package \"composer\/xdebug-handler\" requires the version \"^5.3.2 || ^7.0\r\n|| ^8.0\" or greater.\r\n  \u2714 The package \"laravel-zero\/phar-updater\" requires the version \"^7.3|^8.0\" or\r\ngreater.\r\n  \u2714 The package \"psr\/log\" requires the version \"&gt;=5.3.0\" or greater.\r\n  \u2714 The package \"webmozart\/assert\" requires the version \"^7.2 || ^8.0\" or\r\ngreater.\r\n  \u2714 The package \"webmozart\/path-util\" requires the version \"&gt;=5.3.3\" or greater.\r\n  \u2714 The package \"webflo\/drupal-finder\" requires the extension \"json\".\r\n  \u2714 The package \"webmozart\/assert\" requires the extension \"ctype\".\r\n  \r\n                                                                                \r\n [OK] Your system is ready to run the application.                              \r\n                                                                                \r\n\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\n\r\nBox Requirements Checker\r\n========================\r\n\r\n&gt; Using PHP 7.4.33\r\n&gt; PHP is using the following php.ini file:\r\n  \/tmp\/4Ww81P\r\n\r\n&gt; Checking Box requirements:\r\n  \u2714 The package \"composer\/xdebug-handler\" requires the version \"^5.3.2 || ^7.0\r\n|| ^8.0\" or greater.\r\n  \u2714 The package \"laravel-zero\/phar-updater\" requires the version \"^7.3|^8.0\" or\r\ngreater.\r\n  \u2714 The package \"psr\/log\" requires the version \"&gt;=5.3.0\" or greater.\r\n  \u2714 The package \"webmozart\/assert\" requires the version \"^7.2 || ^8.0\" or\r\ngreater.\r\n  \u2714 The package \"webmozart\/path-util\" requires the version \"&gt;=5.3.3\" or greater.\r\n  \u2714 The package \"webflo\/drupal-finder\" requires the extension \"json\".\r\n  \u2714 The package \"webmozart\/assert\" requires the extension \"ctype\".\r\n  \r\n                                                                                \r\n [OK] Your system is ready to run the application.                              \r\n                                                                                \r\n\r\n [preflight] Config paths: \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/drush.yml\r\n [preflight] Alias paths: \/home\/satria\/Documents\/projects\/drupal723\/drush\/sites,\/home\/satria\/Documents\/projects\/drush\/sites\r\n [preflight] Commandfile search paths: \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/src\r\n [info] Starting bootstrap to site [0.05 sec, 8.74 MB]\r\n\r\nIn BootstrapHook.php line 36:\r\n                                                                      \r\n  [Exception]                                                         \r\n  Bootstrap failed. Run your command with -vvv for more information.  \r\n                                                                      \r\n\r\nException trace:\r\n  at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/src\/Boot\/BootstrapHook.php:36\r\n Drush\\Boot\\BootstrapHook-&gt;initialize() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/consolidation\/annotated-command\/src\/Hooks\/Dispatchers\/InitializeHookDispatcher.php:44\r\n Consolidation\\AnnotatedCommand\\Hooks\\Dispatchers\\InitializeHookDispatcher-&gt;doInitializeHook() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/consolidation\/annotated-command\/src\/Hooks\/Dispatchers\/InitializeHookDispatcher.php:36\r\n Consolidation\\AnnotatedCommand\\Hooks\\Dispatchers\\InitializeHookDispatcher-&gt;callInitializeHook() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/consolidation\/annotated-command\/src\/Hooks\/Dispatchers\/InitializeHookDispatcher.php:29\r\n Consolidation\\AnnotatedCommand\\Hooks\\Dispatchers\\InitializeHookDispatcher-&gt;initialize() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/consolidation\/annotated-command\/src\/CommandProcessor.php:145\r\n Consolidation\\AnnotatedCommand\\CommandProcessor-&gt;initializeHook() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/consolidation\/annotated-command\/src\/AnnotatedCommand.php:376\r\n Consolidation\\AnnotatedCommand\\AnnotatedCommand-&gt;initialize() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/symfony\/console\/Command\/Command.php:264\r\n Symfony\\Component\\Console\\Command\\Command-&gt;run() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/symfony\/console\/Application.php:1058\r\n Symfony\\Component\\Console\\Application-&gt;doRunCommand() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/symfony\/console\/Application.php:301\r\n Symfony\\Component\\Console\\Application-&gt;doRun() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/symfony\/console\/Application.php:171\r\n Symfony\\Component\\Console\\Application-&gt;run() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/src\/Runtime\/Runtime.php:124\r\n Drush\\Runtime\\Runtime-&gt;doRun() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/src\/Runtime\/Runtime.php:51\r\n Drush\\Runtime\\Runtime-&gt;run() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/drush.php:79\r\n require() at \/home\/satria\/Documents\/projects\/drupal723\/vendor\/drush\/drush\/includes\/preflight.inc:18\r\n drush_main() at phar:\/\/\/usr\/local\/bin\/drush\/bin\/drush.php:143\r\n require() at \/usr\/local\/bin\/drush:14\r\n<\/pre>\n<p>ONLY WORKED LIKE THIS???<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/drupal723$ drush cc\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\nXdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (fallback through xdebug.client_host\/xdebug.client_port) :-(\r\nPHP Warning:  Module 'imagick' already loaded in Unknown on line 0\r\n\r\n Choose a cache to clear [all]:\r\n  [0] drush\r\n &gt; 0\r\n\r\n [success] 'drush' cache was cleared.<\/pre>\n<p>BACK TO OPEN: http:\/\/drupal723.test\/<br \/>\n&#8211;&gt; BUT ALMOST BLANK PAGE WITH THIS MESSAGE<\/p>\n<pre class=\"lang:default decode:true \">&lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt; &lt; \/&gt;\r\nSkip to main content<\/pre>\n<p>I NEED TO REINSTALL\/UPDATE DRUPAL BY OPENING http:\/\/drupal723.test\/update.php<br \/>\nTHEN I GOT ACCESS DENIED AND ERROR MESSAGES<br \/>\nSO I NEED TO MODIFY sites\/default\/settings.php AND CHANGED THIS SETTING FROM &#8216;FALSE&#8217; TO &#8216;TRUE&#8217; LIKE THIS<\/p>\n<pre class=\"lang:default decode:true \">$update_free_access = TRUE;<\/pre>\n<p>THEN OPEN IT AGAIN http:\/\/drupal723.test\/update.php<br \/>\nAND GOT THE OTHER ERRORS ABOUT php.ini, SO MODIFIED<\/p>\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/php\/7.4\/apache2\/php.ini<\/pre>\n<p>AND SET :<\/p>\n<pre class=\"lang:default decode:true\">;mbstring.http_input =\r\nto\r\nmbstring.http_input = pass\r\n\r\nAND \r\n\r\n;mbstring.http_output =\r\nto\r\nmbstring.http_output = pass<\/pre>\n<p>THEN RESTART APACHE<\/p>\n<pre class=\"lang:default decode:true \">sudo systemctl restart apache2<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>READ: https:\/\/www.drupal.org\/docs\/7\/install CREATE LOCAL SETUP CREATE A CONF sudo gedit \/etc\/apache2\/sites-available\/drupal723.test.conf CONTENT &lt;VirtualHost drupal723.test:80&gt; ServerName www.drupal723.test DocumentRoot &#8220;\/home\/satria\/Documents\/projects\/drupal723&#8221; DirectoryIndex index.php &lt;Directory &#8220;\/home\/satria\/Documents\/projects\/drupal723&#8221;&gt; AllowOverride All Allow from All Require all granted &lt;\/Directory&gt; ErrorLog \/var\/log\/apache2\/drupal723.error.log CustomLog \/var\/log\/apache2\/drupal723.access.log combined &lt;\/VirtualHost&gt; ENABLE THE VIRTUALHOST sudo a2ensite drupal723.test.conf RELOAD APACHE2 sudo systemctl reload apache2 CREATE THE HOST sudo gedit \/etc\/hosts &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2024\/02\/16\/drupal-7-23\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Drupal 7.23&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"class_list":["post-11368","post","type-post","status-publish","format-standard","hentry","category-drupal"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/11368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=11368"}],"version-history":[{"count":7,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/11368\/revisions"}],"predecessor-version":[{"id":11370,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/11368\/revisions\/11370"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=11368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=11368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=11368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}