Skip to content

Commit

Permalink
Update configure.sh file to configure apache server
Browse files Browse the repository at this point in the history
- To add configuration realted to mod_python in apache in
Problem Solving Lab
  • Loading branch information
khushpreet-kaur committed Feb 2, 2016
1 parent 0c5eeec commit f75eb15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion scripts/configure.sh
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
cat configuration >> /etc/apache2/sites-available/default
sed -i '/<\/VirtualHost>/i \
<Directory /var/www/html> \
AddHandler mod_python .py \
PythonHandler mod_python.publisher \
PythonDebug On \
</Directory>
' /etc/apache2/sites-available/default.conf

2 changes: 1 addition & 1 deletion scripts/labspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"arch": "i386",
"hosting": "dedicated",
"installer": ["sudo apt-get update",
"sudo apt-get install -y php5 apache2 gcc g++ libapache2-mod-python",
"sudo apt-get install -y php5 apache2 gcc g++ libapache2-mod-python libapache2-mod-wsgi",
"sh configure.sh",
"service apache2 restart"
],
Expand Down

0 comments on commit f75eb15

Please sign in to comment.