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 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
I want to create a robots.txt file which will disable crawling on my site by returning a 503 server unavailable error. I cannot find the syntax to this anywhere. Can someone help with this one?

Many thanks
Chris
0
Hi Experts,

Why is that suddenly when I try to login at http://localhost/login.php I get no response, but when I use my local IP address it works?
0
Hi Guys, i have a domain video.flyefit.ie with lots of subdomains, when people open up a browser based on their IP address i would like if it forwarded onto one of the subdomains so say for instance my ip is 79.140.211.206 and i open up video.flyefit.ie i would like it to redirect to video.flyefit.ie/blanch is this possible?
0
Hi,
kindly please suggest

I injected below lines in tomcat catalina.policy,

grant codeBase "file:/<path_to_directory>/-" {
permission java.security.AllPermission;
permission java.io.FilePermission "", "read,write,execute";
permission java.util.PropertyPermission "", "read";
permission java.lang.RuntimePermission "getenv.*";
};

Open in new window


But I still get
Error in Full Agent Registration Info Resolver reading environment variable/system property 
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.")

Open in new window

0
Does apache tomcat have a support lifecycle in the same way that Microsoft apps like Windows do? And how regularly do they issue security updates for tomcat, e.g. monthly? We have got to do some reporting on unsupported software and we don't have an automated vulnerability scanner to do it so its becoming somewhat of a manual reports albeit not over that many systems. I am trying to find some accurate on data though on which to determine 'is it supported or not'.
0
Dear EE,

I have SSL certificate with the extension (.pfx).
I have Apache 2.4 installed on Windows 2012 R2.

I need to configure the SSL Certificate on Apache (Windows Based).

Your kind support is needed.

Thanks
0
What command can i run from mac terminal to know the version of Apache that’s running on a remote web server using IP address
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.