NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
devbobo
Nov 29, 2009Aspirant
HOW TO: Hosting multiple websites
G'day Guys, For some time I've wanted to host multiple websites from a single ReadyNAS unit...I haven't had the time to investigate it. 1. Backup all the .conf files in /etc/frontview/apache 2....
leoj3n
Jul 15, 2012Aspirant
Unfortunately I totally missed the install.sh script when I started this whole charade. I just copied the x86 dir using cp, and that's what I've been doing up until this point. Sorry for my ignorance, I've never run a .sh file until today.
To attempt to start from scratch I did the following, please look this over (apache.bak is the backup of the original /apache/ folder, made before doing any modifications):
PHP files are still being downloaded instead of output to the browser. I even tried restarting the NAS (just for fun?) but the problem persists.
Thanks for all your attention Stefan. Does your config on your server serve up PHP files correctly? If so I think we can narrow this down to php_mod being installed incorrectly. At that point I will probably try using your FrontView PHP add-on.
To attempt to start from scratch I did the following, please look this over (apache.bak is the backup of the original /apache/ folder, made before doing any modifications):
alfa-nas:/etc/frontview# rm -rf apache
alfa-nas:/etc/frontview# cp -rf apache.bak/ apache
alfa-nas:/etc/frontview# apache-ssl -f /etc/frontview/apache/httpd.conf -k restart
apache-ssl: Could not reliably determine the server's fully qualified domain name, using 10.0.1.2 for ServerName
alfa-nas:/etc/frontview# cd /c/home/admin/System\ Stuff/NAS/apache-configs/
alfa-nas:/c/home/admin/System Stuff/NAS/apache-configs# sudo bash install.sh
apache-ssl: Could not reliably determine the server's fully qualified domain name, using 10.0.1.2 for ServerName
Syntax OK
apache-ssl: Could not reliably determine the server's fully qualified domain name, using 10.0.1.2 for ServerName
alfa-nas:/c/home/admin/System Stuff/NAS/apache-configs# cd -
/etc/frontview
alfa-nas:/etc/frontview# cp apache.upd2/addons/2011cc.otzo.com.vhost apache/addons/
alfa-nas:/etc/frontview# apache-ssl -f /etc/frontview/apache/httpd.conf -k restart
apache-ssl: Could not reliably determine the server's fully qualified domain name, using 10.0.1.2 for ServerName
alfa-nas:/etc/frontview# cat apache/addons/2011cc.otzo.com.vhost
<VirtualHost *:80>
ServerName 2011cc.otzo.com
ServerAlias 2011cc.otzo.com
DocumentRoot /c/public_html/2011cc
#LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
#AddHandler php5-script .php
#AddType text/html .php
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps
<Directory /c/public_html/2011cc>
Options +FollowSymLinks +ExecCGI
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
<Location />
#Options ExecCGI
DirectoryIndex redirect.html index.html index.htm index.php
</Location>
<Location /index.html>
SetHandler none
Order Allow,Deny
Allow from all
</Location>
SSLEngine off
RewriteEngine On
RewriteOptions Inherit
Options +FollowSymLinks
</VirtualHost>
alfa-nas:/etc/frontview#
PHP files are still being downloaded instead of output to the browser. I even tried restarting the NAS (just for fun?) but the problem persists.
Thanks for all your attention Stefan. Does your config on your server serve up PHP files correctly? If so I think we can narrow this down to php_mod being installed incorrectly. At that point I will probably try using your FrontView PHP add-on.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!