apache2.4

CakePhp 2.6.3 Not Working on PHP 7

落花浮王杯 提交于 2020-01-04 06:15:22
问题 Fatal error : Uncaught Error: Class 'String' not found in /var/www/html/hrportal/lib/Cake/Utility/Debugger.php:340 Stack trace: 0 /var/www/html/hrportal/lib/Cake/Utility/Debugger.php(742): Debugger::trace(Array)1 /var/www/html/hrportal/lib/Cake/Error/ErrorHandler.php(229): Debugger->outputError(Array) /var/www/html/hrportal/app/Controller/AppController.php(72): ErrorHandler::handleError(8, 'Undefined index...', '/var/www/html/h...', 72, Array) 3 /var/www/html/hrportal/lib/Cake/Event

CakePhp 2.6.3 Not Working on PHP 7

不羁的心 提交于 2020-01-04 06:12:21
问题 Fatal error : Uncaught Error: Class 'String' not found in /var/www/html/hrportal/lib/Cake/Utility/Debugger.php:340 Stack trace: 0 /var/www/html/hrportal/lib/Cake/Utility/Debugger.php(742): Debugger::trace(Array)1 /var/www/html/hrportal/lib/Cake/Error/ErrorHandler.php(229): Debugger->outputError(Array) /var/www/html/hrportal/app/Controller/AppController.php(72): ErrorHandler::handleError(8, 'Undefined index...', '/var/www/html/h...', 72, Array) 3 /var/www/html/hrportal/lib/Cake/Event

WAMP Server Apache won't start

﹥>﹥吖頭↗ 提交于 2020-01-03 17:20:29
问题 There are several topics that are very similar to this one, however, after looking over them the ones that were solved I did not have the same issue, and the rest weren't solved. I have installed a new version of WAMP. No changes made to any files. Opening wamp the icon never goes from red to green. Put online gives error: Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started That's the same error I get if I do apache-

How to use setWebhook in Telegram with self certificates on Windows 7 and PHP?

此生再无相见时 提交于 2019-12-24 13:42:44
问题 I'm quite a newbye in Telegram and I'm trying moving my first steps with it. I've found a good tutorial here https://www.youtube.com/watch?v=hJBYojK7DO4: I've configured my Apache 2.4 with PHP and SSL and all works fine, also the samples in the tutorial. Troubles are using the setWebhook method .... when I try to put in my browser https://api.telegram.org/<my_bot_code>/setWebHook?url=https://localhost/Telegram/MyYouTubeTutorialBot/YouTubeTutorialBot.php the response is {"ok":false,"error_code

htaccess If…Else always selects Else

空扰寡人 提交于 2019-12-21 07:24:19
问题 I set an environment variable in httpd-vhosts.conf SetEnv EARLY_VAR 1 I try setting special rules based on its value in .htaccess <If "%{ENV:EARLY_VAR} == '1'"> SetEnv TEST_VAR if_branch </If> <Else> SetEnv TEST_VAR else_branch </Else> I expect TEST_VAR environment var to equal if_branch . In PHP var_dump(getenv('EARLY_VAR')); // string '1' var_dump(getenv('TEST_VAR')); // string 'else_branch' I also tried setting EARLY_VAR in .htaccess above the If/Else, both using SetEnv and SetEnvIf .

Can't configure the rewrite log

允我心安 提交于 2019-12-21 03:23:13
问题 I'd like to enable the rewrite log to debug some rewrite rules that are giving me problems. So I added these lines at the end of my httpd.conf file: <IfModule mod_rewrite.c> RewriteLog "/logs/rewrite.log" RewriteLogLevel 4 </IfModule> Next thing I did was restart Apache. It causes an error however, and won't start. This is what I get in the XAMPP Control Panel: 13:14:56 [Apache] Error: Apache shutdown unexpectedly. 13:14:56 [Apache] This may be due to a blocked port, missing dependencies, 13

Apache Proxy: No protocol handler was valid

ぐ巨炮叔叔 提交于 2019-12-20 08:18:28
问题 I am trying to proxy a subdirectory to another server. My httpd.conf: RewriteEngine On ProxyPreserveHost On RewriteRule .*subdir/ https://anotherserver/subdir/ [P] The problem is that Apache is always logging this: AH01144: No protocol handler was valid for the URL /subdir/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: http://localhost/ So after searching the internet, I have activated these modules:

Apache Proxy: No protocol handler was valid

点点圈 提交于 2019-12-20 08:18:11
问题 I am trying to proxy a subdirectory to another server. My httpd.conf: RewriteEngine On ProxyPreserveHost On RewriteRule .*subdir/ https://anotherserver/subdir/ [P] The problem is that Apache is always logging this: AH01144: No protocol handler was valid for the URL /subdir/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: http://localhost/ So after searching the internet, I have activated these modules:

Intermittent javax.net.ssl failure bad_record_mac

谁说我不能喝 提交于 2019-12-20 04:13:39
问题 I have a Java Spring web app running on Tomcat through an Apache https proxypass which fails intermittently when it tries to access a secure IBM Watson service. Apache is secured with a LetsEncrypt cert, redirecting to Tomcat port 8080. Environment: Java: jdk1.7.0_80 Solaris 10 Tomcat 8.0.33 Apache 2.4.18 I turned on javax.net debug and I can see it gets through ServerHelloDone. Here is the rest of the log up to the exception. ServerHelloDone [read] MD5 and SHA1 hashes: len = 4 0000: 0E 00 00

Apache2 sends two HTTP headers with a mapped “nph-” CGI

假装没事ソ 提交于 2019-12-19 08:58:25
问题 Summary I'm trying to map some file extensions to be executed by a nph (Non Parsed Header) CGI executable. Let's say I want to access a URL http://server/file.ext and map the "ext" file extension to "trigger" the execution of my nph CGI (/var/www/cgi-bin/nph-test.sh). Apache configuration To do that I'm using mod_actions and mod_cgid, this is my relevant configuration information: <VirtualHost *:80> DocumentRoot /var/www/htdocs ScriptAlias /cgi-bin /var/www/cgi-bin Action cgi-wrapper /cgi-bin