alextselegidis / easyappointments

:date: Easy!Appointments - Self Hosted Appointment Scheduler
https://easyappointments.org
GNU General Public License v3.0
3.25k stars 1.25k forks source link

<basedir>/index.php/backend was not found on this server. #1

Closed idovitz closed 9 years ago

idovitz commented 9 years ago

After install following error:

/index.php/backend was not found on this server. mod_rewrite is installed on debian wheezy apache 2.2 / php 5.4 / mysql 5.5
alextselegidis commented 9 years ago

Any information at the error logs? That seems to be a server configuration issue and other users seem to have similar problems. E!A is using the CodeIgniter URL rewriting method so I would like feedback in order to fix these issues.

bkrajendra commented 9 years ago

I was having similar problem related to URL not being recognised I followed this guide... https://github.com/bcit-ci/CodeIgniter/wiki/Godaddy-Installation-Tips everything started working. Except appointment time problem is still not resolved.

pguridi commented 9 years ago

I can confirm this issue, I followed all the installation steps, and I'm getting the same error. Tried on Ubuntu 14.04 LTS, with Mysql and apache with mod_rewrite enabled. Maybe there is something missing on the installation notes?. On which platform (or with which configuration) is probed to work out of the box?

bkrajendra commented 9 years ago

Its the best appointment management system I've ever seen but URL routing is very poorly handled in this project. Some route work with "/" ( http://domain.com/) at the end of path and some don't. There are some framework like php Laravel5, which handles these issue on different platform very effectively. It'll be nice if this project is ported to Laravel5.

atenhotep commented 9 years ago

I am essentially having the same problem. On my shared hosting, routing to the backend just doesn't work. The changes suggested above on GoDaddy do not help. I'd love to explore this project deeper to see if it works for my purposes, instead of rolling my own, but I can't get it working.

I am also finding myself unable to actually add things to the backend, if explicitly reach the backend by inserting '/index.php?' after the base directory and before the route. I am bummed! It looks like a great project.

Edit: The fix for me was to change the .htaccess. The final rewrite had to change from RewriteRule ^(.*)$ index.php/$1 [L] to RewriteRule ^(.*)$ index.php?/$1 [L] Note the addition of the '?' after the 'index.php'. This seemed to allow my RESTful calls to work too, and I am saving data to the databse. I am now looking forward to exploring this more.

Thanks for creating it.

bkrajendra commented 9 years ago

@atenhotep , if you are using code from this github repo, you might face many issues. As per the author of this code use release from the site only. Github repo is not stable and might lead to many problem.

The suggestion to author will be to follow single method or rule for routes. Decide whether to add "/" after base url, as if you're adding it you have to take care that it should not get added latter in any url. Also always use internal codeigniter methods to get base URL, instead of telling user to enter it. I hope I'm right!!!

At my side everything is working fine, as I've removed or added few "/" in Ajax JS files. I'll suggest you all to check ur Chrome console for more info to solve routing issue on this repo.

calvinlloyd commented 9 years ago

@bkrajendra can you share any more insight on how you fixed this routing issue?...maybe specific places where you added the /'s

Or can you share the final ajax js files?

alextselegidis commented 9 years ago

Hello, I am currently switching the urls to work without the mod_rerwite. You can get the code from here (github) and try it.

Could be very unstable though, but you will not have the routing problems. Stay tuned for more new commits and updates.

atenhotep commented 9 years ago

Thanks for keeping me in the loop. I've been busy with other things, but will be checking it out soon.

In Gratitude,

iam (ishmael aylwin mc intosh)

On 2015-06-25 13:57, Alex Tselegidis wrote:

Closed #1 [1].

Reply to this email directly or view it on GitHub [2].

Links:

[1] https://github.com/alextselegidis/easyappointments/issues/1 [2] https://github.com/alextselegidis/easyappointments/issues/1#event-340391123

atenhotep commented 9 years ago

I had problems similar to the people reporting issues about clicking on install being a noop. I was using a clone of the HEAD of the repo.

I will have to look into this more later. I did notice that it didn't seem like I was picking up the CSS correctly, because the form looked a mess.

None of the issues that people reported as fixing this issue for them worked for me, but I have done no digging into my actual installation as yet.

Thanks Again! I'd love to get it working, although my immediate use for it has been resolved.

In Gratitude,

iam (ishmael aylwin mc intosh)

On 2015-06-25 13:57, Alex Tselegidis wrote:

Closed #1 [1].

Reply to this email directly or view it on GitHub [2].

Links:

[1] https://github.com/alextselegidis/easyappointments/issues/1 [2] https://github.com/alextselegidis/easyappointments/issues/1#event-340391123