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
702
Comments
14
Last update

More entries in Personal Blogs

More entries from jeffyTheHomebrewer

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    My girlfriend at the time, she had me stay up with her all night because some how the crazy bitch had spent like 12 hours snorting 2 8 balls, didn't use any water (gotta clean your nose) so she had so much crusted in her nose I was sure she was gonna blow up her heart. I mean this was the stuff right off the boat so absolutely pure. ugghh so annoying
  • Psionic Roshambo @ Psionic Roshambo:
    Also doing like 320 dollars worth of coke in half a day lol damn it
  • Psionic Roshambo @ Psionic Roshambo:
    hmmm 360 even lol
  • Psionic Roshambo @ Psionic Roshambo:
    Well I was getting a discount so 320 is probably right
  • BigOnYa @ BigOnYa:
    That is cheap, I used to pay $100 for a tine.
  • Psionic Roshambo @ Psionic Roshambo:
    Tine? One gram?
  • BigOnYa @ BigOnYa:
    Sixteenth
  • Psionic Roshambo @ Psionic Roshambo:
    Also it was literally out of a kilo when I got it off the boat so absolutely pure
  • Psionic Roshambo @ Psionic Roshambo:
    Holy shiz that's a lot
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I was getting 3.5 Grams for 320 could have stepped on it and doubled my money easy lol
    +1
  • BigOnYa @ BigOnYa:
    I'd be afraid to it nowdays, my heart would explode prob. I just stick beers n buds nowdays.
  • Psionic Roshambo @ Psionic Roshambo:
    I would get to drive from tarpon springs to like Miami a thousand bucks lol do that twice a week and back in 92 that was good money
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    @Psionic Roshambo what are you guys talking about?
  • Psionic Roshambo @ Psionic Roshambo:
    Blew it on women and muscle cars lol
    +1
  • BigOnYa @ BigOnYa:
    @Xdqwerty Hamster food, its pricey nowadays to keep PCs running.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I don't do anything except cigarettes and gotta stop eventually lol
    +1
  • BigOnYa @ BigOnYa:
    I'd do shrooms again if could find, and I was outside camping/fishing, and had a cooler full of beer.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I wouldn't mind some LSD, laughing until my face hurt sounds fun lol
    +1
  • BigOnYa @ BigOnYa:
    You ever try soaper powder/qauludes? I did once and like a dumbass drank beer on top of taking, I woke up laying in my backyard in the pouring rain, it knocked me out. I have not seen it around in many many years.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    No never tried a lot of things but never that lol
  • Psionic Roshambo @ Psionic Roshambo:
    I did pass out one time on a floor after taking a bunch of Ambien lol thought it would help me sleep and did it lol
  • Psionic Roshambo @ Psionic Roshambo:
    Girlfriend was working at a pharmacy and stole like 500 of them, was and still is the biggest pill bottle I have ever seen lol
  • K3Nv2 @ K3Nv2:
    Ativan is pretty legit
    +1
    K3Nv2 @ K3Nv2: Ativan is pretty legit +1