Welcome Guest, Not a member yet? Register   Sign In
[sysadmin] requirements to set server for codeigniter app
#1

Good days
English is not mi first language so lets say this whit goggle traductor help


I am the sysadmin in a small factory
one of the engineers hired a third party mostly un-experience underpaid bachelors to make a app
works on their test environment windows 8.1 64 whith xamp

Now we must set this app to run in a local virtualmachine whith
Centos 7, apache2, mariadb, php7
i do a clean install for this i create the database, database firewall and permissions are fine
SE disabled for the sake of the tests

we bring the app to the html folder anyway the app is not running
we figth with it all saturday morning but no luck

no they not know why
no i neither knows why

the error is :
https://127.0.0.1/produccion/login

Not Found
The requested URL /produccion/login was not found on this server.

soo i upload their app to a hosting we have in colombiahosting
and the app works there

no they not know why
no i neither knows why

for codeigniter all the knowledge i have come from the tutorials i read this Weekend
the bachelors knows some more but not enough


#####
No i cant le it there in the hosting it must run onsite in the factory
Anyway i think the culprit is the apache2 config, i enabled mod_rewrite and speling_module
but looks like something else is missing

the app was build on codeigniter '3.1.6'
What are the requirements tools or Apache mods needed for this to run ?
Reply
#2

(This post was last modified: 12-11-2017, 02:11 PM by skunkbad.)

Try https://127.0.0.1/index.php/produccion/login and report back.

Also, working on Windows is not OK. The bachelors should be replaced.
Reply
#3

(12-11-2017, 02:08 PM)skunkbad Wrote: Try https://127.0.0.1/index.php/produccion/login and report back.

Also, working on Windows is not OK. The bachelors should be replaced.

As if by magic now works

http://192.168.0.40/produccion/index.php/login

i can get in from the network from any other computer
but then
what did the bachelors wrong ?

is the .htaccess?
/var/www/html/produccion/.htaccess

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteBase /produccion/
RewriteRule ^(.*)$ index.php?/$1 [L]
Reply
#4

(12-12-2017, 09:26 AM)perromercenary00 Wrote:
(12-11-2017, 02:08 PM)skunkbad Wrote: Try https://127.0.0.1/index.php/produccion/login and report back.

Also, working on Windows is not OK. The bachelors should be replaced.

As if by magic now works

http://192.168.0.40/produccion/index.php/login

i can get in from the network from any other computer
but then
what did the bachelors wrong ?

is the .htaccess?
/var/www/html/produccion/.htaccess

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteBase /produccion/
RewriteRule ^(.*)$ index.php?/$1 [L]

https://httpd.apache.org/docs/2.4/howto/...oubleshoot

Quote:Most commonly, the problem is that AllowOverride is not set such that your configuration directives are being honored. Make sure that you don't have a AllowOverride None in effect for the file scope in question. A good test for this is to put garbage in your .htaccess file and reload the page. If a server error is not generated, then you almost certainly have AllowOverride None in effect.

If, on the other hand, you are getting server errors when trying to access documents, check your httpd error log. It will likely tell you that the directive used in your .htaccess file is not permitted.
Reply
#5

Yap that is

i do Enable AllowOverride for Apache and now the app is working as intended

Thanks for all.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB