non xampp environment
4 years ago
4 years ago
#1
i am not using xampp. i downloaded apache, php and mysql. I cannot connect to the welcome page. It just gives 404 error. Please help
4 years ago
#2
Hello Ron. Are Os are on?
Is your localhost working properly?
What folder are you storing your Trongate app in?
Dan
Is your localhost working properly?
What folder are you storing your Trongate app in?
Dan
4 years ago
#3
Hi Dan, sorry accidentally clicked the resolved bar.
Can the green tick(resolved) be undone?
I am using Windows 10
My file is C:/Apache24/htdocs
The server is on, tested it
I can only reach the welcome page by
define('BASE_URL', 'http://localhost/routing_demo/public');
and on the browser http://localhost/routing_demo/public
i am sure that is not right
Can the green tick(resolved) be undone?
I am using Windows 10
My file is C:/Apache24/htdocs
The server is on, tested it
I can only reach the welcome page by
define('BASE_URL', 'http://localhost/routing_demo/public');
and on the browser http://localhost/routing_demo/public
i am sure that is not right
4 years ago
#4
Hello Ron,
You can change the resolve to the correct answer later.
Can you post your whole config file.
Dan
You can change the resolve to the correct answer later.
Can you post your whole config file.
Dan
4 years ago
#5
define('BASE_URL', 'http://localhost/routing_demo/');
define('ENV', 'dev');
define('DEFAULT_MODULE', 'welcome');
define('DEFAULT_CONTROLLER', 'Welcome');
define('DEFAULT_METHOD', 'index');
define('MODULE_ASSETS_TRIGGER', '_module');
it seems to work if I put public at the end of ...demo/
define('ENV', 'dev');
define('DEFAULT_MODULE', 'welcome');
define('DEFAULT_CONTROLLER', 'Welcome');
define('DEFAULT_METHOD', 'index');
define('MODULE_ASSETS_TRIGGER', '_module');
it seems to work if I put public at the end of ...demo/
4 years ago
#6
Can you post your Welcome.php controller file
4 years ago
#7
Hi Ron,
I'm thinking it's a problem with your Apache setup not reading the .htaccess file.
I'm thinking it's a problem with your Apache setup not reading the .htaccess file.
4 years ago
#8
4 years ago
#9
I think Dafa is right. I am on a Mac. Dafa is on windows. He can help you figure it out
4 years ago
#10
Hi Ron,
If I'm right, you will need to do the following to enable mod_rewrite in Apache.
Find and open in your favourite editor > httpd.conf in your installed Apache folder, should reside in the conf folder
Search for 'rewrite' or scroll down, mine was on line 163, but yours may differ:
Change from this
to this
Restart your Apache server and in your app, edit your BASE_URL in config.php to read:
then in your browser enter:
And all things going well ? it should work fine ?
ps.
since you have installed your stack manually, you may want to enable the GD extension in PHP too, as the picture uploader needs this to be loaded to work. Let me know if you need help with that too.
If I'm right, you will need to do the following to enable mod_rewrite in Apache.
Find and open in your favourite editor > httpd.conf in your installed Apache folder, should reside in the conf folder
Search for 'rewrite' or scroll down, mine was on line 163, but yours may differ:
Change from this
to this
Restart your Apache server and in your app, edit your BASE_URL in config.php to read:
then in your browser enter:
And all things going well ? it should work fine ?
ps.
since you have installed your stack manually, you may want to enable the GD extension in PHP too, as the picture uploader needs this to be loaded to work. Let me know if you need help with that too.