Click here to Skip to main content
15,890,123 members
Everything / Web Development / Apache

Apache

Apache

Great Reads

by Sacha Barber
An article on how to use the open source Apache Kafka messaging framework, with a bit of RxScala thrown in for good luck
by Sacha Barber
Looking at Spark/Cassandra working together
by Omar Al Zabir
Use ElasticSearch and Grafana to build powerful and beautiful dashboards. Monitor and analyze IIS/Apache logs in near real time
by Christopher Swiderski
We’ll be using Java 7 and the Apache CXF framework for implementing a web service and client within the Eclipse IDE.

Latest Articles

by Richard Chambers
Creating a simple VisionFive 2 RISC-V SBC web site using Apache2, PHP, and Postgres with the Mosquitto message broker and installing Golang, Java, and Rust.
by chionatech
A step by step guide on how to automate Apache OpenOffice Calc using Visual Studio 2022 and the C# language
by Rion Williams
How to avoid Kotlin minefields in Apache Beam
by Rion Williams
Some recommended readings about streaming systems

All Articles

Sort by Updated

Apache 

6 Feb 2024 by Andre Oosthuizen
You are almost on the right track. You can modify your '.htaccess' file by adding 'ErrorDocument 403 /redirect.php' - ErrorDocument 403 /redirect.php SetEnvIf CF-Connecting-IP "^103\.111\.227\.224$" ALLOWED_IP=1 SetEnvIf CF-Connecting-IP...
4 Feb 2024 by FX Magician
ServerName admin.fxmagician.com ServerAlias www.admin.fxmagician.com DocumentRoot /var/www/admin.fxmagician.com/public/ Options All -Indexes AllowOverride All Require...
25 Jan 2024 by ThePotty1
Hi Apologies, I'm figuring this out as I go along, so I might state the obvious, or not state something that I should. This probably isn't even the right place to ask, but I suspect there are other devs here who've had to figure this out in...
25 Jan 2024 by ThePotty1
Morning. I'm going to post my findings as a solution, because I feel it helps to keep the initial symptoms I experienced separate from my final analysis. So. Navigate to your web page using your browser, and turn developer tools on. Click the...
24 Jan 2024 by Andre Oosthuizen
Looking at your link given, you are going about this the wrong way, PHP is supposed to be your backend and javascript/jquery you front end looking at your post... You are adding multiple loads to your requests on you server which responds in slow...
16 Dec 2023 by Richard Chambers
Creating a simple VisionFive 2 RISC-V SBC web site using Apache2, PHP, and Postgres with the Mosquitto message broker and installing Golang, Java, and Rust.
23 Aug 2023 by Userxman0
I need to use more than one RewriteCond for a redirection with this rule: if it has 1 or all of these specified, do not redirect it. RewriteCond %{HTTP_USER_AGENT} !Googlebot RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !fr RewriteCond...
23 Aug 2023 by Andre Oosthuizen
Use the '[NC]' flag to make the pattern matches case-insensitive. Use the '^' and '$' symbols in the country code and 'referer' conditions indicate the start and end of your respective strings - RewriteRule Flags[^] The RewriteRule '^ - [L]'...
15 Jun 2023 by Member 16029663
Hello, I'm a beginner in PHP, HTML, and Apache. When I run the file, the XAMPP has a notice: Fatal error: Uncaught mysqli_sql_exception: Column 'firstname' cannot be null in C:\xampp\htdocs\connect\connection.php:17 Stack trace: #0...
15 Jun 2023 by Andre Oosthuizen
OriginalGriff is spot on, your data table with a field named 'firstname' is configured to accept a value otherwise it will return as invalid. To check if each of your variables has a value, you can run - $lastname = filter_input(INPUT_POST,...
14 Jun 2023 by OriginalGriff
Validate your data before you try to submit it: the error is pretty clear: Column 'firstname' cannot be null You fetch the value from the user page, but you don't try to check if the user entered anything. If he didn't, $firstname will be null,...
13 Jun 2023 by Padmapriya Elangovan
Hi, We have an automation framework developed with UFT long back and been in use to test a legacy windows application build on .Net. We use microsoft excel till now, and due to some of the constraints, we need to check for excel alternatives...
13 Jun 2023 by Dave Kreskowiak
Excel doesn't do the actual testing since that's not what Excel does. It can, however, be use as source data for the testing framework and storing of results. You're going to have to ask the vendor of the UFT framework you're using to see if...
27 May 2023 by Member 8840306
I am new in spark .I want to use function "take(3)" for getting(displaying) 3 row of my csv file It is collecting the record correctly raw_data =sc.textFile(“day.csv”) raw_data.collect() Quote: ['Name,Abbreviation,Numeric,Numeric-2',...
27 May 2023 by Richard MacCutchan
Look at the error message: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. 23/05/27 22:29:16 ERROR Executor: Exception in task 0.0 in stage...
3 Apr 2023 by chionatech
A step by step guide on how to automate Apache OpenOffice Calc using Visual Studio 2022 and the C# language
22 Feb 2023 by Andre Oosthuizen
You can use URL rewriting techniques to convert the dynamic URLs into static URLs by changing it'd format. In your .htaccess file you can use something like this - RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond...
22 Feb 2023 by Member 13934081
Hi, I’m using php/mysql on Windows shared hosting and have 1000 individual items to display on 1000 versions of the dynamically generated detail page which currently shows, for example, as: http://www.mydomain.com/folder/detail.php?ID=3...
5 Oct 2022 by Member 15789007
So I want to host this Project on an Apache web page on my Linux Server. I want to access it outside of the linux Server via Apache. What I have tried: I put in the html code as shown in the tutorial, it shows on the web page but after pressing...
9 Jul 2022 by Mathis 2022
My problem is that over time the memory usage (especially the virtual memory) increases until the system freezes. There is hardly not traffic on the server and it seems to happen independendly from making any HTTP-Request. Last time the virtual...
23 Jun 2022 by Sandeep Rattu
On apache server I configured tomcat as proxy server that serves mp3 and mp4 from a folder named content. I have given 0755 permission recursively to all media files and changed owner group to root recursively. Media content is played on Firefox...
23 Jun 2022 by OriginalGriff
This is a development site, not am apache / tomcat tech support site - try here: Apache Tomcat® - Find Help[^]
20 Jan 2022 by Keshav 2022
The build is successful but I am unable to run the servlet as whenever I try to run I get 500-Internal Server error. Error snapshot attached for reference. It's giving some runtime exception. NetBeans IDE - 12.2 Apache Server -...
20 Jan 2022 by thatraja
After quick search, found out that nb-javac plugin[^] solves the issue. Below threads confirms the same servlets - @WebServlet fails in Netbeans 11.0 with java.lang.RuntimeException: com.example.NewServlet.(NewServlet.java:1) - Stack...
19 Dec 2021 by Iris Luna
Hi All. I'm developing a website using Java 1.5 and Struts but I'm encountering an exception error. I have this view details page and whenever I click back to go back to previous screen/page which is the list page, I encounter Error 500:...
2 Dec 2021 by rat2021
I have configured apache for localhost and served a image. But when I tried to access that image through localhost in my browser, the image doesn't show up. The access log in apache shows status code of 200, but network log in my browsers dev...
24 Oct 2021 by Sagadio
Hi everyone, could someone help me solve the following problem or provide me with a link where I can read about it? I have a website on a server, but I wish this server could not be found, see an example of how the access would be: the user...
24 Oct 2021 by Richard Deeming
Reverse Proxy Guide - Apache HTTP Server Version 2.4[^]
15 Sep 2021 by Member 14362033
I tried to set index.php as a default page in my PHP project which is running on apache. I edited httpd.conf file in path etc/httpd/conf/httpd.conf DirectoryIndex index.html index.php Also, I did ...
15 Sep 2021 by Peter_in_2780
Simple. The DirectoryIndex directive will use the first file it can find of the ones you list. So DirectoryIndex index.html index.php will use index.html if it exists, before it looks for index.php. As always, it pays to read the mod_dir -...
14 Sep 2021 by Member 14362033
I wrote httpd.conf file this way but it's not working for me. DocumentRoot "/var/www/html/" ServerName dev.test.com ServerAlias www.dev.test.com what am I doing wrong here. Please help What I have tried: ...
14 Sep 2021 by Richard MacCutchan
It may be that you need a closing tag as described at core - Apache HTTP Server Version 2.4[^]. However, since you provided no details about the actual problem, I am guessing here.
13 Aug 2021 by OrangeLantern
cx_oracle persistent caonnection on flask+apache+mod_wsgi What I have tried: I have deployed my flask application on apache+mod_wsgi I'm using WSGI Daemon mode and have this config in apache httpd.conf: WSGIDaemonProcess flask_test...
12 Aug 2021 by Coder Sam
I developed a website and from SEO point of view, the homepage of a website is available under three or more different URLs which accordingly poses a risk of duplicate content, since the same content can be accessed via different URLs. for eg....
3 Aug 2021 by Chris Copeland
I had issues a long time ago with something similar, and it turned out to be problems with the Windows Firewall blocking connection attempts. Make sure that you're exposing the port 80 or 8080 (whatever you have it set to) and make sure that...
3 Aug 2021 by Dev X
I have freshly installed apache and php and configured them, then I started apache and was trying to print phpinfo() on my webpage, but when I use phpinfo() in my code, the page keeps stuck on loading. My code: What I have...
3 Aug 2021 by Richard MacCutchan
It needs to be in a web page, try this: PHP Configuration details
16 Jun 2021 by crypto88
I need 301 redirects to parent categories via .htaccess file or via plugin in WP: /parent-category-1/item-1/ -> /parent-category-1/ /parent-category-2/item-1/ -> /parent-category-2/ /parent-category-3/item-1/ -> /parent-category-3/ ......
8 Jun 2021 by Member 15185337
Despite several manipulations of owner, group, and other permissions I can't get php to open/create a file. Here is a complete test script to show what is going on.
8 Jun 2021 by QuantumPlumber
Your apache server probably doesn't run as rick. Have you tried changing the file location to somewhere that your apache process has write permissions? ps -ef | grep http should tell you which user owns the apache process. The directories...
14 May 2021 by Nguyễn Duy Bình 2021
Hi I writing .htacess for website but add RewriteRule and run web error Internal Server Error Convert link: touchme.vn/me?i=admin --> touchme.vn/me/admin I sent systax: RewriteEngine ON RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]...
2 Feb 2021 by EmpiUchi
Hi and thanks. I've developed an angular app, implementing ngx-translate. The translation works great on dev machine, and on 2 servers I've tested it on. But... on one of the servers it doesn't work (I get the keys instead of translation...
19 Jan 2021 by Fynn Pfingsten
if i run this code: from flask import render_template import connexion # Create the application instance app = connexion.App(__name__, specification_dir='./') # Read the swagger.yml file to configure the endpoints app.add_api('swagger.yml') ...
20 Nov 2020 by Hüseyin Türköz
site.com/index.php?p=universit...
29 Aug 2020 by Calvin Law
I'm new to PHP development and I'm facing some difficulties on installing a test server on the eclipse ide. Basically, i have installed wampserver x64 (apache 2.4, mysql 5.7 and PHP 7.0) with eclipse ide 2020-06 on a windows 10 machine. The...
29 Aug 2020 by User 14823784
Select local apache2 server that is attached and coming after installation through wamp64
18 Jun 2020 by Rion Williams
How to avoid Kotlin minefields in Apache Beam
11 Jun 2020 by Garth J Lancaster
This may help Mapping URLs to Filesystem Locations - Apache HTTP Server Version 2.5[^] What you have to realise is there must be 'protection' between the 'Web Layer' and the Local file system - imagine if on a Windows system a user could cause...
11 Jun 2020 by Member 14631177
My web app is running after being deployed on Apache2 (local OS is Ubuntu 18.04 LTS). There is a plethora of controller-related urls like localhost://get_id/ or localhost://delete/. Whenever I enter them into search mask, page of my we...
15 May 2020 by Rion Williams
Some recommended readings about streaming systems
8 May 2020 by stevenong_2006
How to install/configure the Artemis on the Linux Ubuntu 18.04.x OS
10 Apr 2020 by Periurium
So I asked this question on StackOverflow and the people on there didn't seem to like my question very much so I will try to go into a little more detail on here. So my current problem is coming from a PHP API that I am building to handle User...
4 Feb 2020 by phil.o
This SO post: How to change maven logging level to display only warning and errors? - Stack Overflow[^] seems to embrace the subject pretty well.
4 Feb 2020 by Member 10777201
Working with a Maven web project and using Apache CXF(3.1.15) for RESTful web services with Apache tomcat 8.5. Whenever any API is hit just after server startup, Apache CXF lists out all the endpoints of the Services present in the CXF file as below: Below is the example of log messages: INFO:...
4 Feb 2020 by OwenDavies
Looks like sSMTP is no longer maintained, MSMTP is the suggested replacement. This post discusses how to do the replacement.
15 Jan 2020 by Truck53
I am trying to use mod_rewrite to change the url. I have the following syntax in my .htaccess file on my apache server: RewriteRule https://%{SERVER_NAME}/(.Contact_Us) https://%{SERVER_NAME}/?action=$1 I am trying to get this = "^http://localhost?action=Contact_Us" to look like this:...
15 Jan 2020 by phil.o
RewriteRule ^/Contact_Us /?action=Contact_Us mod_rewrite - Apache HTTP Server Version 2.4[^]
9 Jan 2020 by Madzmar25
Hello guys... i would like to ask how to solve the case sensitivity problem of a website? Assuming i have a website namely www.mywebsite.com and i have a subdirectory in it namely subdirectory. So when i type in the url www.mywebsite.com/subdirectory its taking me to my...
1 Dec 2019 by MehreenTahir
This article will give you a gentle introduction and quick getting started guide with Apache Spark for .NET for Big Data Analytics.
29 Oct 2019 by questorfla
Not a major issue but also a waste by duplicating files. I have to put index.php as well as styles.css on every directory level of folders on a website in order to get things to work properly. I am Not a website designer and this is probably a dumb question but I would appreciate any advice. ...
6 Oct 2019 by Andy_Bell
Good evenig. I'm wondering if there is away to remote debug MVC application running on Apache server from Visual Studio. This is equipped with Mod_mono and Mono-server4 and it hosts the web site in a Lan. I'm using Visual Studio in other PC connected to the same Lan. I need to debug some...
6 Oct 2019 by phil.o
Does this help you? Deploy, run, and debug your Linux project[^]
16 Jun 2019 by Member 14093672
Hi all, Here is my virtual host file, but when added the deny all, i am unable to see the site online. Just struggling to set up the virutal host with deny all for a particular sub directory within my application. How to make this secure..any suggestions are highly appreciated. What I have...
16 Jun 2019 by phil.o
You could try to change the order: Order allow,deny and check if it fits your needs.
7 Jun 2019 by Bjørn
On-the-fly streaming multiple files or directories in a ZIP file without a temp file
27 Apr 2019 by Kevin Mack
How to build a Solr cluster with Terraform
3 Feb 2019 by Maciej Los
Quote: i have tried all solutions. What exactly? Please, refer this: PHP: Installation and Configuration - Manual[^]. There you'll find complete information about installation and configuration PHP on Apache2 server.
3 Feb 2019 by prafulla1978
i have tried all solutions. but not get success. when i load module of PHP in apache2 server httpd.conf file no success give me answer please What I have tried: i tried LoadModule php5_module C:/php/php5apache2_4.dll ScriptAlias /php/"c:/php/" AddType application/x-httpd-php .php .php5...
25 Jan 2019 by Priyanka Sabharwal81
Basic understanding of how to write/use the Apache-tika facade function and debug it in Eclipse
6 Jan 2019 by OriginalGriff
How do you expect us to be able to sort that out for you? You need to look to your hosting service for analytics and find out what is going on while your site is being used - we can't do that because we don't have any access: heck we don't even know what URL your site is on, much less what it...
1 Jan 2019 by Member 13689608
Im using apache derby databse in a Javafx project. Its a library management system and there's a limit to the number of books that can be added to the system. Is there a way to limit the entries at around, let's say, a 100 books? To display an error message once that number of books have been...
1 Nov 2018 by User 14008390
Make sure no other application using port 8080 before starting tomcat. If that's not the problem please paste tomcat log. If you want to change tomcat's default port, go to tomcat folder and open conf folder, in which you can see server.xml. In that file you can see something like
1 Nov 2018 by Member 14032440
There is a java application which was developed in java 5. As part of upgradation we are converting this to java 8 application( to achieve this, I did an ANT build which is compatible to java 8 and created a war file). I pasted this war file to the webapps folder of tomcat 8.5 which is present...
18 Oct 2018 by Ayrton Yagami
Hello friends, I'm trying to redirect one page to another with tomcat using Rewrite.config, but I can not get what I want. I have three page: index.jsp, login.jsp and Newlogin.jsp. I want to redirect the login.jsp page to NewLogin.jsp, but now it has swapped all pages through newloging.jsp. ...
30 Aug 2018 by MateoGlowinski
Hi, i've problem with Apache2. It is not executing Python Scripts which includes "sudo" command. Those scripts are working fine while running from terminal (as a "pi" user). Apache2 is running also "pi" user. Response for ps aux | grep apache2 command: root 409 0.0 0.4 7544 3824 ?...
30 Aug 2018 by Dave Kreskowiak
It doesn't work because sudo is interactive. It'll ask for a password which your website will not be able to "type in". I don't know how you're launching the command, so I suspect you're launching a command like "sudo command"? You can try changing the command to "echo password | sudo...
16 Aug 2018 by Member 9983063
Hello Guys am working on jsp project this project made by my seniors now they left and i really just little bit sound knowledge of jsp please help me when i run this project so am getting this errors please help how can i solve it. HTTP Status 500 - Unable to compile class for JSP: type...
16 Aug 2018 by Jerry Jeremiah
Shouldn't the import of com.apv.erp.resource.DbHandler be com.apv.erp.resource.DbHandler.* and the import of com.apv.erp.resource.PersistenceFactory be com.apv.erp.resource.PersistenceFactory.* ?
28 Jul 2018 by Member 13587623
i think it should be in the ' .icon ' format for the browser's to detect as the webpage icon. Do try as the 'favicon.icon' and check once , hope it works fine...
28 Jul 2018 by AndytheDev
I am currently using XAMPP, and my site is loading fine. Images are all displaying correctly except for the favicon.http://localhost/images/favicon.png loads fine, but it simply isn't displaying in the browser.SSL is turned off and all other images are displaying correctly.Any help...
19 Jul 2018 by Jochen Arndt
You did not specified what kind of tool or programming language you want to use. Tools There are multiple tools to view log files. Just search the web for something like "log file viewer" or "log file analyzer". Programming language Process the log file line by line. This can be done while...
19 Jul 2018 by Soma Sundar
I want to display all the logs in the computer for the given period of time in apache tomcat webpage display the logs from start time to end time which should be got from the user What I have tried: I did know what to do please help me I am just starting with tomcat and log files
19 Jul 2018 by Member 13906075
i have a wmi c++ program i want to display the output of the program in the web browser using tomcat can anyone help me with that What I have tried: i don't know what to do. i did not tried any thing
19 Jul 2018 by Jochen Arndt
Let the C++ application create HTML file(s) that are stored in the document path of the web server. If there is only one file, it can be stored in the root path of the server using the start page file name (usually index.htm[l]). Then it will be shown when navigating to the server URL. Otherwise...
12 Jun 2018 by Member 13737597
This article shows how to build Apache web server from source on Windows.