Giter Site home page Giter Site logo

Comments (12)

amitommishra avatar amitommishra commented on September 28, 2024

+1 .. Same here..

from hotelmanagement.

tugbadogan avatar tugbadogan commented on September 28, 2024

Have you setup apache server ?
Then, you should edit following file's 17th line. Change it to your hostname (http://localhost/ if you are installing your local machine)
https://github.com/tugbadogan/hotelmanagement/blob/master/application/config/config.php

from hotelmanagement.

amitommishra avatar amitommishra commented on September 28, 2024

I was trying to do it in WAMP server. even i tried changing the config
file.... still no luck :( Can i have your email id where we can chat ?

Thanks and Regards
Amit Om Mishra

On Tue, Dec 30, 2014 at 4:48 PM, tugbadogan [email protected]
wrote:

Have you setup apache server ?
Then, you should edit following file's 17th line. Change it to your
hostname (http://localhost/ if you are installing your local machine)

https://github.com/tugbadogan/hotelmanagement/blob/master/application/config/config.php


Reply to this email directly or view it on GitHub
#1 (comment)
.

from hotelmanagement.

jbiuk avatar jbiuk commented on September 28, 2024

Hi,

something is not working with this app, i invested a lot of effort to make it run but i failed.

I have LAMP server, with FastCgi on it.
Made the changes in config.php and database.php(changed the user/pass parameters).

Seems somethig with login redirection is not working correctly.
Opening url http://localhost/ app redirects me to http://localhost/login but there i get 404.

When i try to open http://localhost/index.php/login page brakes but shows partialy both login and welcome screen.

Hope you can help me out.

Cheers,
Jura

from hotelmanagement.

tugbadogan avatar tugbadogan commented on September 28, 2024

You should edit rewrite rules on your LAMP server @jbiuk

If you use apache server add following lines to your .htaccess file

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

If you're using nginx server add following lines to your configuration file (For example: /etc/nginx/sites-available/yourdomain.com.vhost)

location / {
    # Check if a file exists, or route it to index.php.
    try_files $uri $uri/ /index.php;
}

@amitommishra : If you say the problem like @jbiuk said, I can help you here too

from hotelmanagement.

jbiuk avatar jbiuk commented on September 28, 2024

Thank you for your response!

I created new .htaccess file in my apache root folder "/var/www/.htaccess", and added the rules as you said.
Defined mile.php as my index page in config.php.
Page showed something that was not in order, for "http://192.168.1.5/hotel/mile.php/login"

image

In my consle, on Crome broswer, i got the folowing errors when tried to open the login page:

Failed to load resource: the server responded with a status of 404 (Not Found)
login:278 Uncaught SyntaxError: Unexpected token <
login:328 Uncaught ReferenceError: guidely is not defined

When i open the login file in script for line 277 and 278 i saw this:

    var lineChartData = {
        labels: <? echo json_encode($next_week_freq['dates']);?>,

I am new to javascript so i am unsure if this is correct syntax?

There are many .htaccess files in CI folders, should i change them all?

from hotelmanagement.

amitommishra avatar amitommishra commented on September 28, 2024

@jbiuk That is the problem with php short tags. Please follow below mentioned i got it working after making changes in php.ini however my suggestions would be for keeping future release in mind to use <?php :)

http://stackoverflow.com/questions/12579448/php-short-open-tag-on-not-working

@tugbadogan : Thank you. your comments above did the trick. I got it working till login page :)

from hotelmanagement.

jbiuk avatar jbiuk commented on September 28, 2024

Hi,
thank you guys for your help so far, i got it working till login page :-)

Also i noticed that in code threre should be some users present in hotel.employee table and mine is empty, I guess you need them to login to the page.

So i inserted manualy into hotel.employee table some parameters but still no luck.
Do we have some login credentials hardcoded?

When i try to login in the main page to http://localhost/login instead http://localhost/hotel/login...
App is in /hotel/. In config.php parameters are set correctly.
Why is it still redirecting me to wrong page?

from hotelmanagement.

jbiuk avatar jbiuk commented on September 28, 2024

After consulting with google,I managed to get pass login page,
First i set up the Rules in .htaccess, and added "RewriteBase /",
then changed apache2.conf file to AllowOverride All for my project folder,
Inserted manualy in the database one user and one department:
then did date/timezone setup in php.ini(because page complained about date :)),

INSERT INTO hotel.department SET department_name="test",department_budget=69;
INSERT INTO hotel.employee SET employee_username="aaa",employee_password="123",employee_firstname="test",employee_type="test",employee_lastname="test",employee_telephone=911,employee_email="[email protected]",department_id=1;

After that i managed to login and got blank html page... any suggestions?

from hotelmanagement.

SantiagoSotoC-zz avatar SantiagoSotoC-zz commented on September 28, 2024

i have the next problem :
A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

i'm need your help
tranks sorry for my english

from hotelmanagement.

tugbadogan avatar tugbadogan commented on September 28, 2024

@satiax That problem is related with Codeigniter and your PHP version. You can find discussion about it from following link.
https://ellislab.com/forums/viewthread/244510/

from hotelmanagement.

lucianpp avatar lucianpp commented on September 28, 2024

hi all,
have anyone managed to setup the app?

from hotelmanagement.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.