I was working on a WordPress site that uses Dokan Multi-vendor Plugin to utilise its e-commerce functions. It also uses Stripe Connect as a payment gateway so each seller gets a commission from each sale. For each seller to receive payment, each seller account has to connect to their own Stripe account (as illustrated here: https://wedevs.com/docs/dokan/modules/how-to-install-and-configure-dokan-stripe-connect/)
This function has been around for a while on the site and had been working perfectly fine. However, this afternoon when I clicked "Connect to Stripe" blue button (as shown in the link above), I get an "HTTP error 500" from Chrome. Now all of the users cannot connect to Stripe Connect.
I figured this might have something to do with SSL, but I did not change any of the Cert or Key, or their configuration.
I am running Apache server with Ubuntu 16.04
Here is the conf file:
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/ssl/certs/mywebsite.crt
SSLCertificateKeyFile /etc/ssl/private/blablabla.key
SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt
ServerName mywebsitel.com
ServerAlias www.mywebsite.com
ServerAdmin webmaster#localhost
DocumentRoot /var/www/html/mywebsite.com/public_html
LogLevel info ssl:warn
ErrorLog /var/www/html/mywebsite.com/logs/error.log
CustomLog /var/www/html/mywebsite.com/logs/access.log combined
Error log showed two errors:
[Mon Oct 15 17:27:35.146054 2018] [ssl:error] [pid 22095] [client 2600:c02:1020:4202::ac10:826a:52934] AH02042: rejecting client initiated renegotiation
[Mon Oct 15 17:29:33.168787 2018] [ssl:error] [pid 21905] [client 64.41.200.106:48000] AH02042: rejecting client initiated renegotiation
Anyone had any idea? This is a critical component to the site and this problem just suddenly occurred!
Related
I tried to install an ssl certificate, I follow an aws "link" tutorial, when I try to restart the apache server the console shows me the error: Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
use command apachectl configtest the console shows me the error: SSLCertificateKeyFile: file '/etc/pki/tls/private/localhost.key' does not exist or is empty
After following the steps in the tutorial my page no longer works because I did not finish installing the ssl certificate. How could I solve it or return the configuration prior to the change?
<VirtualHost *:80>
ServerAdmin webmaster#localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Try this as your default configuration file and restart apache. If required, modify the Document Root to your actual file serving location.
I am trying to deploy an ASP.net Core 3.1 app to a server with apache2 installed. I have created the following virtualhost:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ProxyPreserveHost On
ProxyPass / https://127.0.0.1:5001/
ProxyPassReverse / https://127.0.0.1:5001/
#ServerAdmin mail#mail.com
ServerName xx.app
ServerAlias www.xx.app
ErrorLog ${APACHE_LOG_DIR}xx-error.log
CustomLog ${APACHE_LOG_DIR}xx-access.log common
SSLCertificateFile /etc/letsencrypt/live/xx.app/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xx.app/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
when i run the application (using dotnet .dll), i get the following message:
Hosting environment: Production
Content root path: /home/cv/web/publish
Now listening on: http://localhost:5000
Now listening on: https://localhost:5001
Application started. Press Ctrl+C to shut down.
Then when i try to browse the app I get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
When I view the logs the only thing that I find is:
AH01144: No protocol handler was valid for the URL / (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
I have tried to enable the mods proxy_http, http and it didn't fix the issue.
Thanks in advance!
The issue was that the virtual host needed these two lines at the start:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
and these lines at the virtualhost *443:
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
I currently am trying to deploy my Symfony 4 website on a hosted VPS, I did setup everything quite successfully, installed Apache2, PHP 7.2, MySQL server and phpmyadmin.
I then started configuring my server acordingly to host a Symfony 4 website, and before deploying my own application I tried to deploy a smaller one so that I would know that at least some part worked with a no-database no-bundles application.
When I try to access my website nothing happens, the following error log is generated in /var/log/apache2 :
[Wed Jul 11 14:06:08.580654 2018] [core:error] [pid 13404] [client 37.97.69.85:52997] AH00124: Request exceeded the limit of 10 internal redirects due to probable
configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Wed Jul 11 14:06:41.901738 2018] [php7:error] [pid 13423] [client 37.97.69.85:44931] PHP Fatal error:
Uncaught Symfony\\Component\\Dotenv\\Exception\\PathException: Unable to read the "/var/www/releases/20180710151554/public/../.env" environment file.
in /var/www/releases/20180710151554/vendor/symfony/dotenv/Dotenv.php:54\nStack trace:\n#0 /var/www/releases/20180710151554/public/index.php(15):
Symfony\\Component\\Dotenv\\Dotenv->load('/var/www/releas...')\n#1 {main}\n thrown in /var/www/releases/20180710151554/vendor/symfony/dotenv/Dotenv.php on line 54
[Wed Jul 11 14:33:33.702774 2018] [core:error] [pid 13442] [client 37.97.69.85:53026] AH00124: Request exceeded the limit of 10 internal redirects
due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Wed Jul 11 14:38:07.055940 2018] [core:error] [pid 13642] [client 37.97.69.85:54628] AH00124: Request exceeded the limit of 10 internal redirects
due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Wed Jul 11 14:51:50.406171 2018] [php7:error] [pid 13793] [client 37.97.69.85:55651] PHP Fatal error: Uncaught RuntimeException:
APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file. in /var/www/demo/public/index.php:13\nStack trace:\n#0 {main}\n thrown in /var/www/demo/public/index.php on line 13
I believe this comes from the website configuration file looping somewhere, I have seen cases online where the .htaccess and the configuration file were looping but here I do not have an .htaccess file anywhere as I deleted it.
He is my website configuration :
<VirtualHost *:80>
ServerName vps562960.ovh.net
ServerAlias vps562960.ovh.net
DocumentRoot /var/www/releases/20180710151554/public
<Directory /var/www/releases/20180710151554>
AllowOverride None
Require all granted
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
</Directory>
# uncomment the following lines if you install assets as symlinks
# or run into problems when compiling LESS/Sass/CoffeeScript assets
# <Directory /var/www/crvfakeexample.com>
# Options FollowSymlinks
# </Directory>
# optionally disable the RewriteEngine for the asset directories
# which will allow apache to simply reply with a 404 when files are
# not found instead of passing the request into the full symfony stack
<Directory /var/www/releases/20180710151554/public/bundles>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
</Directory>
ErrorLog /var/log/apache2/vps562960.ovh.net_error.log
CustomLog /var/log/apache2/vps562960.ovh.net_access.log combined
# optionally set the value of the environment variables used in the application
#SetEnv APP_ENV prod
#SetEnv APP_SECRET <app-secret-id>
#SetEnv DATABASE_URL "mysql://db_user:db_pass#host:3306/db_name"
</VirtualHost>
I'm starting to lose hope on deploying that website. Has anyone faced a similar case or do any of you know what I'm doing wrong?
Thanks in advance.
Most probably the problem is that Apache server doesn't set env variables into PHP global array $_SERVER. But symfony tries to find env variables exactly in $_SERVER array. Either update public/index.php and replace all $_SERVER with $_ENV or uncomment SetEnv directives in Apache website conf.
Hello I am trying to create a website in multiple languages. Every language has it own virtual subdomain. So for example here are some urls:
nl.foo.eu, fr.foo.eu, de.foo.eu
My domain that generates all the content is foo.eu, it generates the content and translates it to the right language.
This is done with wordpress and the plugin qTranslate-X.
But everytime when I go to an url like nl.foo.eu the page returns an internal server error 500.
So my question is: Do i need to configure something in my DNS to make this possible?
And could I be doing something else wrong?
I went trough the error log of the server and this is the error i am retrieving:
[Fri Apr 17 09:53:21.028095 2015] [core:error] [pid 731951] [client 12.34.56.78:50514] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
I configured my environment this way:
select "Use Pre-Domain Mode (uses http://en.yoursite.com)" in the advanced settings of domain
add DNS records; in my hosts file, I added this:
127.0.0.1 www.example.com
127.0.0.1 en.example.com
127.0.0.1 example.com
check that your web server is properly configured. I'm using Apache and I have this configuration with wildcard in ServerAlias:
<VirtualHost *:80>
DocumentRoot /wamp/www/example
ServerName www.example.com
ServerAlias example.com *.example.com
AcceptPathInfo On
</VirtualHost>
I hope this can help you
I've followed all over the instruction provided in the below website.
rApache.net.
mod_R.so is installed and I've configured below things in the sites-enabled folder.
#rApacheInfo
<Location /RApacheInfo>
SetHandler r-info
</Location>
#brew function
<Directory /var/www/brew>
SetHandler r-script
RHandler sys.source
</Directory>
<Directory /var/www/brew>
SetHandler r-script
RHandler brew::brew
DefaultType html
</Directory>
But if i go to localhost:8080/RApacheInfo I get the error HTTP Status 404 - /RApacheInfo.
localhost:8080 gives me apache tomcat welcome note.
As I checked the differed between apache and tomcat from this post. Now I have a doubt whether we'll be able to install it or not.
Please help.
Errr no. Apache tomcat is a server which acts as a container for Java-based 'servlets'. Apache http server is a general server for http requests. What you have listening on port 8080 must be tomcat since you get the tomcat error page.
rApache is specifically a handler for the apache http server. Normally apache http server just sends back a file when a request for /foo.html comes in, but it can be configured to run a program via a handler, which is what rApache is.
You can run apache http server AND tomcat on the same machine, they just have to be listening on different ports. If you try and run them on the same port the second one won't start.
By default apache http server listens on port 80, so if you are running it as root then going to http://localhost/ will get a response if it is running.