Apache Web Server





The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am getting this error when I try to upload an image to my server.  I haven't change anything except for the normal centos updates.  Here is the error:


This is also affecting my ability to update a plugin.  Where I get this error:


I have used this writeup to try and fix the problem.  However, nothing changed.  


Please help me get this working again.
Cloud Class® Course: Microsoft Windows 7 Basic
LVL 12
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

need to download pdf from site but apache showing below error

response header name 'content-disposition? attachment ' contains invalid characters.

I have add mod_header and called filematch and Location match.
also added addtype octet and pdf also.
still the same issue when downloading.
I need to run a php script on my apache2 ubuntu server, i run php myscript.php and get an error ive never seen before in terminal

"The route is not found, check the URL"

The script is a curl request to register a webhook.

How can i run this script? ive run php scripts many times before from shell with no issues.
I need to add a rule to my htaccess file that re-writes all uppercase letters in a url to lower case.  I tried to follow the instructions on this page to no avail:

Can anyone help?

my htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://MYSITE.com/$1 [R,L]

#For Elegant Theme Support 2/28/2018 - JNL
#<IfModule mod_substitute.c>
#SubstituteMaxLineLength 20M

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Open in new window

Hello everyone!

I was wondering how to set a rewrite rule on the httpd.conf rather than placing a .htaccess on every location

My directory structure:

How to invoke:

My .htaccess content:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^((?s).*)$ index.php?_action=$1 [QSA,L]
I am trying to set up a simple htacces redirect, I want to move all traffic from one folder to the home page

I copied and pasted this code from another server that has been using it for years,

when I test it, i get a safari timeout error "Safari cant open page, too many redirects.."

this is my code, in a wordpress site, at bottom of .htacess below wordpress, toast, other plugins code

RewriteEngine On
Options +FollowSymLinks -Indexes

redirect 301 /mce_activity https://oala.ca/

Open in new window


can Apache Sqoop scale out for load balancing purpose ?
I have web application developed in codeigniter framework (PHP-Mysql based application)
I have task to delete some rows and that action i want to authenticate with USB Token.
I have e-mudhra class-2 ( http://www.e-mudhra.com/ ) USB Token.

I didn't have any idea yet how it can be implement. Please suggest...
Hello, when submitting my form, I get the following error:
Fatal error: Uncaught Error: Call to undefined function odbc_execute() in C:\xampp\htdocs\test\pagea.php:87 Stack trace: #0 {main} thrown in C:\xampp\htdocs\test\pagea.php on line 87

Thanks in advance!
Phpmailer not able to send SSL emails.

I have website that sends SSL emails to a mail server.  I upgraded Wamp and am now using Apache 2.4.33 and PHP 7.2.4 and the mails that were working in the previous version of apache and Php now do not work.  
I get the following error Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting.    
When I look on the mail server I see that it can't decrypt the message
05/13/18 13:56:09      Couldn't decrypt, error 80090330
05/13/18 13:56:09      ME-I0069: (recv) socket [1920] was gracefully closed x.x.x.x before any command received. Remote client closed the connection.

I have enabled mod_ssl in apache and php and openssl  but it is not working.   One thing I did notice is that in wamp it doesn't show mod_ssl under the apache modules in the wampserver interface.

Attached are the conf files
Introducing Cloud Class® training courses
LVL 12
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Using a .htaccess file is there a way to hide a directory?  I currently allow people to browse my website's files and folders however there is one directory I want to hide from folks so they don't get confused.  Is this possible?
I need to export a SSL certificate from Apache to IIS10,  How do I do this.

I have root.crt, Intermediate.crt and server.crt and server.key

In Magento having 500 internal server error after clicked the Payment Methods button in admin. No log is captured in "var/log/system.log" nor "var/log/exception.log" when it happens.

The site has this Special Promotions extension installed https://amasty.com/special-promotions.html
When set one of its module at "app/etc/modules/Amasty_PromoBannersLite.xml" to be inactive, then there is no error. But this error never happen on Apache web server even if the module is active.

Need help to find out what is the cause of the issue and solve it.

This is the system specification that having error:
Magento CE
PHP 5.6.31
Windows Server 2012 R2
IIS 8.5
I am working on my own personal site and trying to make it so my URLs don't contain the .html or .php file extensions. As of right now I don't have any PHP files but it's something I am considering in the future so I figured adding it to my htaccess does no harm. That being said I have attached my htaccess file. The hope was to do 3 things.

1. Remove .html extension and allow for calling local files without the extension (<a href="/contact" instead of <a href="contact.html"). ==> This is not working properly except for index.html

2. Do the same for .php (see above why)

3. Get rid of the "www" but if you type it that doesn't hurt anything. (This is personal preference but if it's poor practice I can remove this).

So the main issue is linking to my file so that in the URL there is no .html extension. Any help would be greatly appreciated. I am still very much learning how to utilize htaccess files but see how powerful it is.
I have the below .htaccess for my website.
What I'm expecting is that when I login to my page, I suppose to have www.example.com/myusername to be generated from www.example.com/user.php?=myusername
But that doesn't happen automatically, rather I will see www.example.com/user.php?=myusername as my browser url. But if I edit the browser url by removing the user.php?=, leaving only www.example.com/myusername and then reload, I can still access the page.
Question 1: Is .htaccess rewrite not suppose to be done automatically? I would have expected that the browser url changed to the rewrite url by itself upon login.

When I access the url www.example.com/providers/myusername, if I point the mouse to any link on the web page, for example a link with this a tag  <a href="follow_page.php?u='.$log_username.'">, I expect it to show as www.example.com/followers/myusername at the base of the page based on my htaccess rules below, rather, it shows as  www.example.com/providers/follow_page.php?=myusername and when I click the link, it shows page not found.
Question 2: Why is it showing the original url instead of the rewrite url?
Question 3: Why is it adding providers to the url?

Options +FollowSymLinks 
RewriteEngine On
RewriteBase /
# Establish a custom 404 File not found page
ErrorDocument 404 /index.php

#Prevent directory file listing in all of your folder

Open in new window

I have downloaded and install httpd server omn AIX 7.1 from https://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

But I want to know if this package is 32 or 64 bits?

How to do Dynamic routing in Apache camel based on CONTEXT change? for an example please check below incoming request and how i need to route through camel.

Incoming - http://www.test.com/employee/getEmployee?emp=Naresh
Translated -- http://camelRouteHost/employee/getEmployee?emp=Naresh

www.test.com/: Employee service hosted in this server.
http://camelRouteHost: camel localhost server.

Appreciated your help :)

Please let me know if you're not clear with my inputs.
I am trying to create a virtual domain in wampserver, when i try to create one in the "Add a virtualHost" panel i get the message "c:/users/edkna/desktop/allsites/site1 does not exist or is not a directory", even though there is a directory there.
I tried creating a directory in multiple places on my computer (which i have full admin rights to) I am carefull to correctly copy and past the path to the directory and paste it into the "complete absolute path of the virtualhost" field but I get this error message every time. (see the attached screen capture errorMessage.JPG)

Also another issue that is probably related to the above issue, when I tried to add a second directory in  C:\wamp\www  for a another Wordpress site, I get the following error messages:
( ! ) Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
( ! ) Fatal error: Unknown: Failed opening required 'C:/wamp/www/site2/index.php' (include_path='.;C:\php\pear') in Unknown on line 0 (see the attached screen capture anothrErrorMessage.JPG)

Can you tell me how to fix this problem?

Hi Dave,
 you said it could be a permissions issue.  Properties/Security show I have full control.  This is also my personal computer which I have all privileges to. are you referring to some other permissions that I am not thinking of? I was able to create virtual domains six months ago, so I don't know of any thing that is different on my computer now.

Hi noci,
 I pasted in the path with …
Require info regarding open SSL, we have configured SSL in apache in windows and we have taken SSL certificate from CA.

Now I want to know that is OpenSSL being used here?
How to verify that which application is using openssl?
If no one using can I remove it and Apache ssl will run without issue?
Free Tool: SSL Checker
LVL 12
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Yesterday I installed FreeBSD on a virtual machine with some web tools to use as a hobby webserver.
My project includes perl scripts, but when I try to run them in my browser a get the whole script shown as a text, instead of getting executed as a program.
So I did some digging and found that I had to do some CGI configuration. So I added the line AddHandler cgi-script .pl to /usr/local/etc/apache24/httpd.conf, and I added the line Options ExecCGI to the apache server directives. I fiddled around with this for hours and still can't get it to work. What am I doing wrong?
I am using a web interface for the server called webmin, if that could be of importance.

Thank you for helping!
I am running xampp on my windows pc and every time I access any website for the first time (using chrome) I get a notification that the page is not working and I get a blue "Reload" button"
When I hit the button the page loads and all the page links work within the websites as normal

It works ok in Firefox and Internet Eplorer
There is an exit command line argument in the jvm options which is shown in apache tomcat logs but I cannot find it anywhere in the JVM options of the application

During a tomcat 8 startup the  JVM parameters are shown in the initial startup logs and it appears just above the Xms and Xmx

04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xloggc:C:\Tomcat8032\apache-tomcat-8.0.32\logs\gc.log
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:-OmitStackTraceInFastThrow
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms8192m
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx8192m

I have seen this as a very common occurrence in almost all tomcat 8 apps and it appears like a tomcat's own setting as we dont have this specified anywhere in the JVM options.

I request you experts to let me know what this option is about and if its possible to remove it from the JVM options.

Our business thinks that this could be one of the reasons for the ongoing issues and I want to prove otherwise. Also I don't see any mention of this setting in apache websites. I am also looking for any apache…
Hello, experts,

I have a Linux Server, running Centos 6.9, Apache 2.2.15, Postfix 2.6.6 and all those known common stuff.

In order to set Error pages, Cache time for some types of files, as well as to adapt to Google requirements about having Domains with and without "www", I have at each Domain an .htaccess file like this one you can see at the bottom.

The problem: if under any Domain I have a Site which uses .cgi files, they all stop working and I receive messages like Page Not Found for any of them.

In order to avoid this error I have to comment out all the Redirect lines, as you can see in the .htaccess below.

So, please, I need help, because I need such an .htaccess file, but my CGI's have to keep working.

Thanks a lot in advance.

Mario Lima./

.htaccess file

<IfModule mod_expires.c>
ExpiresActive On
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg
ExpiresByType application/vnd.ms-fontobject "access 1 year"
ExpiresByType application/x-font-ttf "access 1 year"
ExpiresByType application/x-font-opentype "access 1 year"
ExpiresByType application/x-font-woff "access 1 year"
ExpiresByType image/svg+xml "access 1 year"
ExpiresByType text/html "access 1 hour"
ExpiresByType text/css "access 14 days"
ExpiresByType text/x-javascript …
I am getting
HTTP Status 404 - /host-manager/html

type Status report

message /host-manager/html

description The requested resource is not available.
Apache Tomcat/8.0.32 (Ubuntu)

error while handling apache tomcat
Unusual High CPU CLoud watch alarm from my AWS Ec2 Instance. The Ec2 Instance consists of Magento 2 website and Wordpress websites. The Magento 2 site is loading very slow accessing when the server is UP. But the server goes down for every 30 mins approx.  In the Apache Error log, it shows :

[Mon Mar 19 01:29:55.216115 2018] [lbmethod_heartbeat:notice] [pid 2571] AH02282: No slotmem from mod_heartmonitor
[Mon Mar 19 01:30:01.432626 2018] [mpm_prefork:notice] [pid 2571] AH00163: Apache/2.4.27 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.32 configured -- resuming normal operations
[Mon Mar 19 01:30:01.432665 2018] [core:notice] [pid 2571] AH00094: Command line: '/usr/sbin/httpd'
[Mon Mar 19 01:35:45.104754 2018] [mpm_prefork:notice] [pid 2571] AH00169: caught SIGTERM, shutting down
[Mon Mar 19 01:37:03.874296 2018] [suexec:notice] [pid 2570] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

This unusual activity started on March 12th before that the server went down only once in a month. Any Idea on what causing this issue? Is it apache MPM prefork version or Magento codes? I don't know how to troubleshoot this.

Apache Web Server





The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.