WebFaction
Community site: login faq

Hi,

I'm new and try to get online my existing django project.

I follow this tutorial but when I restart Apache I have some trouble :

httpd.worker: Syntax error on line 3 of /home/yohan8/webapps/yohan_website/apache2/conf/httpd.conf: Cannot load modules/mod_authz_core.so into server: /usr/local/apache2/modules/mod_authz_core.so: cannot open shared object file: No such file or directory

Here you can found my httpd.conf where I changed WSGIDaemonProcess and WSGIScriptAlias and where :

  • djangoapp is "yohan_website"
  • projects is "website_yohan"
  • username is "yohan8"

Here is my manage.py. I'm using python 3.4 with django 1.9

asked 11 Feb '16, 11:23

yohan8
1326
accept rate: 50%

edited 11 Feb '16, 14:30


Hello,

The problem is due to the fact that your httpd.conf contains some non-printing characters on the first line:

cat -vet httpd.conf | head -1
M-oM-;M-?ServerRoot "/home/yohan8/webapps/yohan_website/apache2"$

This is most probably causing the server to not set the ServerRoot directive properly.

You are currently editing the file, so I am hesitant to make any modifications to your Apache config file.

Fixing the first line should resolve the issue though.

permanent link

answered 11 Feb '16, 14:27

dimitari
2215
accept rate: 36%

I had edited my httpd.conf with LibreOffice (default application when you are open a file with Filezilla), that's why I have non-printing characters. Thx it's solved.

permanent link

answered 11 Feb '16, 14:52

yohan8
1326
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×225
×28
×25

question asked: 11 Feb '16, 11:23

question was seen: 2,534 times

last updated: 11 Feb '16, 14:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM