Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. $ apachectl -M
  2. apache2: Syntax error on line 37 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: unixd_config
  3. Action '-M' failed.
  4. The Apache error log may have more information.
  5.  
  6. $ php -v
  7. PHP 5.6.26-1~dotdeb+7.1 (cli) (built: Sep 18 2016 19:52:57)
  8. Copyright (c) 1997-2016 The PHP Group
  9. Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
  10. with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
  11. with Xdebug v2.5.0-dev, Copyright (c) 2002-2016, by Derick Rethans
  12.  
  13. $ apache2 -V
  14. [Mon Sep 26 23:27:20.618601 2016] [core:warn] [pid 25105] AH00111: Config variable ${APACHE_PID_FILE} is not defined
  15. [Mon Sep 26 23:27:20.623081 2016] [core:warn] [pid 25105:tid 139878783203136] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
  16. [Mon Sep 26 23:27:20.623438 2016] [core:warn] [pid 25105:tid 139878783203136] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
  17. Server version: Apache/2.4.10 (Debian)
  18. Server built: Nov 7 2014 12:05:20
  19. Server's Module Magic Number: 20120211:37
  20. Server loaded: APR 1.5.1-dev, APR-UTIL 1.5.3
  21. Compiled using: APR 1.5.1-dev, APR-UTIL 1.5.3
  22. Architecture: 64-bit
  23. Server MPM: worker
  24. threaded: yes (fixed thread count)
  25. forked: yes (variable process count)
  26. Server compiled with....
  27. -D APR_HAS_SENDFILE
  28. -D APR_HAS_MMAP
  29. -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
  30. -D APR_USE_SYSVSEM_SERIALIZE
  31. -D APR_USE_PTHREAD_SERIALIZE
  32. -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  33. -D APR_HAS_OTHER_CHILD
  34. -D AP_HAVE_RELIABLE_PIPED_LOGS
  35. -D DYNAMIC_MODULE_LIMIT=256
  36. -D HTTPD_ROOT="/etc/apache2"
  37. -D SUEXEC_BIN="/usr/lib/apache2/suexec"
  38. -D DEFAULT_PIDLOG="/var/run/apache2.pid"
  39. -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
  40. -D DEFAULT_ERRORLOG="logs/error_log"
  41. -D AP_TYPES_CONFIG_FILE="mime.types"
  42. -D SERVER_CONFIG_FILE="apache2.conf"
  43.  
  44. $ sudo a2dismod worker
  45. Module worker disabled.
  46. To activate the new configuration, you need to run:
  47. service apache2 restart
  48.  
  49. $ sudo a2enmod mpm_prefork
  50. Considering conflict mpm_event for mpm_prefork:
  51. Considering conflict mpm_worker for mpm_prefork:
  52. Module mpm_prefork already enabled
  53.  
  54. $ sudo service apache2 start
  55. [ ok ] Starting web server: apache2.
  56.  
  57. $ apache2 -V
  58. [Mon Sep 26 23:05:35.463940 2016] [core:warn] [pid 22298] AH00111: Config variable ${APACHE_PID_FILE} is not defined
  59. [Mon Sep 26 23:05:35.466868 2016] [core:warn] [pid 22298] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
  60. [Mon Sep 26 23:05:35.467139 2016] [core:warn] [pid 22298] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
  61. Server version: Apache/2.4.10 (Debian)
  62. Server built: Nov 7 2014 12:05:20
  63. Server's Module Magic Number: 20120211:37
  64. Server loaded: APR 1.5.1-dev, APR-UTIL 1.5.3
  65. Compiled using: APR 1.5.1-dev, APR-UTIL 1.5.3
  66. Architecture: 64-bit
  67. Server MPM: prefork
  68. threaded: no
  69. forked: yes (variable process count)
  70. Server compiled with....
  71. -D APR_HAS_SENDFILE
  72. -D APR_HAS_MMAP
  73. -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
  74. -D APR_USE_SYSVSEM_SERIALIZE
  75. -D APR_USE_PTHREAD_SERIALIZE
  76. -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  77. -D APR_HAS_OTHER_CHILD
  78. -D AP_HAVE_RELIABLE_PIPED_LOGS
  79. -D DYNAMIC_MODULE_LIMIT=256
  80. -D HTTPD_ROOT="/etc/apache2"
  81. -D SUEXEC_BIN="/usr/lib/apache2/suexec"
  82. -D DEFAULT_PIDLOG="/var/run/apache2.pid"
  83. -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
  84. -D DEFAULT_ERRORLOG="logs/error_log"
  85. -D AP_TYPES_CONFIG_FILE="mime.types"
  86. -D SERVER_CONFIG_FILE="apache2.conf"
  87.  
  88. $ sudo apt-get remove libapache2-mod-php5
  89. ...
  90. $ sudo apt-get autoclean
  91. ...
  92. $ sudo apt-get install libapache2-mod-php5
  93. ...
  94. $ sudo a2enmod php5
  95. Enabling module php5.
  96. To activate the new configuration, you need to run:
  97. service apache2 restart
  98. $ sudo service apache2 restart
  99. [FAIL] Restarting web server: apache2 failed!
  100. [warn] The apache2 configtest failed. ... (warning).
  101. Output of config test was:
  102. apache2: Syntax error on line 37 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: unixd_config
  103. Action 'configtest' failed.
  104. The Apache error log may have more information.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement