Apache Web Server

20K

Solutions

15K

Contributors

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 want to install that on my Ubuntu web server ( the web host already has a copy on there but cant config it to send me an email for this, so i have to have my own copy)... any tips on how to set it up so that I get an email whenever a specific domain on that box has a 500 error?
0
HTML5 and CSS3 Fundamentals
LVL 19
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Whenever we scan our website it is showing anonymous access vulnerability. We are using Apache for Windows (Bitnami WAMP) and not IIS.
0
hi am not able to see my laravel project in browser
hi am not able to start  http://localhost/cms/public/

am geting

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404



i did chmod -R o+w cms/storage
i did create projectt

user@myubuntu:/opt/lampp/htdocs/demo/laravel$ composer create-project laravel/laravel cms 5.2.* --prefer-dist

Cannot create cache directory /home/user/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache

Installing laravel/laravel (v5.2.31)

Cannot create cache directory /home/user/.composer/cache/files/, or directory is not writable. Proceeding without cache

  - Installing laravel/laravel (v5.2.31): Downloading (100%)        

Created project in cms

Cannot create cache directory /home/user/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache

Cannot create cache directory /home/user/.composer/cache/files/, or directory is not writable. Proceeding without cache

> php -r "copy('.env.example', '.env');"

Loading composer repositories with package information

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.



  Problem 1

    - phpunit/phpunit 4.8.9 requires …
0
I am wanting to change to a new website.
Struggling to get working htaccess code to do the job

OLD WEBSITE
http or https://www.oldwebsite.com.au/directory/this_is_page_1.php

where directory may change to another word
and the page name may change.
and there may be up to 6 hyphens that need to become dashes in the file name

NEW WEBSITE
https://www.newwebsite.edu.au/directory/this-is-page-1.php
(Same file structure, but hyphens become dashes)
0
hi all,

i have some issues...
Seeking for experts help.
I manage to setup web and app server but stuck at reverse proxy configuration.
OS is redhat linux 7.7 somereason mod_jk is not available to install and configure for tomcar app server.
So i am opting for reverse proxy configuration.

User will access the URL..https site, https://sasitsgp.com:3486
Gateway will NAT the Public IP and Port number to private IP (sasitsgp.com) and Port Number 8011.

When i try the url from outside to webserver, it was loading https but the page background color and content allignment is not correct.
After entering username and password, clicking sign but not proceeding/ logging.
Also noticed js css etc being blocked..

Can help me/ advise me what went wrong or to be modified...
Frontend server is httpd (https) and backend is tomcat (http).

Error and configuration below.

Mixed Content: The page at 'https://sasitsgp.com:6542/' was loaded over HTTPS, but requested an insecure image 'http://sasitsgp.com:6542/html/themes/classic/images/spacer.png'. This content should also be served over HTTPS.
(index):1
Mixed Content: The page at 'https://sasitsgp.com:6542/' was loaded over HTTPS, but requested an insecure image 'http://sasitsgp.com:6542/html/themes/classic/images/common/openid.gif'. This content should also be served over HTTPS.
Mixed Content: The page at 'https://sasitsgp.com:6542/' was loaded over HTTPS, but requested an insecure script …
0
Hi Experts,

After configuring several webservice on the iSeries (AS/400) Apache-server (using the wizzard),
I like to transfer the configuration of them to an other machine.

Is it possible to copy and paste or backup and restore this configuration info?
0
Hi,

I have a Apache webserver on centos7

Its perfectly running on http port 80

Below is the configuration

httpd.conf
Listen 80
User tomcat
Group apache



configured vhost.cong in  /etc/httpd/conf.d/
NameVirtualHost *:80

<VirtualHost *:80>

    ServerAdmin abc@def.com
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/htmlexample.com/
    ErrorLog /var/log/httpd/example.com/error.log
    CustomLog /var/log/httpd/example.com/access.log combined





I have generated csr file and purchased ssl certificate from godaddy.

got crt,pem and bundle crt file.
 kept all 3 files in /var/www/html/ssl and used chmod 770 for all 3 files.


modifued below in /etc/httpd/conf.d/ssl.conf
<VirtualHost _default_:443>

DocumentRoot "/var/www/html/example.com/"
ServerName www.example.com:443
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA
SSLCertificateFile /var/www/html/ssl/example.crt
SSLCertificateKeyFile /var/www/html/ssl/example.com.key
SSLCACertificateFile /var/www/html/ssl/gd_bundle-g2-g1

getting error while restarting systemctl restart httpd

[root@xxx conf.d]# systemctl restart httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@xxx conf.d]# journalctl -xe
--
-- Unit httpd.service has finished shutting down.
Oct 12 23:23:36 xxx systemd[1]: …
0
I have installed VtigerCRM and started working.
I changed from http to https but site not opening after that.
Capture43.JPGI have a certificate ready but dont know where is the certificate location.
I followed as per this article
https://www.fastcomet.com/tutorials/vtiger/enable-ssl
0
hi my xampp not starting in browser
xampp
0
Can someone point me in the direction of a good site for PHP Pagination of my sql records
Including demos and file downloads, please
I would like to take the technique to a more advanced level
0
Announcing the Winners!
LVL 19
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

I'm using AWS linux, apache 2.4.25, PHP 7.0.27, phpMyAdmin 4.7.7, FireFox 68.

For security, I kept/changed/added the following lines in httpd.conf to prevent browser access to .php and .inc.php but full browser access to .menu.php and index.php ..

I kept ..
<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

Open in new window

I changed from None to All ..
# Further relax access to the default document root:
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Open in new window

And added ..
<Files *.php>
    Require all denied
    Require local
</Files>

# Browser & linux allowed access to .php files
<Files index.php>
    Require all granted
</Files>

 # Browser denied access to .inc.php files
 # linux allowed access to .inc.php files
<Files *.inc.php>
    Require all denied
    Require local
</Files>

# All menu files have this added name before the extn
# Browser & linux allowed access to .menu.php files
<Files *.menu.php>
    Require all granted
</Files>

Open in new window

My website app works perfectly. However, phpMyAdmin fails with 403 errors since I changed the above.

The directory structures ..
For the website: /html/appdirectory/index.php
For PMA: /html/phpMyAdmin/index.php

Since both index.php are allowed browser access through the above index.php granting, I don't understand why it should 403.
When I refer to Page Source in FF, it shows the HTML, yet doesn't render.

Chrome responded identically, and shows in dev tools, console ..

Open in new window

0
We have just migrated to a Centos server running Nginx/Apache

We have a website which allows users to create profiles and login and logout

Since moving to the new server we are experiencing a problem.

The problem after users log in with their credentials, are randomly taken to another user's account, as if they were logged in as the other user.

We don't know how to fix this and we have trouble duplicating it.

we have deleted all the session files in the tmp folder and subfolders (while we stopped httpd, nginx and php-fpm services first)

we restart the server.

our previous server did not have these issues.

CentOS Linux release 7.6.1810
PHP Version 5.6.40
Apache/2.4.39 (cPanel)
nginx version: nginx/1.16.1
mysql 5.6.45

any help and suggestions would be great

again, the code from the previous website is the same - - we think a configuration of the server is causing the issue
0
This is driving me a little crazy, as it "should" be very simple, but I am unable to get it to work.

All I want to do is replace the default tomcat error page for a 404, 403 and 500 errors with a custom html page.  There are plenty of examples on the web which I have found and implemented, but I am unable to get it to work.  Here is one such page that I used: https://www.yeahhub.com/set-custom-error-page-apache-tomcat-server/

After implementing the solution I either still get the default 404 page or a 404 error, but no custom error.html.  I can browse to the page just fine (http://10.XXX.YYY.77:8731/error/error.html) and here is my configuration in the web.xml file:

<error-page>
      <error-code>404</error-code>
      <location>/error/error.jsp</location>
</error-page>
<error-page>
      <error-code>403</error-code>
      <location>/error/error.jsp</location>
</error-page>
<error-page>
      <error-code>500</error-code>
      <location>/error/error.jsp</location>
</error-page>

I created error.html and also created a folder in winapps called error, so the path is /error/error.html  I can browse the page.  Here is the code:

<html>
      <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Error</title>
      </head>

      <body bgcolor="#FFFFFF">

            <script language="Javascript">
                  function onClickWiki() {
                        alert("Under construction");
                  }
            </script>

            <h1 align="center">Error</h1>

      </body>
</html>

It all looks good to me and in …
0
I have an oracle HTTP server 12.3.1 which is based on Apache 2.2 running on RHEL 7.4 machine.

I use it to run a web oracle database application via mod_plsql.

It has been running fine for years.

Last week users started reporting outage and very slow reponse time.

I found out that this happens when the number of connections goes from 50 to several hundreds. See attached list.
This was as a result of foreign IPs running a scanner or Sync DoS attack. Security does not admit this is
a DoS attack but more of a public scanner that always run on most sites.

The traffic coming to my web server goes through an IDS, Load Balancer, Palo Alto Firewall, WAF and then my web server.

We added a rule on firewall to block all internation Ip but a few hours later I found a scan started from an IP in california.

Security claims they cant prevent these scanners to scan the public site and that I should fix the issue on web server by hardening or tuning the Apache server.

MY web server has 16 GB RAM. I upped the MaXCLients for Apache from 150 to 450 and added SYN_COOKIES to the linux machine.
I dont know if this will provide protection yet or not.

My questions,

1) Is what security say correct? Should not the SYN flood attacks be blocked on the IDS or firewall device?


2) what can i do for tuning in Apache to solve this problem and prevent of connection overload to hang the server?

3) Could it be that RHEL or Oracle web server is not killing open connections …
0
Hi Experts,
 We have some application that we are migrating from one environment to another environment. We have some tomcat , Database server Apache and batch servers for this application. We will have new host/server for this application.  Our job is to find some old server name references and replace with new one specially database server for connection string for java application in config file or any location.

We are using Putty to log on those unix servers. We don't want to manually find one by one in all the file and replace it.

Is there any way or script to find those instances and replace automatically?
0
After enabling http/2 I am getting an error on my sites saying  Connection failed: could not find driver
I followed this article. https://helgeklein.com/blog/2018/11/enabling-http-2-in-apache-on-ubuntu-18-04/
I'm suspecting that it has to do with changing from php 7.3 to php fpm. How do I troubleshoot this error properly?
0
I have a Apache tomcat 8 webserver running on Windows 2008 server.

It is used to run crystal reports on port 443. it is configured in server.xml for that port.

I am having problem getting the new SSL certificate to work. The non-sslport 8080 works fine. Site is private and restricted to few IP addresses.

Is there a way to redirect any HTTPS requests to the server from port 443 to non-ssl port (http) running on port 8080 until I get SSL port working?
0
Hello,

I'm using WHM/Cpanel in my server, and want to access a user's web files with the browser using the server's IP: http://xxx.xxx.xxx.xxx/~username/ . When trying to activate mod_userdir from WHM's "Apache mod_userdir Tweak", I get this message:

Web server processes on this system currently run as the user. For security reasons, the system disabled mod_userdir. Any changes that you make in this interface will not take effect until you enable mod_userdir. To use mod_userdir, you must disable mod_ruid2, mod_itk, and mod_passenger and recompile EasyApache.

So the question is, how do I do all that? I have to disable mod_ruid2, mod_itk, and mod_passenger and recompile EasyApache. I've really tried searching online, but what I've found doesn't work for me. I'm using CentOS 7 and my CPanel version is 80. Thanks!
0
what is ideal log file size to be maintained in the servers to have  a optimal performance
Explain effect of file size in performance
0
OWASP: Threats Fundamentals
LVL 19
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

How to setup JNDI in apache, better method to connect DB

Please advice the steps
0
Hello everyone !

I ask for your help because my host refuses to help me correct this problem that I encounter in my logs.
My domain is www.sivop.com and in my error logs I encounter this error which however should not be generated since all this content & lang = en_CI & lang = en_CI & lang = en_CI ....... does not exist since several months.
[Thu Jul 04 11:56:35 2019] [error] [client 66.249.64.23] [host www.sivop.com] (36)File name too long: AH00036: access to /www.sivop.com&lang=fr_CI&lang=en_CI&devise=USD&devise=EUR&lang=en_CI&devise=EUR&devise=EUR&devise=EUR&lang=fr_CI&devise=EUR&devise=EUR&devise=XOF&devise=XOF&lang=fr_CI&lang=fr_CI&lang=fr_CI&lang=fr_CI&devise=EUR&lang=en_CI&devise=XOF&devise=USD&devise=USD&lang=fr_CI&lang=en_CI&lang=en_CI&devise=XOF failed (filesystem path '/homez.520/sivop/www/www.sivop.com&lang=fr_CI&lang=en_CI&devise=USD&devise=EUR&lang=en_CI&devise=EUR&devise=EUR&devise=EUR&lang=fr_CI&devise=EUR&devise=EUR&devise=XOF&devise=XOF&lang=fr_CI&lang=fr_CI&lang=fr_CI&lang=fr_CI&devise=EUR&lang=en_CI&devise=XOF&devise=USD&devise=USD&lang=fr_CI&lang=en_CI&lang=en_CI&devise=XOF')
[Thu Jul 04 11:56:41 2019] [error] [client 66.249.70.4] [host sivop.com] (36)File name too long: AH00036: access to 

Open in new window

0
I am using JK_MOD load balancer to connect my apache to Tomcat AJP port for accessing my application, it works. My question is do i need to SSL protect the AJP port? If yes, how? Thanks, Aneesh.
0
Hi Team,

We are facing issue with one of our web URL it configured in IIS & Apache Tomcat on (windows server 2012 R2)

While accessing the URL the web portal is not getting open. we are trying to do IIS restart it work sometime but now it is not working.

we have checked the connectivity from remote site the Ping & Telnet is happening.

Below are the URL.

htpp://192.168.207.36:7070/omni/login.do

we also trying access http://192.168.207.36:7070/omni in that we are getting welcome screen.
0
I am using a java web application on Tomcat 9.0 server with ActiveMQ 5. Below is the broker config at context.xml, it works.

<Resource   name="jms/ConnectionFactory"
            auth="Container"
            type="org.apache.activemq.ActiveMQConnectionFactory"
            description="JMS Connection Factory"
            factory="org.apache.activemq.jndi.JNDIReferenceFactory"
            brokerURL="vm://localhost"
            brokerName="LocalActiveMQBroker"
            useEmbeddedBroker="true"/>

    <Resource name="jms/queue/MyQueue"
              auth="Container"
              type="org.apache.activemq.command.ActiveMQQueue"
              factory="org.apache.activemq.jndi.JNDIReferenceFactory"
              physicalName="MTFQ"/>

It always creates the persistence store directory activemq-data inside tomcat bin folder, adding what parameter I can redirect the store content to my own directory which is outside of tomcat folder. Please help.
0
Hi,

I am in trouble running a WordPress site on Bitnami WordPress on ec2 instance.

It seems that apache is running, but no http response from the server.
Port 80 is not listened by any service.

bitnami@ip-:~$ lsof -i # no output
bitnami@ip-:~$ 

Open in new window


Apache seems to be runnning.
bitnami@ip-172-31-33-101:~$ ps aux | grep apache
root      1910  0.0  2.9 203384 30288 ?        Ss   07:35   0:00 /opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf
daemon    1915  0.0  1.5 812444 15968 ?        Sl   07:35   0:00 /opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf
daemon    1916  0.0  1.5 812444 15892 ?        Sl   07:35   0:00 /opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf
bitnami   2996  0.0  0.1  14224  1084 pts/1    S+   07:37   0:00 grep --color=auto apache

Open in new window


I restarted apache, mysql, php as follows.
bitnami@ip-172-31-33-101:~$ sudo /opt/bitnami/ctlscript.sh start
/opt/bitnami/mysql/scripts/ctl.sh : mysql  started at port 3306
/opt/bitnami/php/scripts/ctl.sh : php-fpm started
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd started at port 80

Open in new window


But no response.

bitnami@ip-172-31-33-101:~$ curl localhost:80

Open in new window


Any advise would be very appreciated.

Thanks!
0

Apache Web Server

20K

Solutions

15K

Contributors

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.