Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17759

Any home webserver gurus that might be able to help me? (x-post /r/linuxquestions)

$
0
0

Hey reddit!

I've set up a LAMP stack on Ubuntu Server 12.04, and along with OpenSSH for remote access. On top of that, I've set up an FTP server, which I can connect to remotely, and finally - Wordpress. All of these were installed by following the instructions on https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu and https://www.digitalocean.com/community/articles/how-to-install-wordpress-on-ubuntu-12-04

Now the problem is this:

I cannot access the website externally (outside my LAN). I've nailed the problem down to my ISP blocking port 80 for obvious reasons.

I've tried a large share of google-fu, fiddled with my apache2.conf, ports.conf, and ~/sites-enabled/000-default files in order to try and get it to listen on port 8080 so I can access externally.

What's been done:

-Router configured correctly on port 20,21,22,80, and 8080 all pointing to the server static IP address. (I can access FTP and SSH externally).

-(unsuccessfully) configured apache files to listen on port 8080

-(unsuccessfully) configured 000-default to <Virtual Host *:80 *:8080>

Also, I had this working a few days ago until I went snooping around and totally borked my website, and now I've started with a fresh server/LAMP/Wordpress install. So now, everything is set at its default configuration.

Could someone please help me out? I just cannot figure out what I am doing wrong.

EDIT: RESOLVED

Thanks for your help everyone. It was resolved by correcting the syntax in ~/ports.conf and ~/sites-enabled/000-default, and then correcting Wordpress to use port :8080 as the Wordpress URL and Site URL. Remember to create a MySQL database back up in case you misstype a url, as there is no prompt. Clear the external browsers cache and then I was ableto connect.

submitted by gideonhelms2
[link][31 comments]

Viewing all articles
Browse latest Browse all 17759

Trending Articles