Mod_Mono, Apache, Raspberry PI - apache2

I have a problem to get my asp.net site running on my Apache webserver on my Raspberry Pi. I was already looking on different online boards, but I did not find any good intstructions how to proceed.
What is already done:
Mono Complete and Mono Develop are installed (latest version 4)
XSP4 installed
Apache2 installed (default website is working)
Mod_mono (version4) installed and activated
I have generated a test website with the file "Test.aspx" and copied to the folder /var/www/Test/
Then I have created a new config-file "Test.conf" on /etc/apache2/sites-available and activated it.
The content is:
DocumentRoot /var/www/Test
<Directory /var/www/Test/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
SetHandler mono
DirectoryIndex Test.aspx Test.html
</Directory>
What do I miss. I hope that someone can give me some good instructions. Thank you!

Related

iRedMail 0.9.9 with Apache2, how to get the web interface working

Could anyone tell me how, or point me into a working tutorial on how to get iRedMail working when using Apache2?
Installation is succesful, all I need now is the web interface. We cannot use Nginx because there are a lot of websites hosted on this server, so we have to stick to Apache.
I hope someone can tell me how we can get the web interface working with Apache.
iRedMail version: 0.9.9
Deployed with: installer
Linux/BSD distribution: Ubuntu 18.04
Backend: MariaDB
Web server: Apache2
Been Googling for 2 days now without finding a working solution unfortunately.
The URL that I installed it on should be webmail.mydomain.com
Best regards
The working example for me is below:
<VirtualHost *:443>
...
WSGIDaemonProcess iredadmin user=iredadmin threads=15
WSGIProcessGroup iredadmin
WSGIScriptAlias /iredadmin /opt/www/iredadmin/iredadmin.py/
Alias /iredadmin/static /opt/www/iredadmin/static/
<Directory /opt/www/iredadmin/>
Order deny,allow
Allow from all
Require all granted
</Directory>
...
</VirtualHost>

Running development version of create-react-app in Apache

I've looked around for this everywhere and there is tonnes of documentation on how to DEPLOY apps created with create-react-app to apache which is fairly straight forward, however there's barely anything on how to run your development environment on apache.
I'm working on an app that's going to be deployed on an apache server and so I want to mimic the environment during development but can't figure out how to set it up correctly. Is it even possible?
I have the following conf file set up for my site - but because the index.html file doesn't directly include the JS required for React to do its magic, I just get an empty page with the <div id="root"></div> holder.
Conf:
<VirtualHost *:80>
ServerName warehouse.local.com
DocumentRoot /var/www/warehouse-local/public
ErrorLog /var/log/apache2/warehouse.local.com-error_log
CustomLog /var/log/apache2/warehouse.local.com-access_log common
<Directory /var/www/warehouse.local.com>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Anyone got any advice on how to achieve what I'm after?
emmm,why you want to run dev version in Apache?
I think ,I will need Apache just when I deploy my prduction version of react app.

Vagrant 403 Forbidden

I've been running Vagrant successfully for about a week. Last night I ran vagrant reload and now I can no longer access my sites.
VirtualBox version 4.2.16
Vagrant version 1.2.7
My Vagrantfile and bootstrap.sh: https://github.com/kriskd/vagrant-settings
Running on Mac
My files live at /vagrant/Sites. At first my "welcome page" which lives at /vagrant/Sites rendered at
http://localhost:4567/
All my projects are folders under Sites. For example, /vagrant/Sites/test won't render index.html. I get the following
Forbidden
You don't have permission to access / on this server.
Apache/2.4.6 (Ubuntu) Server at localhost Port 4567
The vhost looks like:
<VirtualHost *:80>
DocumentRoot "/vagrant/Sites/test"
ServerName test
<Directory "/vagrant/Sites/test">
AllowOverride All
</Directory>
</VirtualHost>
The vhosts are owned by root. My project files are owned by vagrant and chmod'ed 0777.
After no success, I did a full vagrant destroy followed by vagrant up and then the localhost host welcome page stopped rendering as well with the forbidden error.
My hunch is that this is not a vagrant issue at all but solely an Apache configuration glitch. There are a few things I can think to check.
First, obviously, is to confirm that the user that apache is running under has read and execute permissions for the DocumentRoot folder.
Since you mentioned Apache 2.4, there have been changes in the configs from 2.2. Make sure your Allow from all statements now read Require all granted. (If you were still on 2.2, you'd want to make sure they said Allow from all instead of Deny from all.) In either case, you can set this in each <VirtualHost> individually, or set a default in your <Directory /> block of the main httpd.conf file.
Getting more obscure, you could check for selinux, although I'm pretty sure this isn't present in Ubuntu by default. (It is in CentOS, for example.)
This is solved and in the end came down to some very simple things.
Use "Require All granted" instead of "Allow from All"
Put each websites' content at the same level namely /vagrant/Sites/default, /vagrant/Sites/test, /vagrant/Sites/real-site
Add .conf extension to vhost names such as test.conf and real-site.conf
Add AllowOverride All to vhosts to respect sites' .htaccess file (I realize that was in my original post, it got lost as I tried to solve this)
All very basic things that eluded me for a better part of a week. I hope this can help someone else.
I had the same problem when changing the DocumentRoot.
Since you've changed your DocumentRoot to "/any/path/foo/bar", make sure you have the permissions set on "apache2.conf" for this path.
Search for:
<Directory /any/path/foo/bar>
in apache2.conf
And add a new block like this:
<Directory /any/path/foo/bar>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
And my guess is that everything is gonna be fine!
cd /etc/apache2/sites-available
for file in `ls *`; do sed 's/\(.*<\/Directory.*>\)/Require\ all\ granted\n\1/' $file > $file.new;mv $file.new $file ; done;
because it worked before, I would not waste time on fix file by file

Cakephp 2.0 starts complaining about mod_rewrite

I run Cakephp 2.0 on Ubuntu 10.04, Mysql, Apache2, PHP5, hosted at linode.com. Just two days ago, when clicking on the link from my homepage www.cross-town-traffic-software.com to freecite, I get the mod_rewrite message from Cakephp. Sometimes I don't. I have check all of my logs and nothing comes up. I checked the sites-available and all of the .htaccess files and they are all inorder, how do I trouble shoot?
sudo a2enmod rewrite
sudo gedit /etc/apache2/sites-enabled/000-default
Check for these lines and change as I have done here :
DocumentRoot /var/www/
Options FollowSymLinks
AllowOverride all
Options FollowSymLinks
AllowOverride all
Order allow,deny
allow from all
Save the file & restart apache :
sudo /etc/init.d/apache2 restart
It's pretty simple! cake.generic.css contains the following:
/** Elements **/
#url-rewriting-warning {
display:none;
}
So when you remove that file #url-rewriting-warning will be displayed.
Cheers,
Fredrik

Bugzilla Testopia Installation in Ubuntu

I have installed bugzilla and testopia on ubuntu but i am not able to open bugzilla GUI.
After running ./checksetup.pl the message i get is
""Now that you have installed Bugzilla, you should visit the 'Parameters'page (linked in the footer of the Administrator account) to ensure it is set upas you wish - this includes setting the 'urlbase'option to the correct URL.""
When i try to open it from browser ,i get the coding page but not the GUI of bugzilla.
Please help.
Regards,
Ruchi
You have to fix your webserver settings,
If you use Apache2, add the following settings to the /etc/apache2/httpd.conf file, by default it is an empty file.
Alias /bugzilla/ /var/www/bugzilla/
<Directory /var/www/bugzilla>
AddHandler cgi-script .cgi .pl
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
Dont forget to save the configuration!
ctrl + o
Then exit:
ctrl + x
Finaly restart the Apache2 webserver
sudo /etc/init.d/apache2 restart
It should work now :)

Resources