/r/apache

Photograph via snooOG

A subreddit dedicated to the Apache Webserver: here you'll find news, tips and tricks or just ask for assistance, we'll try our best to help each other!

Apache-related news, tips, and tricks.

/r/apache

4,015 Subscribers

1

Trying to find my XAMPP local host.

I'm trying to do some php programming, and I can't figure out where to put my files.

I see the following in the httpd.conf file referenced in the XAMPP control panel.

Define SRVROOT "C:/xampp/apache"
ServerRoot "C:/xampp/apache"

#I inserted this into my browser, after placing hello.php into "C:/xampp/apache

http://localhost/hello.php

Why is my browser not seeing the file?

3 Comments
2024/05/12
19:46 UTC

1

URL Redirects

Hi,

Anyone have any specifi instructions for Apache for wildcard URL redirects? 

I would like any URL of olddomain.com (eg. olddomain.com/xyw or olddomain.com/*)) to forward to newdomain.com main page (http or https).

Thanks in advanced.

1 Comment
2024/05/11
20:03 UTC

1

.htaccess routing feedback

Setting up routing inside the .htaccess file instead of using a PHP router, What I am trying to accomplish is that certain routes only accept GET and one route have both GET and POST.

similar to regular routing libs:
Route.get("/kontakt", callback);

Route.post("/kontakt", callback);

Could an .htaccess wizard have a look and share your thoughts.

Options -Indexes

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

<LimitExcept GET>
    RewriteRule ^kontakt$ src/pages/contact.php [L]
    RewriteRule ^galleri$ src/pages/gallery.php [L]
    RewriteRule ^galleri/([a-zA-Z0-9-].*)$ src/pages/painting.php?id=$1 [L,QSA]
    RewriteRule ^dromkurser$ src/pages/page.php?id=1 [L,QSA]
</LimitExcept>

<LimitExcept POST>
    RewriteRule ^kontakt$ src/pages/contact.php [L]
</LimitExcept>

ErrorDocument 404 src/pages/error/404.php

⭐Additionally, if you know of any excellent resources containing comprehensive tips, tricks, and in-depth knowledge on .htaccess, I'd greatly appreciate a link.

0 Comments
2024/05/11
14:32 UTC

2

Connect Apache to Postgresql

Good afternoon, forum participants. Please tell me the answer to my stupid question.
I'm using 2 servers on ubuntu 24.04. On one I installed web-server apache, and on the other postgresql. (both from default repositories). I have a small table in Postgresql. I need that when my browser accesses the Apache server, I can view the contents of the table on the Postgreql server. Tell me what I need to install additionally and how to configure it?

7 Comments
2024/05/10
14:00 UTC

1

SSL certificate renew

I'm looking to generate a new Private Key for SSL Certificate Renewal (it seems to be on an annual cycle). From what I found in my search, it seems I need to generate a CSR file for this purpose.

It looks like I need to input the following information through Apache:

Country Name (2 letter code) [AU]: US
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:

I'm using AWS for my web hosting. I'm currently on Windows 10 and have finished installing Apache web server through online search. However, when I click on http://localhost on the web, I only see "It works" and don't see any window where I can enter commands.

Please give me any advise.

Thank you.

4 Comments
2024/05/09
17:54 UTC

2

using åäö when loading module

Hello everyone,

in httpd.conf I write:

LoadModule php7_module "C:/Users/Björn Hjorth/AppData/Local/Php/php8apache2_4.dll"

When I run it httpd.exe it cant find the dll as the path is read as follows:
C:/Users/Bj\xc3\xb6rn Hjorth/AppData/Local/Php/php8apache2_4.dll

How do I go about using åäö in paths,

thank you for your time

6 Comments
2024/05/09
14:24 UTC

1

Running LAMP stack on Ubuntu VM

Hello friends, currently a 2nd year uni student having trouble with the Linux VMs. We have to creatw a LAMP stack server and write a php application on it, and I have the server setup i just can't connect through my local machine... which i assume is what they would want us to be able to do? The machine is an Azure Ubuntu student Lab VM, which i want to access the website content through my Windows browser.

What I have tried so far:

SSH into the server

Install LAMP

open port 80 with ufw

Check that sites-enabled/000-default.conf points to the html folder /var/www/html

then i used curl icanhazip.com to find external ip

restarted Apache

and typed <IP>:80 into the browser and hit enter

Am I missing some steps? Thankyou

0 Comments
2024/05/09
13:44 UTC

1

Need help configuring a subdomain for 2 apps on the same server

Hello, I have 2 websites on a Debian server. The first is my portfolio, made with Nuxt.js and running with Node on port 3000, and the second is a FullStack Django / React App. Backend runs on port 8000.

Both are served through Apache and are working fine. One is directly accessible with domain.com and the other with the IP of my server. The 2 configs are below.

My domain is managed by cloudflare, and I would like to add a subdomain to serve my second app.

I want to access my Django / React App through sub.domain.com.

I tried to create a A record and then a CNAME record but both the subdomain and the main domain keep redirecting to my main website. I think the 2 configs might be in conflict, because the records on cloudflare both redirect to the root IP, and all requests to the root are redirected to port 3000 despite the ServerName sub.domain.com ...

Thanks by advance for any help.

Here are my 2 apache configs:

Main website (Nuxt JS running with Node on port 3000, and redirected with a ProxyPass):

<VirtualHost *:80>
ServerName domain.com
ProxyPreserveHost on
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
RewriteEngine on
RewriteCond %{SERVER_NAME} =domain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

Subdomain (Django Backend + React Frontend:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName sub.domain.com

DocumentRoot /home/rayan/dev/Predicting-Drug-Consumption/frontend/dist

ErrorLog ${APACHE_LOG_DIR}/frontend-error.log
CustomLog ${APACHE_LOG_DIR}/frontend-access.log combined

<Directory /home/rayan/dev/Predicting-Drug-Consumption/frontend/dist>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.html [L,QSA]
</Directory>
ProxyPreserveHost On
ProxyPass /api/ http://127.0.0.1:8000/api/
ProxyPassReverse /api/ http://127.0.0.1:8000/api/
</VirtualHost>

<VirtualHost *:8000>
ServerAdmin webmaster@localhost

ErrorLog ${APACHE_LOG_DIR}/backend-error.log
CustomLog ${APACHE_LOG_DIR}/backend-access.log combined

<Directory /home/rayan/dev/Predicting-Drug-Consumption/backend/drugs_consumption_analytics>
<Files wsgi.py>
Require all granted
</Files>
</Directory>

WSGIScriptAlias / /home/rayan/dev/Predicting-Drug-Consumption/backend/drugs_consumption_analytics/wsgi.py
WSGIDaemonProcess myproject python-path=/home/rayan/dev/Predicting-Drug-Consumption/backend python-home=/home/rayan/dev/Predicting-Drug-Consumption/backend/.venv
WSGIProcessGroup myproject
</VirtualHost>

0 Comments
2024/05/08
15:06 UTC

1

PHP file works fine, but not PHP within HTML

I've got XAMPP running. Control panel indicates no problems.

Here's my test.html file.

<!DOCTYPE html>
<html><body>
<?php echo "Hello World!"; ?>
</body></html>

It's just giving me a blank screen.

Here's my test.php file.

<?php echo "Hello World!"; ?>

This does exactly what it's supposed to do.

I don't think the problem is with Apache. I must be doing something wrong with my html file, but what?

4 Comments
2024/05/07
14:52 UTC

1

Having Trouble Setting up Apache with PHP

I've installed Apache on Windows 10. Here's the index.html file I'm using. The html works fine, but the PHP code is having no effect.

<html>
<body>
<h1>It works!</h1>
<?php
echo "hello"
?>
</body>
</html>

I downloaded PHP, and set up my path. I can get a PHP command line by executing PHP.exe from within Windows, but if I go to the Windows CMD prompt, and type in 'PHP', I can type what I like, but there's no response to anything I type. I can exit this mode and return to my CMD prompt by hitting ctrl C.

I have heard that I'm supposed to download a C++ executable, VC_redist.x64.exe. I have that in my download folder, but not sure what to do with it. I don't see any source code that needs to be compiled.

I also understand that I'm supposed to put something in my Apache httpd.conf file, but I'm not sure what.

It's taken me two days to get that far. Any assistance would be appreciated.

2 Comments
2024/05/07
09:09 UTC

1

Apache haus but no htdocs folder

Hi. i was asked to check a server to find out where the document folder is. and it looks like apache haus was used.

the problem is, i cannot find any apache named folder. nor, htdocs, www, documentroot.

the process itself is named System instead of httpd, which could be because of Apache haus distribution.

os is windows.

thoughts? where could the document folder be?

3 Comments
2024/05/06
03:55 UTC

2

apache graceful restart

Hi,

I see time the time it takes to reload apache between apachectl -k graceful and apachectl graceful is vastly different. By just passing -k flag i see significant improvement in my reload time.

I tried looking online the apache documention which seems to suggest both are equivalent can someone help understand the difference between the both the commands?

My setup:

Ubuntu 18.04 EC2 box

Apache/2.4.55

Thanks

UPDATE: I went through the apachectl script basically I am seeing i think the difference because when I don't pass -k it seems to do a syntax check and then do a reload but when I pass -k it seems skip syntax check and go to straight to reload

4 Comments
2024/05/01
09:31 UTC

1

Document Root won't update

laravel.conf file

<VirtualHost *:80>

ServerName 93.127.203.216

DocumentRoot /var/www/html/laravel/public

<Directory /var/www/html/laravel/public>

Options Indexes FollowSymLinks

AllowOverride All

Require all granted

DirectoryIndex index.php

</Directory>

</VirtualHost>

tried in the terminal

sudo grep -r 'Main DocumentRoot' /etc/apache2/

it returns nothing does anyone know why or have a suggestion on how I can change my DocumentRoot? Thanks!

7 Comments
2024/04/30
20:17 UTC

2

htaccess domain redirects except for Let's Encrypt well-known folder

I am using Apache >2.4.x and want to set-up htaccess domain/ path based redirects except for the Let's Encrypt "well-known" path. How do I do that?

www.example.country -> www.example.com/country/ 

www.example.country/x/y -> www.example.com/country/x/y 

etc.

but keeping www.example.country/.well-known/acme-challenge/ path untouched

I am thinking about the below but cannot find the issue

RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} !/(?:.well-known|.well-known/acme-challenge)[?/\s] [NC]
RewriteRule ^  [L,NE,R=301]https://www.example.com/country/%{REQUEST_URI}

or..

RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^/\.well-known/.+ - [END]
RewriteRule ^(.*)  [R=301,NC]https://www.example.com/country/%{REQUEST_URI}

what am I doing wrong here?

2 Comments
2024/04/29
17:38 UTC

1

Apache2 - Wordpress folder inside /var/www/html is not showing up in localhost.

OS- Ubuntu 22.04

I have a wordpress file that I want to host locally and by putting it inside /var/www/html

Though I have apache2 running successfully that I checked using systemctl,

Again, when I run php -s localhost:5000, the file does working except now its running in port 5000, What are the things that I should look into for this issue?

6 Comments
2024/04/28
06:34 UTC

1

Yealink Phone not pulling config from apache

0 Comments
2024/04/27
22:21 UTC

1

Hide SVN Repo from Apache site

We have an apache server running on windows that's publishing an SVN repo.

When you browse to the website of the svn repo, it lists all the files there and you can click and download whatever files...super cool.

I'm trying to figure out how to disable this if possible.
I'm not sure setting SVNListParentPath to Off will fix the issue since that's already the default option from what I've read. Plus in our subversion.conf file, there is no SVNParentPath set, only SVNPath. There is some AuthType configuration in that file as well but only for Write permission.

2 Comments
2024/04/26
18:59 UTC

1

Trying to deny serving up a file type, but having no luck

I'll start off by saying I am not an Apache guy by any stretch. It is a long story (involves an acquisition), but this landed on my lap because I am the closest thing we have to a web sysadmin - but my experience is all IIS. I'm trying to learn as I go, but am having some trouble with a few config issues.

Doing a security remediation, and trying to get Apache to deny displaying certain file types on GET requests. Specifically there is a web.config file in the root of a site that hosts a php-based forum, and I do not want anyone to be able to request it.

Whoever originally set this up put the following in .htaccess:

<IfModule mod_version.c>
        <IfVersion < 2.4>
                <Files "config.php">
                        Order Allow,Deny
                        Deny from All
                </Files>
                <Files "common.php">
                        Order Allow,Deny
                        Deny from All
                </Files>
        </IfVersion>
        <IfVersion >= 2.4>
                <Files "config.php">
                        Require all denied
                </Files>
                <Files "common.php">
                        Require all denied
                </Files>
        </IfVersion>
</IfModule>

As far as I can tell, it works for config.php and common.php, as when I try to go to %url%/common.php I am shown just a blank page. I don't know if this is normal, or if I should see some other type of message. As I said, I'm a total noob here.

In addition to that, in the web.config there is this block:

<security>
	<requestFiltering>
		<hiddenSegments>
			<add segment="cache" />
			<add segment="files" />
			<add segment="includes" />
			<add segment="phpbb" />
			<add segment="store" />
			<add segment="vendor" />
			<add segment="config.php" />
			<add segment="common.php" />
		</hiddenSegments>
	</requestFiltering>
</security>

I didn't know that Apache even used a web.config, and I don't know if this is an artifact that is placed there when installing the software under the assumption that it might be running on IIS.

I have tried adding the following to .htaccess in the <IfVersion < 2.4> tag:

<Files "web.config">
    Order Allow,Deny
    Deny from All
</Files>

I then added this to the <IfVersion >= 2.4> tag:

<Files "web.config">
    Require all denied
</Files

In the web.config, just to cover my bases, I added this in the <hiddenSegments> tag:

<add segment="web.config" />

I restarted Apache, but the web.config file will still display if I request it directly.

Can anyone give me any direction on what I'm doing wrong here?

3 Comments
2024/04/25
20:45 UTC

1

Redirect question

I'm trying to do a redirect via .htaccess redirectmatch as shown below.

RedirectMatch 301 ^/spaces/viewspace.action?key=(.*) "https://newlocation.atlassian.net/wiki/spaces/~$1"

The test url would be like:

https://oldsite.com/spaces/viewspace.action?key=~Firstname.Lastname

The Firstname.Lastname would basically be what needs to be maintained upon redirect to the new location.

It's currently not work but any assistance anyone could provide would be greatly appreciated. Thanks all.

3 Comments
2024/04/25
14:24 UTC

1

Yealink Phone User Agent Redirect to upgrade firmware

I have been working on a way to force stair-step upgrade some yealink phones I have so that I do not have to browse into each one and upgrade them manually. I set up an Apache HTTP Server and used the Rewrite Engine to point the User Agent of specific firmware loads at the next available firmware version. However, when I do this, the phone does not retreive any config so it will not install the firmware. TIA

Here is a log example of what I am getting:

172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /805e0cd801ed.boot HTTP/1.1" 301 567 "-" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/805e0cd801ed.boot" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /y000000000000.boot HTTP/1.1" 301 567 "-" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/y000000000000.boot" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /y000000000095.cfg HTTP/1.1" 301 567 "-" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /805e0cd801ed.cfg HTTP/1.1" 301 567 "-" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/805e0cd801ed.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"
172.31.37.30 - - [24/Apr/2024:13:21:08 -0500] "GET /96.86.0.70/y000000000095.cfg HTTP/1.1" 301 567 "http://172.31.37.85/96.86.0.70/y000000000095.cfg" "Yealink SIP-T53W 96.86.0.45 80:5e:0c:d8:01:ed"

Here is my conf file for the redirect:

<VirtualHost *:80>
    ServerName 172.31.37.85
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} 96.86.0.45
    RewriteRule ^(.*)$ /96.86.0.70/y000000000095.cfg [L,R=301]
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

The /96.86.0.70/ folder contains the y000000000095.cfg file, as well as the 96.86.0.70.rom file.

The y000000000095.cfg file contains the following:

static.firmware.url = http://172.31.37.85/96.86.0.70/96.86.0.70.rom
4 Comments
2024/04/24
18:27 UTC

2

What do you use to backup your websites?

I have numerous websites running as virtual hosts on an Oracle Free tier server.

I'm concerned that they may end the service or shut down my servers without much warning, so I'd like to keep some regular backups of my websites and apache2 configs.

What free tools do yall use for backups? I typically use syncthing, but that's not a good idea for permission-dependent things like website data.

I'd ideally like something somewhat plug-and-play. Having a web gui is a plus, but not required. I already have webmin installed, but Im unsure how great that solution is with off-server backups. I also have a nextcloud server Im happy to use for backups.

11 Comments
2024/04/24
15:24 UTC

1

Open training fund available in work - What to focus on?

Hi everyone,

I'm a teacher working in a europe who dabbles in website design and running our Moodle server.

My employer has been impressed with the work I've produced saying it went beyond their expectations. I thanked them for the compliment but was also honest with them and said that my hobbyist level knowledge was going to become a become a bottleneck at some point.

They have now said there is funding available to train me up, with paid external courses if they are the best option.

What should I focus on? Can you recommend any specific courses?

I will...

  • be running an apache based moodle server for a large number of users
  • be helping to maintain our main webpages where payments are managed
  • be involved in further online product development and management

Things I have dabbled in, purely self taught until now

  • Jscript & Javascript - mainly for website element manipulation
  • CSS - overriding presets on a Moodle server to match our company's branding
  • HTML - mostly to aid with layout on moodle, set styles when CSS is unavailable

Your time and recommendations will be very much appreciated as they may help me to move my career out of the classroom and into an area with more longevity.

0 Comments
2024/04/24
08:32 UTC

0

Get Ready to Pass the Databricks Developer for Apache Spark - Scala Exam

0 Comments
2024/04/23
08:41 UTC

1

What is the latest version of Apache for Rocky Linux? - CVE-2024-27316

0 Comments
2024/04/22
22:53 UTC

1

Can not access apache2 webserver from outside of my home network with portforwarding

So I set up mediawiki with apache and everything went fine now my plan was to make it accessible through portforwarding and when that works set firewall rules to only allow specific ip's to access that. So in my router I set the Portforwarding of the Server to TCP and the port to 80. But I am still no able to access the server from outside my homenetwork with the public ip that is shown by my Browser.

Any Ideas are appreciated!

1 Comment
2024/04/20
19:40 UTC

1

documentroot points to wrong

Was following some directions through digitalocean on how to set up lets encrypt. Somewhere I fell in and I'm not sure how to get safely back to shore. Was hoping for some assistance.

When I run this command

apache2ctl configtest

DocumentRoot [/var/www/phones.jpbit.solutions] does not exist

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

Syntax OK

I try going to my site, and i just get the..

Not Found - the requested url was not found apache/2.4.59 (debian) server at phones.jpbit.solutions Port 443

I then take a look at my sites enabled using this command

lrwxrwxrwx 1 root root 53 Apr 19 16:00 phones.jpbit.solutions-le-ssl.conf -> ../sites-available/phones.jpbit.solutions-le-ssl.conf

lrwxrwxrwx 1 root root 37 Apr 16 16:04 vitalpbx-logs.conf -> ../sites-available/vitalpbx-logs.conf

lrwxrwxrwx 1 root root 32 Mar 28 02:28 vitalpbx.conf -> ../sites-available/vitalpbx.conf

lrwxrwxrwx 1 root root 29 Mar 28 15:55 vitxi.conf -> ../sites-available/vitxi.conf

So then I disable the phones.jpbit.solutions-le.ssl.conf, then i run the configtest command again and it displays as normal and my site works. And I am still able to use phones.jpbit.solutions to get to my site.

I want to be abe to get ssl on my site but it looks like the documentroot for phones.jpbit.solutions is pointing to the wrong site. I assume it should point whereever the vitalpbx.conf is pointing to which I am not sure how to do that.

Thank you!

0 Comments
2024/04/19
21:43 UTC

1

Chunked encoding problem

Using Apache 2.4.59 on WHM/CPanel, with PHP (7.4) scripts via apache.

We have older device that cannot handle chunked encoding. Some recent update (somewhere) has changed things so that despite my script giving explicit "Content-Length" header for these devices, it is removed and chunked encoding is forced somewhere after the script, causing these devices to fail.

I'd like to know how to allow resume previous way to allow these devices to keep working.

8 Comments
2024/04/19
10:33 UTC

2

403 Forbidden Error When Accessing Root Directory with .htaccess on Apache 2.4

I run a simple (literally one page .html document) MAMP site accessible from the net and am having trouble with .htaccess configuration. I am trying to make it so that ONLY index.html access is allowed and everything else is denied, but I want it to also be accessible from the domain root. For example, navigating to [domain]/index.html is allowed, navigating to [domain] is allowed and loads index.html, but navigating to [domain]/other.html is denied.

My .htaccess file looks like:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$
RewriteRule (.*) http://[domain]/$1 [R=301,L]

# Explicitly set the default directory index
DirectoryIndex index.html

# Deny access to all files by default
<FilesMatch ".*">
Require all denied
</FilesMatch>

# Allow access only to index.html either by filename or as default document
<FilesMatch "^index\.html$">
Require all granted
</FilesMatch>

Navigating to [domain]/index.html works, and navigating to [domain]/other.html results in error 403 as expected. BUT, simply navigating to [domain] also results in error 403, which is not what I want.

Is there a way to fix this?

4 Comments
2024/04/18
22:19 UTC

0

any public apache guacamole instances?

Please someone make a public guacamole instance I tried max RDP online but they changed the password and idk the password so someone find me another public instance or you could make them - Sincerely the XPERIENCE Team.

0 Comments
2024/04/17
11:52 UTC

2

need help to understand config MaxRequestWorkers

So i'm not a server guys or what ever i'm just a programmer but the guys that used to know stuff like that at my job left and we still didn't have filled is position, and we are having server issue right now with only 100 concurent user yesterday we hit a AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting and apache crash we had to restart the docker few time. our server is pretty powerfull (2 cpu of 16 core 32 thread) so we didn't even scratch it.

with internet i learn about the mpm_prefor_module and currently it look like that

<IfModule mpm_prefork_module>

StartServers 5

MinSpareServers 5

MaxSpareServers 10

MaxRequestWorkers 150

MaxConnectionsPerChild 0

</IfModule>

can i just increat the MaxRequestWorkers ?

yeah i know i probabaly should learn more or do x/y/z but it's clearly not something i like play with and it's just because we have no know for now that know what the hell is going on

thanks

3 Comments
2024/04/15
13:01 UTC

Back To Top