It's alive! IT'S ALLIIIIVEEE!!!!!!

They said it couldn't be done. At least, not without using Docker.


...Only idiots and cowards use that bullshit imo. REAL serverdudes like me do it the real way, unless it's something that specifically needs docker; in which case I look for an alternative instead.

They said you can't do LAMP on OpenMediaVault without docker.

"Impossible" they said. "Quite funny to think about" some may have said.

Well, I did something hilarious.

Apache (among other things, which together are known as LAMP) on OMV.
1669495169953.png

"So what, the other catboy on gbatemp installed Apache on a debian machine. What's so special?" you say? Well, OMV already has a web interface which uses Nginx, so I had to change its port from 80 (which both it AND apache default to) to 925. Any other port would've worked, 925 is just my special number.
Then I had to make apache start automatically at boot, and after that I changed the directory it uses to look for HTML files n such so that I could use my existing way of accessing the server's internal stuff (more or less, just the stuff that isn't built-in like the WebTV minisrv which is still broken for me)

Edit: Oh! And I'd like it if I got more comments on my blog posts, especially the previous one where I asked for a bit of feedback. It's alright if you don't know what to say, but anything is fine.

Comments

Couldn’t you put Apache on 925 and put a stanza in nginx to proxy to your Apache server upon use of a specific server name? That way everything stil “feels stock” and you don’t have to remember different ports during daily use.

(disclaimer: I am not an omv user but I heard somebody say the word Docker one time on TV. Only commenting per your request for more feedback.)

E:


Right after this line:

https://github.com/openmediavault/o...alt/omv/deploy/nginx/files/site-webgui.j2#L16

Add another server entry for the reverse proxy like so…

NGINX:
server {
listen 80;
server_name test.example.com;
location ~ .php$ {
proxy_pass http://SERVER:925;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
 
Last edited:
  • Like
Reactions: jeffyTheHomebrewer
Couldn’t you put Apache on 925 and put a stanza in nginx to proxy to your Apache server upon use of a specific server name? That way everything stil “feels stock” and you don’t have to remember different ports during daily use.

(disclaimer: I am not an omv user but I heard somebody say the word Docker one time on TV. Only commenting per your request for more feedback.)

E:


Right after this line:

https://github.com/openmediavault/o...alt/omv/deploy/nginx/files/site-webgui.j2#L16

Add another server entry for the reverse proxy like so…

NGINX:
server {
listen 80;
server_name test.example.com;
location ~ .php$ {
proxy_pass http://SERVER:925;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
I mean, that seems good but honestly I'd like to mess with OMV's guts (including nginx) as little as possible, and seeing how 925 is just my birthday (sept. 25th) I have no issue remembering it! Though if I could, I'd just use Windows' HOSTS file to just make an entry with :925 at the end of the IP so that typing "omv" in my browser goes to the OMV config panel. But for some stupid reason, that doesn't work. Not much hassle anyway, though. Thanks for the suggestion though!

Also, since I got your attention:
1669500829963.png

I installed mariaDB earlier, and I'm trying to setup mediawiki. It just keeps saying this no matter what I do. What gives?! Is it because apache is set to use /serverjunk/www/html as its root? If so, what do I tell mariadb to fix this BS?
 
  • Like
Reactions: binkinator
Yeah, sure, technically this entire setup is stupid (hell, I have a duplicate account on the server just so I don't have to change the name for my windows account when accessing password protected shares, but who give a shit) but it works better than other distros for SMB.
 
I mean, that seems good but honestly I'd like to mess with OMV's guts (including nginx) as little as possible, and seeing how 925 is just my birthday (sept. 25th) I have no issue remembering it! Though if I could, I'd just use Windows' HOSTS file to just make an entry with :925 at the end of the IP so that typing "omv" in my browser goes to the OMV config panel. But for some stupid reason, that doesn't work.
Not much hassle anyway, though. Thanks for the suggestion though!
Whew. I was thinking the movie Clerks and was thinking, I don’t care who you are…925 is a LOT! That or it’s a really big parking lot, but still.

DNS can only handle host name resolution. Ports have to be handled by network gear such as a FW or Proxy.
Also, since I got your attention:
I installed mariaDB earlier, and I'm trying to setup mediawiki. It just keeps saying this no matter what I do. What gives?! Is it because apache is set to use /serverjunk/www/html as its root? If so, what do I tell mariadb to fix this BS?
It’s trying to connect to your DB and failing. Did you install MDB on the same server? If so, this might help: https://m.mediawiki.org/wiki/Topic:V0k5orta7noisn4o
 
Last edited:
  • Like
Reactions: jeffyTheHomebrewer
DNS can only handle host name resolution. Ports have to be handled by network gear such as a FW or Proxy.

Whew. I was thinking the movie Clerks and was thinking, I don’t care who you are…925 is a LOT! That or it’s a really big parking lot, but still.

It’s trying to connect to your DB and failing. Did you install MDB on the same server? If so, this might help: https://m.mediawiki.org/wiki/Topic:V0k5orta7noisn4o
I did install it on the same server! It's the only one I have, actually. AFAIK MariaDB IS running, because I set it up to run at boot like I did with apache. Using "localhost:/run/mysqld/mysqld10.sock" in the WikiMedia setup does nothing to fix whatever's going on.

This was the guide I used to install LAMP: (I decided it'd be easier to just go as if OMV was terminal-only debian, since, well, it basically is at its core)
https://www.cyberciti.biz/faq/how-t... is an acronym,MediaWiki, WordPress, and more.
 
I did install it on the same server! It's the only one I have, actually. AFAIK MariaDB IS running, because I set it up to run at boot like I did with apache. Using "localhost:/run/mysqld/mysqld10.sock" in the WikiMedia setup does nothing to fix whatever's going on.

This was the guide I used to install LAMP: (I decided it'd be easier to just go as if OMV was terminal-only debian, since, well, it basically is at its core)
https://www.cyberciti.biz/faq/how-to-install-lamp-on-debian-10-buster/#:~:text=The LAMP is an acronym,MediaWiki, WordPress, and more.
You have a command line client install for mdb? See if you can connect directly to your DB using the creds you provided during DB installation.

https://mariadb.com/kb/en/mysql-command-line-client/

If you can’t connect from CLI your scripts won’t stand a chance…
 
  • Like
Reactions: jeffyTheHomebrewer
...I THINK it's connected?
1669503377905.png

I'll be honest, this is my first time having to fuck with this kind of thing. Y'know, whatever SQL is.
 
  • Like
Reactions: jeffyTheHomebrewer
I see. Also, bit of an odd ask, but; is it bad that the password has an apostrophe or
for initial setups of things I typically use as simple a password as possible and note to come back and fix it after I get it all working.
yeahhhhh "SHOW GLOBAL STATUS;" isn't printing anything. What the shit
damn...that's a REALLY good sign your DB still needs work. Might not be running? Uname/Pname wrong? Wrong terminal window? Going to have to divide and conquer until you figure out where in the chain it's borked.
 
  • Like
Reactions: jeffyTheHomebrewer
for initial setups of things I typically use as simple a password as possible and note to come back and fix it after I get it all working.

damn...that's a REALLY good sign your DB still needs work. Might not be running? Uname/Pname wrong? Wrong terminal window? Going to have to divide and conquer until you figure out where in the chain it's borked.
D'oh, fuck all this shit! I'm just gonna sudo apt remove mariadb and then reinstall. That'll at least make figuring out what to do easier, right? Might as well tomorrow though.
 
To be completely fair I *technically* don't need mediawiki for anything right now but it's good to still know how to use it for anything in the future, esp since I'd like to eventually host my site myself rather than on Neocities. I could make a wiki about my own stuff and such, or multiple things even.
 
  • Like
Reactions: binkinator

Blog entry information

Author
jeffyTheHomebrewer
Views
668
Comments
14
Last update

More entries in Personal Blogs

More entries from jeffyTheHomebrewer

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Keep current Gen consoles stock mod last gen imo