How to disable all apache virtual hosts?

I'm writing a shell script to do some web server configuration. I need to disable all currently active virtual hosts. a2dissite doesn't accept multiple arguments, so I can't do a2dissite `ls...

JSESSIONID added to URL when Weblogic redirects to Apache?

Our application is running on WebLogic. At some point the WebLogic is redirecting to Apache to allow the user to access PDF files. This happens via: final String encodedURL =...

Apache is trying to serve noindex.html but errorhandler for 403 is set different?

So i have just set new Error Handlers in httpd.conf for custom error pages: Alias "/error" "/var/www/error/" ErrorDocument 400 /error/error.php?code=400 ErrorDocument 401...

httpd.exe Entry point not found

I needed to upgrade my local PHP version so I backed up my htdocs folder, reinstalled XAMPP using the windows installer and copied back my backup. I tried running the apache module to be greeted...

Apache could not be started - ServerRoot must be a valid directory and Unable to find the specified module

I'm using xampp portable server and I'm having some trouble with Apache http server, it says "ServerRoot must be a valid directory" Command line output: Please close this command only for...

How to disable Owncloud https redirect?

I installed Owncloud on Ubuntu 12.04 with an apache server. I use ssl for authentication but when sharing links and data it is cumbersome for the user to accept the self signed certificate. Is...

Laravel 3 - PHP Warning: in_array() expects parameter 2 to be array

I am working with a code that was not written by me. It is a Laravel 3 application, it is giving me the following error: PHP Warning: in_array() expects parameter 2 to be array, null given in...

How do you set the default website to serve when your IP address is entered as URL?

I have a server with multiple websites hosted and distinguishable using name-based virtual hosting of apache. How do I set it so that a specific website is hosted when the ip of my server is...

Where do I put my Hello world PHP file on Ubuntu?

So I want to learn PHP, and I've installed it with "sudo apt-get install php5" on my Ubuntu 14.04 machine. I see it also installed Apache. Now I've created my program, and I've saved it to a php...

Apache Service detected with wrong path

Hej, I have problem with: Apache Service detected with wrong path 4:31:33 PM [Apache] Change XAMPP Apache and Control Panel settings or 4:31:33 PM [Apache] Uninstall/disable the other service...

how to achieve an apache Alias with a proxy pass on the same domain

We have a NodeJS site running with an Apache VirtualHost that looks like this: <VirtualHost *:80> ServerName domain.org ServerAlias www.domain.org ProxyPass /...

Apache warns that my self-signed certificate is a CA certificate

As I don't know the openssl command's arguments by heart, I am used to referring to the same SO answer whenever I need to create self-signed certificates (for testing environments). The command...

increase memory limit on wamp

I have wamp64 and php version 5.6.16 and apache 2.4.17. I have a 4gb ram win7 pc I am running a cakephp project and keep getting an error when displaying rows from a table Error: Allowed memory...

performance difference between cli and apache cgi mode for php

I've found significant performance difference between php cli and cgi mode: cli: set : 1.853 seconds 54 qps get : 2.226 seconds 45 qps incr : 1.577 seconds 63 qps cgi: set : 1.063 seconds 94 qps...

.htaccess 301 redirect when %20 is in old url

I want to redirect old url to new url but my url having "%20" between character like this http://www.mydomainname.com/davey%20pumps.htm This is old url and i want 301 redirection for this url to...

Installing scoped npm packages from Artifactory

I am trying to get scoped npm packages to work with Artifactory behind Apache. I can publish a scoped package to Artifactory and it creates the following path in the npm-local repo:...

Docker - how to set up Apache + PHP in docker-compose.yml

I use this to set up nginx for PHP: nginx: image: nginx:latest ports: - 8080:80 volumes: - ./code:/code - ./site.conf:/etc/nginx/conf.d/site.conf links: ...

htaccess: 404 Not Found Error While trying ErrorDocument

I'm using .htaccess file to redirect to error pages if error occured but error not found. I'm test if the error.php pages are working but the following result I got. The 404 Not Found error was...

Strip parent categories from url

I'm struggling to fix an issue with 301 redirects and .htaccess. I have moved a site from an old domain to a new domain. And I have successfully managed to do this with a 301 redirect. Like...

Htaccess force https except on one url doesn't work

I try to force all my website to https. So I did: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php RewriteCond...

How to block a specific website browser agent?

Lately i'm facing some issues with a data mining bot, extracting data from my website everyday at certain hours of the day. This will not only waste my bandwidth but also giving wrong data to my...

Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin

I've just downloaded phpMyAdmin 4.8.1 via composer on my local machine (windows) after installing my lamp stack apache 2.4, php 7.2, mariadb 10.3, but when I login using root (without password) it...

Fresh install: httpd.service: Unit not found

Currently I'm trying to follow this guide: https://marxtudor.com/how-to-install-wordpress-using-ssh-on-centos-vps/ I'm using Google Cloud Platform (free edition to test) and I've created a fresh...

Unable to locate package python-certbot-apache on Ubuntu 14.04 AWS

I have tried installing certbot SSL certificate on apache. Following command I performed. sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install...

Prestashop: An error has occured: You must install PHP zip extension first. I have Zip extension installed

When i tried to install Prestashop 1.7.6.1 i have the following problem: Zip Extension problem The error is very clear but the real problem is that i have installed the extension and restarted the...

Where should I redirect hackers / hacking scripts to?

Some hacker has been annoying me today by succesfully altering my database with a certain type of DOM injection, using automated scripts. I fixed my website, but on top of that I want to redirect...

Does log4js require any extra code to work on an Apache server?

I'm trying to add Log4js-Node to a Node.js server running on Apache. Here's my code: const path = require("path"); const express = require("express"); const log4js = require('log4js'); const app...

Uploading a file to WebDAV server using WebClient.UploadFile returns 401

I try to upload files from my C# application on a Windows client to a Linux webserver through WebDAV. To achieve this I am using WebClient.UploadFile(). The upload always throws an exception: The...

How to rewrite URLs from UPPERCASE to lowercase in .htaccess

I'm trying to assemble a regular expression to rewrite a URL containing uppercase characters to the same URL but in all lowercase. Example: example.com/foO-BAR-bAz rewrite to...

Unable to find code signature authority on Mac OS Monterey

I recently upgraded my Mac mini (M1, 2020) to Mac OS Monterey (12.0.1) and discovered that I had to download and code sign PHP 8.1. Having not had to code sign PHP before, I followed the...