[TUTORIAL] How to config your webserver first time

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
Starting out
Posts: 11
Joined: Fri May 26, 2017 7:01 pm

Re: [TUTORIAL] How to config your webserver first time

Post by loknath_p » Mon May 29, 2017 10:38 pm

Hello Guys,

Can anyone help me resolve this issue. Tried all changes in apache.conf and http-vhost.conf by adding virtual hosts. but still my domain resolves to Nas admin page.
when i try to see with //public IP/virtual folder/ i can see my pages but not with my domain url.


Starting out
Posts: 39
Joined: Sat Apr 15, 2017 8:19 pm

Re: [TUTORIAL] How to config your webserver first time

Post by eldor » Mon May 29, 2017 11:09 pm


Have you also mentioned the port? For example:


Gesendet von meinem HUAWEI GRA-L09 mit Tapatalk

User avatar
Posts: 43663
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku

Re: [TUTORIAL] How to config your webserver first time

Post by schumaku » Tue May 30, 2017 2:17 am

The Virtual Server requires the access using the domain name, exactly as configured along with the Virtual Server, ie. if want to reach your Web page as www.whatever.domain you must configure www.whatever.domain and point to the virtual folder.

If you don't want your primary Web Server (listening on the IP address) you have to edit the index.php to redirect to the www.whatever.domain:80, or create some custom code (in the Web share, either named index.php or index.htm) showing or doing whatever. Removing the existing index.php which does the redirection will not be permanent, the Web Server start-up will force an index.php again (unless it already exits, or an index.htm exists).

User avatar
Moogle Stiltzkin
Ask me anything
Posts: 8670
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....

Re: [TUTORIAL] How to config your webserver first time

Post by Moogle Stiltzkin » Fri Jun 23, 2017 8:49 am

oyvindo wrote:Hi, the guidebook here is dated 2009! I think web design and technology has evolved considerably over the past 7 years - now with responsive design, mobile first, etc.
Does anyone know of an updated step-by-step based on a third party web server known to run well in Docker, and which has a real user friendly design app that requires little or no programming (interactive graphic element design), while still producing advanced HTML5, Java Script and Ajax code through a "compile" process?

yeah this thread seriously needs a revamp. the very first post ought to be reflective of a modern up to date guide. not an excessively long series of questionnaires by everyone trying to work things out without a single proper reference to work with. with a proper guide most of it would not need to be quized too often :mrgreen: at least

i gathered some examples of what the guide ought to look like. i'd do it but i'm not confident enough to advise fully on this subject, as i'm rather newbie at this :mrgreen:

the site covers mysql and phpmyadmin, but it leaves out other crucial stuff for setting up a site like your
https://www.tweaking4all.com/qnap/qnap- ... hpmyadmin/

covers only mysql database creation to then install wordpress
https://www.qnap.com/en/how-to/tutorial ... ess-part-i

how to setup a phpbb forum. essentially similar to wordpress. create a database then follow the steps which will require mysl database info
https://www.qnap.com/en/how-to/tutorial ... -php-mysql

if your going to open your qnap to the internet as a web server, you need to know how to properly secure it. i only found this article on the subject
https://www.qnap.com/en/how-to/faq/arti ... ore-secure

qnapcloud gives you an easy freedyns for qnap use, though i managed to get my website online using other freedyns without resorting to using myqnapcloud service before. but if people want to use it there's this guide
https://www.qnap.com/en/how-to/tutorial ... ud-service

a few useful links

[ QApache + PHP ] WebServer and more

Wordpress. Yes there is a qpkg but i found that downloading then dumping into web root seemed to work just as well.

[ LetsEncrypt ] Free SSL/TLS Certificates

ffmpeg binary static

[ QNginx + PHP-FPM ] Web Server and more [embedded]

if you want to buy a domain name i recommend namecheap :mrgreen:

*notes: Yes app center does have some of these core apps like apache and nginx, but for preference i like relying on steph releases since they tend to be more up to date usually.

in the current web server setting for qnap, we now have an option to use either apache or nginx for webserver. so an updated guide needs to cover setting up for both options. apache relies on htaccess for security configurations.
[Main Server] QNAP TS-877 w. 4tb [ 3x HGST Deskstar NAS (HDN724040ALE640) & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A w. 5x 2TB Samsung F3 (HD203WI) EXT4 Raid5
[Backup] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) single disks.
[^] QNAP TS-659 Pro II
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-228
[^] QNAP TS-128
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Asus AC68U Router|100dl/50ul MBPS FTTH Internet | Win10, WC PC-Intel i7 920 Ivy bridge desktop (1x 512gb Samsung 850 Pro SSD + 1x 4tb HGST Ultrastar 7K4000)

Guides & articles
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review

New here
Posts: 2
Joined: Mon Jan 08, 2018 3:17 am

Re: [TUTORIAL] How to config your webserver first time

Post by meldgr8t » Tue Jan 09, 2018 4:59 am

Hi thorejoha,

I need help/ advice in setting up my newly bought qnap ts-253a, I hope
somebody here will be willing to lend a hand.

My set up is like this:
1. I have a Netgear Nighthawk R9000 acting as my main router, and it's
connected to my Vodafone Modem-Router HG659 (setup in full bridge mode).
2. Qnap TS-253A is wired to the R9000
3. I need to setup/ create three users on the Qnap so they can access the nas internally and externally
3. I need to host three Wordpress websites on the Qnap, one for myself,
one for my wife and one for my daughter.
4. I want to use dynamic DNS as I don't have a static ip address from my
5. Where is the best place to set up my dynamic DNS for hosting these Wordpress
websites, on the Netgear R9000 or on the Qnap TS-253A?

Kindly advise me the best approach to achieve this setup.

Many thanks,

User avatar
Ask me anything
Posts: 7172
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [TUTORIAL] How to config your webserver first time

Post by OneCD » Tue Jan 09, 2018 5:18 am

Hi Mel, and welcome to the forum. :)

Please don’t ask your questions in more than one topic thread. It’s frustrating for forum members who try to help you. I’ve deleted your duplicate post.

Posting in topics that have been inactive for more than 6 months is also not a good idea. Better to start your own topic.

With regard to Wordpress websites for 3 people, strongly suggest you don't go for the self-hosted solution. At your level of experience, it would be much safer and easier to create accounts on wordpress.com and let them host your blogs instead. ;)


New here
Posts: 4
Joined: Sun Jan 14, 2018 3:03 pm

Re: [TUTORIAL] How to config your webserver first time

Post by uglybug » Thu Jan 25, 2018 10:13 am

" Open folder Mnt -> HDA_ROOT -> .config -> apache
Now you see some files in the right window.
Open the file apache.conf "

I have the directory mnt not Mnt on my system
and it is empty.

have been trying to locate HDA_ROOT, it's not on the system either.

have been trying to find apache.conf so that i can figure out
if this is the file that is initializing my web server.
does not finding the directories in the tutorial have to do with the versions of:
Ubuntu 16.04
Linux Station 1.5.1792
i am using QTS 4.3.4

User avatar
Ask me anything
Posts: 5383
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth

Re: [TUTORIAL] How to config your webserver first time

Post by Toxic17 » Thu Jan 25, 2018 5:04 pm

uglybug wrote:FROM THE TUTORIAL
" Open folder Mnt -> HDA_ROOT -> .config -> apache
Now you see some files in the right window.
Open the file apache.conf "

This Tutorial is over 8 years old. things do change.

I dont use the built in Webserver since it is the limiting factor. if you really need to find apache.conf search for it ;)

SSH to your NAS.

Code: Select all

# find / -name apache.conf

Personally i got fed up of trying to tweak the built in one and now use QApache which uses the latest branch of Apache AND PHP 7.1

Regards Simon

QTS 4.x User Guidex

QNAP Club Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following

NAS: TS-473-32GB QM2-2P QXG-10G1T • TVS-463-16GB QM2-2S10G1TB • TS-459 Pro 2GB 4.2.6 • TS-121 • APC Back-UPS ES 700G •
QPKG's: Plex 1.19.3 • Apache73 v2443.74060 • QSonarr • QNBZGet 21.0 • phpMyAdmin 5.0.2 • Qmono 6.80.105 • McAfee 3.1.0 -6010 • HBS 3.0.200424 • LEgo v3.6.0
Network: VM Hub 3.0 <500/35> • UniFi USG Pro 4 • UniFi USW-16-150W • UniFi USW-8-60W • UniFi CloudKey Gen2+ • UniFi G3-Flex • UAP AC Pro • UAP AC Lite • SLM2008 • Dell 7050 MFF •

First post
Posts: 1
Joined: Wed Mar 14, 2018 5:19 pm

Re: [TUTORIAL] How to config your webserver first time

Post by hontik » Wed Mar 14, 2018 5:25 pm

I would like to transfer my current page (https://www.kkv-informatika.hu) to a qnap nas 251. How can I check out what kind of php version is available on nas? If I want a different php version, how can I change it?

Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”