Project

General

Profile

Bug #7918

creation of courses not working 1.10

Added by Scott Steven almost 4 years ago. Updated over 3 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Installation / Migration
Target version:
Start date:
27/10/2015
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

I have got the new system on my server installed clean new database all not an upgrade

Server OS is Yosemite Server
Apache 2.4 mod_rewrite is available and working
PHP 5.5.29

when I create a course if shows up in /app/courses with its sub folders there is no index.php that shows up

from admin I create a course via this URL
http://mydomain.com/main/admin/course_add.php
I can not navigate to the course I get the following

Not Found

The requested URL /courses/FIRSTMODULE/index.php was not found on this server.

Apache Server at devcampus.macclick.com Port 80

If I create a course from my admin profile the URL to create the course is as follows
http://mydomain.com/main/create_course/add_course.php

It creates the course and sends me to a limited area to add some things to the course.

I try and navigate to the course again and I get the following again something is broken

Not Found

The requested URL /courses/TRYADDBUTTON/index.php was not found on this server.

Apache Server at devcampus.macclick.com Port 80

History

#1

Updated by Julio Montoya almost 4 years ago

Check that the folder /courses/ doesn't exists, only app/courses should exist.
Check also that your Apache server also reads the .htacces located in the root.

#2

Updated by Scott Steven almost 4 years ago

I have checked that mod rewrite is working so that is fine.
only app/courses exists

I have tried both using the htaccess and the modifying the virtual host conf neither one of these methods you document are working.
I can not create courses and then access them .

#3

Updated by Scott Steven almost 4 years ago

I found the issue. You can't use stock Apace instructions on OS X Server. Apple overrides the stock apache location for the virtual hosts.
Issue resolved. We should have a knowledge base somewhere. for how I I will make a post on the Forums for those running OS X Servers.
Actually its very straight forward and is safer the way apple does it rather than apache.

#4

Updated by Yannick Warnier almost 4 years ago

Hi Scott, could you share your solution here so we can update the install guide?

#5

Updated by Yannick Warnier almost 4 years ago

  • Target version set to 1.10.2
#6

Updated by Scott Steven almost 4 years ago

First Apple does not load mod_rwrirte that you need to go to the apache HTTPd.conf adjust it for the server and load it

Then in the advanced settings for the domain in Apples Server app you need to check the box for your domain and allow .htaccess

or

you can find the settings file for you domain in apples settings folder under /Library/Server/Web/Settings and code it in by hand. Both work.

You can not allow .htaccess in the main http.conf file as apple will override it in the settings file for the domain.

#7

Updated by Yannick Warnier over 3 years ago

  • Category set to Installation / Migration
  • Status changed from New to Bug resolved
  • Assignee set to Yannick Warnier
  • % Done changed from 0 to 100

Documentation added to the English installation guide. Thanks Scott!

Also available in: Atom PDF