We help IT Professionals succeed at work.

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.

I am getting this line as an error in my server logs...

I can't seem to figure out what it means. But it appears to really slow down the server access.  It's like it freezes on this error for anywhere from 1 to 10 seconds.

GET /%7B%7BimgSrc%7D%7D HTTP/1.0

Open in new window


Any idea what this means and how to fix it?
0
Difference Between Apachectl and Httpd .Is apachectl -k start or httpd -k start  both the same .we have a pid file by the name httpd.pid but not apachectl.pid what is the difference .


pgrep httpd|head -5
6894
7971
8439
8946
9038
$ pgrep apache|head -5
$ pgrep apachectl|head -5
$ ps -ef|grep httpd|wc -l
58
$ ps -ef|grep apache|wc -l
71
$ ps -ef|grep apachectl|wc -l
1

$ ps -ef|grep apache|head -5

root      6894     1  0 23:13 ?        apache-2.2.22//bin/httpd -k start
root      6895  6894  0 23:13 ?        apache-2.2.22/logs/error.log_%Y%m%d 10M
root      6896  6894  0 23:13 ?        apache-2.2.22/logs/access.log_%Y%m%d 10M
root      6897  6894  0 23:13 ?        apache-2.2.22/logs/access.log_%Y%m%d 10M
root      6898  6894  0 23:13 ?        apache-2.2.22/logs/ssl_request.log_%Y%m%d 10M
daemon    6900     1  0 23:13 ?        00:00:00 LLAWP /apache-2.2.22/conf/WebAgent.conf -APACH
root      6906  6894  0 23:13 ?        apache-2.2.22/logs/mod_jk.log_%Y%m%d 10M
daemon    8946  6894  0 23:25 ?        /apache-2.2.22//bin/httpd -k start
daemon    9255  6894  0 23:27 ?    apache-2.2.22//bin/httpd -k start
daemon    9617  6894  0 23:29 ?        /apache-2.2.22//bin/httpd -k start


 ps -ef|grep httpd|head -5
root      6894     1  0 23:13 ?            apache-2.2.22//bin/httpd -k start
daemon    8439  6894  0 23:21 ?        /apache-2.2.22//bin/httpd -k start
daemon    8946  6894  0 23:25 ?        apache-2.2.22//bin/httpd -k start
daemon    9038  6894…
0
After building Apache 2.4 with SSL support, the following error occurs when running the image:

/usr/lib/arm-linux-gnueabi/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /usr/lib/arm-linux-gnueabi/libssl.so.1.1)

Open in new window


OpenSSL 1.1.1d was configured as follows and installed successfully.

./config --prefix=/opt/openssl-1.1.1d --openssldir=/opt/openssl-1.1.1d

Open in new window


APR 1.6.0 was configured with the defaults and installed successfully.

APR-util 1.7.0 was configured as follows and installed successfully.

./configure --with-apr=/usr/local/apr --with-crypto --with-openssl=/opt/openssl-1.1.1d 

Open in new window


Apache 2.4 was configured as follows and builds successfully.

./configure --prefix=/usr/local/apache \
--with-mpm=worker --with-ssl=/opt/openssl-1.1.1d \
--enable-ssl --enable-ssl-staticlib-deps --enable-mods-static=ssl \
--enable-deflate --enable-mime-magic --enable-headers --enable-include \
--enable-rewrite \
--disable-access-compat --disable-alias --disable-auth-basic --disable-authn-core \
--disable-auth-form --disable-auth-digest --disable-authn-anon --disable-authn-dbd \
--disable-authn-dbm --disable-authn-file --disable-authn-socache --disable-authz-dbd \
--disable-authz-dbm --disable-authz-groupfile --disable-authz-host --disable-authz-owner \
--disable-authz-user --disable-autoindex --disable-cache --disable-cache-disk \
--disable-cache-socache --disable-cgi --disable-cgid --disable-dav --disable-dav-fs \

Open in new window

0
Hi everybody.
So I have the website1.com which links some resources from the website2.com/static (both have SSL active): resources are images, css, javascript and fonts. All resources are correctly loaded but fonts. For fonts I get a CORS issue:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.webintenerife.com/static/fonts/Chandstate.otf. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

downloadable font: download failed (font-family: "ChandState" style:normal weight:400 stretch:100 src index:0): bad URI or cross-site access not allowed source: https://www.website2.com/static/fonts/Chandstate.otf

Open in new window


I have set the header in my .htaccess both in website2.com/static and in website2.com:

<FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "https://website1.com"
  </IfModule>
</FilesMatch>

Open in new window


Any idea?
Thank you in advance
0
This document has a list of parameters and server configurations to mitigate denial of service attacks

https://httpd.apache.org/docs/trunk/misc/security_tips.html

But it doesn't give any suggested values for these settings.

Of course the server has default values but there is no discussion in the documentation about whether the default values are the best recommended values... actually no discussion of the actual values at all, what the considerations are for raising and lowering particular values, etc.

What I'm looking for here is a  resource that actually discusses the ramifications for using different values in different settings, what the considerations are, what the pros and cons are for going up or down from the default value in the various cases.

Thanks in advance for any light anyone can shed on this.
0
Dear Expers,
I use PHP 7.3,
I use LiteSpeed Web Server
I use Cpanel.

SERVER_PROTOCOL      HTTP/1.1
DOCUMENT_ROOT      /home/uxxxxxx/public_html

I have php login system. Users can access my pages with a username and password.
My files are on public_html files. So it is open to internet.
whatever I upload to /home/uxxxxxx/public_html it is open to public.

however, I don't want to show some files like pdf files, or jpg files to public.
I tried to add directory privacy on Cpanel, but when I do that my webpages can not reach the files too.
I tried to use .htaccess file ( deny all ) has the same result.

I only want it to show those pictures inside my webpages. I don't want anybody reach my files simply writing the link like www.mydomain.com/img/myimage.jpg 

what do you suggest I should do?
0
hi,

is there anyway to move IBM WebSphere Application Server, Oracle WebLogic Application Server and Apache Tomcat to Azure?

what is the solution in Azure for it?
0
I am trying to import a .sql into a blank database in PHPMyAdmin
The Collation is utf8_unicode_ci

The database tables in the .sql file are:
ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

I get a collation error telling me that the collation format is unrecognised

How do I proceed with this, please?
0
Hi,
I want to have 2 more separate lines between word "Logon Page" and user name below. How to adjust it? How to also center "Logon Page" on the line?

        <div class="container" style="background:url('./pict/ID-10028343.jpg');border: 0px solid green;background-color: C9D3DD;background-size: cover;background-repeat: no-repeat;width:1200px;height:800px;font-family:Verdana;font-size:14px;">
          <form action="page.php" method="POST">
          <div class="row" style="border: 0px solid red;">
                <div class="col" style="border: 0px solid blue;"></div>
                <div class="col"></div>
                <div class="col text-center" style="border: 0px solid orange;foreground-color: 848484;font-size:18px;"><b>Logon Page</b></div>
                <div class="col"></div>

                <div class="col" style="border: 0px solid blue;"></div>
                <div class="col text-right" style="border: 0px solid orange;"><b>Username:</b></div>
                <div class="col" style="border: 0px solid yellow;"><input type="text" name="username" style="background-color: white;" /></div>
                <div class="col"></div>

                <div class="w-100"></div>

                <div class="col" style="border: 0px solid blue;"></div>
                <div class="col text-right" style="border: 0px solid orange;"><b>Password:</b></div>
                <div class="col" style="border: 0px solid yellow;"><input type="password" name="password" 

Open in new window

0
I have a HTML5/js web page that was working fine and stopped working a short time ago.  I have placed this web page temporally at: https://www.barnwellmd.com/temp/test.html so I can delete it after I close this question (it saves files on my server and sends me an email).  

The problem is when a user clicks on "Send to Dr. Office" a popup shows "<head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html>" and nothing is sent.

That button calls the sendCanvas() function:
function sendCanvas()
{
      if (checkFields()) return;
      clearGray();
      createPrint();
      var testCanvas = document.getElementById("imageView");  
      var canvasData = testCanvas.toDataURL("image/png");
      //alert(canvasData);
      var ajax = new XMLHttpRequest();
      //alert ('https://www.barnwellmd.com/Uploadroutines/uploadbase64.php?name=' + document.form.ptname.value.replace(/ /g,"_"));
      ajax.open("POST",'https://www.barnwellmd.com/Uploadroutines/uploadbase64.php?name=' + document.form.ptname.value.replace(/ /g,"_"),false);
      //ajax.open("POST",'https://www.barnwellmd.com/Uploadroutines/uploadbase64.php',true);    
      ajax.setRequestHeader('Content-Type', 'canvas/upload');
      //ajax.setRequestHeader('Content-Type', 'application/upload');
      ajax.onreadystatechange=function()
      {
            if (ajax.readyState == 4)
            {
                  alert(ajax.responseText);
                  …
0
Greetings!

We have an Apache server running in XAMPP on Windows.  Our Apache error.log is full of things like this:

[Mon Feb 03 18:01:58.011720 2020] [php7:error] [pid 5832:tid 1844] [client 193.112.9.107:10583] script 'C:/xampp/htdocs/journal/uuu.php' not found or unable to stat
[Mon Feb 03 18:01:58.605480 2020] [php7:error] [pid 5832:tid 1844] [client 193.112.9.107:10710] script 'C:/xampp/htdocs/journal/yyy.php' not found or unable to stat

And the php_error_log reflects it like:

[03-Feb-2020 18:01:35] ojs2: 404 Not Found
[03-Feb-2020 18:01:37] ojs2: 404 Not Found

It doesn't seem to be a huge problem, but it clogs log files and probably increases server load.

Is there a way on a Windows machnine to either block like bad IPs like fail2ban does on Linux, or to simply block php request (since our site has no php files anyway)?
0
I had this question after viewing URL is changing after rewrite with proxy flag.

I am having a similar issue with my Jira instance, but rather than writing :8080 after the URL, :80 is getting inserted. I am not at all an Apache guru and am stumbling along using the Atlassian guides which have not been able to assist me with this problem.

In short: I configured Jira for SSL with Apache acting as a reverse proxy. I have The configs exactly as several guides recommend and when I hit the web pages at https://my.jira.site.com/jira the URL is changed to https://my.jira.site.com:80/jira. If I remove the :80 a couple times, the log in page will come up with the proper URL and will show secure with a valid cert.

After I put in my creds, it does the :80 thing a couple more times and then runs fine.

I am completely puzzled about this.

If someone thinks that they might have a thought, I can post my configs.

Thank you.
0
I have an xampp (Apache) server setup such that the Wordpress files are in the following directory:
htdocs/Wordpress

If I use http://localhost/wordpress the site works perfectly well
I need to be able to type in the public website address such that the original request is diverted to the Wordpress/Index.php file rather than typing http://mydomainname.com/wordpress

ie. http://www.mydomainname.com
This should then reference the Wordpress/Index.php file

Please can someone tell me how to achieve this - .htaccess?, redirect ?
I need clear instructions please as I am not familiar with the apache server setup
0
Apache installation (xampp 7.1.29):

Please can someone give me a STEP by STEP guide to adding a valid ssl to my new apache (xampp) installation
The server is already working with my website but I need to put in a valid ssl certificate
I need to know the process of generating an ssl and adding it
The ssl will be fo www.mydomainname.com
0
Can you please help me in that error?  Thanks
Error: MySQL shutdown unexpectedly.

XAMPP MySQL Error
InnoDB: using atomic writes.
2020-01-11 16:01:51 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-01-11 16:01:51 0 [Note] InnoDB: Uses event mutexes
2020-01-11 16:01:51 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-01-11 16:01:51 0 [Note] InnoDB: Number of pools: 1
2020-01-11 16:01:51 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-01-11 16:01:51 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-01-11 16:01:51 0 [Note] InnoDB: Completed initialization of buffer pool
2020-01-11 16:01:51 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
2020-01-11 16:01:59 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-01-11 16:01:59 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-01-11 16:01:59 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-01-11 16:01:59 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-01-11 16:01:59 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-01-11 16:01:59 0 [Note] InnoDB: Waiting for purge to start
2020-01-11 16:01:59 0 [Note] InnoDB: 10.4.11 started; log sequence number 300297; transaction id 171
2020-01-11 16:01:59 0 [Note] InnoDB: Loading buffer pool(s) from 

Open in new window

0
Can you please tell me the name of this IDE used for php script?  Thanks.
 screenshot2.JPG
0
Can you please tell me why its not starting the apache server?  Thanks.
screenshot.JPG
0
How to i execute my php index file in wamp?  Thanks.
screenshot.JPGscreenshot2.JPGscreenshot3.JPG
0
Basically, I want same a user to use same id and password to login to web based and ssh login both. I am wondering if there is a better way to do it. What is industry standard to solve a situation when a user can use same credential to login via ssh and web.
0
Hi

I've installed XAMPP on windows 10

When I start the server I get the following errors (Same if Run as Admin)
Can I safely ignore these warnings, if not how do I resolve them?

[Wed Jan 08 12:06:55.415197 2020] [mpm_winnt:notice] [pid 13916:tid 516] AH00456: Apache Lounge VC14 Server built: Aug 12 2019 10:48:01
[Wed Jan 08 12:06:55.415197 2020] [core:notice] [pid 13916:tid 516] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Jan 08 12:06:55.423200 2020] [mpm_winnt:notice] [pid 13916:tid 516] AH00418: Parent: Created child process 13988
[Wed Jan 08 12:06:56.132204 2020] [ssl:warn] [pid 13988:tid 548] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jan 08 12:06:56.292124 2020] [ssl:warn] [pid 13988:tid 548] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jan 08 12:06:56.331050 2020] [mpm_winnt:notice] [pid 13988:tid 548] AH00354: Child: Starting 150 worker threads.

Open in new window

0
Hi

I'm attempting to install Apachie-Jena  Fuseki  and Skosmos  in windows 10 following this guide    which uses XAMPP

When I try and test Skosmos using test data from here loading-data

All good so far the data is loaded and reports correctly  however when I try and view the data in Skosmos I get the following in Apache logs

[Wed Jan 08 12:02:25.561396 2020] [php7:notice] [pid 11176:tid 1944] [client ::1:58254] PHP Notice:  Undefined index: http://www.w3.org/2004/02/skos/core#Concept in C:\\xampp\\htdocs\\skosmos\\controller\\RestController.php on line 288, referer: http://localhost:8080/skosmos/stw/en/
[Wed Jan 08 12:02:25.694397 2020] [php7:notice] [pid 11176:tid 1936] [client ::1:58263] PHP Notice:  Undefined offset: 0 in C:\\xampp\\htdocs\\skosmos\\controller\\WebController.php on line 642, referer: http://localhost:8080/skosmos/stw/en/

Open in new window


and in Chrome dev tools
http://localhost:8080/skosmos/resource/css/stylesheet.css net::ERR_ABORTED 404 (Not Found)
jquery.min.js:4 GET http://localhost:8080/skosmos/rest/v1/types?lang=en 500 (Internal Server Error)

Open in new window



I'm not total sure what line 288 of RestController.php is doing the web page "http://www.w3.org/2004/02/skos/core#Concept" doesn't exist but in a browser gets redirected to https://www.w3.org/2009/08/skos-reference/skos.html#Concept I attempted to change the urls but  it still fails
WebController.php
RestController.php
0
Hi,

I need an assistant.

i made 301 redirection using .htaccess to new domain name as follows :

#REDIRECT TO IWHOST

RewriteCond %{HTTP_HOST} ^domain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteCond %{REQUEST_URI} !/(fpx_indirectcallback|fpx_directcallback|molpay_callback|paypal|billplzBills)\.php [NC]
RewriteRule ^(.*)$ https://iwhost.com/$1 [L,R=301,NC]

Open in new window



and at the iwhost.com i made a php script in index.php as follows :

// Check referrer

$ref = $_SERVER['HTTP_REFERER'];

$refData = parse_url($ref);

if($refData['host'] == 'domain.com' || $refData['host'] == 'www.domain.com'  ) {

echo "<link rel='stylesheet' href='css/swc.css'>
<div id='boxespopup'>
  <div style='top: 50%; left: 50%; display: none;' id='dialog' class='window'>
    <div id='san'>
      <a href='#' class='close agree'><img src='img/close-icon.png' width='25' style='float:right; margin-right: -25px; margin-top: -20px;'></a>
      <img src='img/notice.jpg'>
    </div>
  </div>
    <div style='width: 2478px; font-size: 32pt; color:white; height: 1202px; display: none; opacity: 0.4;' id='mask'></div>
</div>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js'></script>
<script src='js/swc.js'></script>";
}

Open in new window


The problem is that why iwhost receive empty referrer when redirect using the above method.

Please advice alternate method or idea on how to achieve my requirement.
0
I am using a version of dom pdf  which is throwing up the following error with php version 7.1.29:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Cpdf has a deprecated constructor in C:\xampp7\htdocs\Inventas\Sites\includes\pdf\lib\class.pdf.php on line 49
I have checked the dompdf_config.inc.php file and see:
class  Cpdf {

This is what I have managed to find re. the version:
@contributor Helmut Tischer <htischer@weihenstephan.org>
* @version 0.5.1.htischer.20090507
Does anyone know how to get around this or as an alternative - another version of dom pdf?
class.pdf.php
0
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_TickTockDB = "localhost";
$database_TickTockDB = "inventas";
$username_TickTockDB = "xxxx";
$password_TickTockDB = "xxxxxxxxxxx";
$TickTockDB = mysql_pconnect($hostname_TickTockDB, $username_TickTockDB, $password_TickTockDB) or trigger_error(mysql_error(),E_USER_ERROR);
?>

It looks as if I have a deprecated connection string
Can someone please suggest an alternative for this connection
0
I am trying to figure out where apache tomcat 7.0.93 sits within the suppliers support lifecycle, can anyone advise?
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.