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

More entries in Personal Blogs

More entries from jeffyTheHomebrewer

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    I thought I saw a puttie snatch...
  • BigOnYa @ BigOnYa:
    I'm so pumped, NCAA football video game is back after a 10 year hiatus, coming to SeriesS/X, PS5 in July.
  • BigOnYa @ BigOnYa:
    Wish they would let us play the NCAA football 14 on newer xbox, its one of the only games I love and own on disc still, that is not back compatible, bs.
  • AdenTheThird @ AdenTheThird:
    @BigOnYa My dad recently bought a spare Series X off of me, got game pass, and saw Madden '24 on Game Pass, decided to try it out.

    ...He was a bit taken aback by the 60GB download size. Poor guy's still living in the 90s!
    +1
  • SylverReZ @ SylverReZ:
    @AdenTheThird, Bro's still in the PS2 age.
  • K3Nv2 @ K3Nv2:
    Lol charging your dad's classic unless he's the type that doesn't like taking things like that
  • AdenTheThird @ AdenTheThird:
    @K3Nv2 He was looking into consoles for his house anyway (for my younger siblings and himself) and I had a spare XSX and Switch I ended up selling him at pretty steep cuts. I would just give them to him, but I did buy them with the intent to sell them... and college is super expensive.
  • BigOnYa @ BigOnYa:
    A little yeah...
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, [insert wut here]
    +1
  • BigOnYa @ BigOnYa:
    I'm a little hi, but bout to fix that.
    +1
  • BigOnYa @ BigOnYa:
    Now I'm low, i was upstairs in my wifeys kitchen, now I'm downstairs in my dungeon.(My basement)
    +1
  • BakerMan @ BakerMan:
    do you mind? i snuck in with amiibo and jars, and am trying to do my thing brony style
  • BakerMan @ BakerMan:
    have you ever regretted saying something immediately after saying it?
    +1
  • BakerMan @ BakerMan:
    nah what i was doing was trying to cure my ever-so-apparent crabs
  • Xdqwerty @ Xdqwerty:
    @SylverReZ,
    my younger brother is forcing me to play with him and my cousins are here *sigh*
    +1
  • BigOnYa @ BigOnYa:
    @SylverReZ that Hack a hacked 360 vid was neat, never knew it existed.
    +1
  • SylverReZ @ SylverReZ:
    @BigOnYa, I thought it was interesting.
    +1
  • Xdqwerty @ Xdqwerty:
    nvm this video is clickbait
    Xdqwerty @ Xdqwerty: nvm this video is clickbait