Skip to content

Commit f75eb15

Browse files
Update configure.sh file to configure apache server
- To add configuration realted to mod_python in apache in Problem Solving Lab
1 parent 0c5eeec commit f75eb15

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

scripts/configure.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
cat configuration >> /etc/apache2/sites-available/default
1+
sed -i '/<\/VirtualHost>/i \
2+
<Directory /var/www/html> \
3+
AddHandler mod_python .py \
4+
PythonHandler mod_python.publisher \
5+
PythonDebug On \
6+
</Directory>
7+
' /etc/apache2/sites-available/default.conf
8+

scripts/labspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"arch": "i386",
110110
"hosting": "dedicated",
111111
"installer": ["sudo apt-get update",
112-
"sudo apt-get install -y php5 apache2 gcc g++ libapache2-mod-python",
112+
"sudo apt-get install -y php5 apache2 gcc g++ libapache2-mod-python libapache2-mod-wsgi",
113113
"sh configure.sh",
114114
"service apache2 restart"
115115
],

0 commit comments

Comments
 (0)