[TUTORIAL] How to config your webserver first time

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Locked
loknath_p
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 »

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.

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

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

Post by eldor »

Hi!

Have you also mentioned the port? For example:

Mywebsite.myqnapcloud.com:8081

Gesendet von meinem HUAWEI GRA-L09 mit Tapatalk
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

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

Post by schumaku »

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
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

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

Post by Moogle Stiltzkin »

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
viewtopic.php?f=320&t=110391

Wordpress. Yes there is a qpkg but i found that downloading then dumping into web root seemed to work just as well.
https://wordpress.org/download/

[ LetsEncrypt ] Free SSL/TLS Certificates
viewtopic.php?f=320&t=122747

ffmpeg binary static
viewtopic.php?f=320&t=127583

[ QNginx + PHP-FPM ] Web Server and more [embedded]
viewtopic.php?f=320&t=113790

if you want to buy a domain name i recommend namecheap :mrgreen:
https://www.namecheap.com
*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.
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 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 (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
meldgr8t
New here
Posts: 2
Joined: Mon Jan 08, 2018 3:17 am

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

Post by meldgr8t »

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
ISP
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,
Mel
User avatar
OneCD
Guru
Posts: 12010
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 »

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. ;)

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

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

Post by uglybug »

FROM THE TUTORIAL
" 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
Toxic17
Ask me anything
Posts: 6468
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

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

Post by Toxic17 »

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

viewtopic.php?f=320&t=110391
Regards Simon

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


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
hontik
First post
Posts: 1
Joined: Wed Mar 14, 2018 5:19 pm

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

Post by hontik »

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?
Locked

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