#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
#2
Hello Ron. Are Os are on?
Is your localhost working properly?
What folder are you storing your Trongate app in?

Dan
#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
#4
Hello Ron,
You can change the resolve to the correct answer later.
Can you post your whole config file.

Dan
#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/
#6
Can you post your Welcome.php controller file
#7
Hi Ron,

I'm thinking it's a problem with your Apache setup not reading the .htaccess file.
#8
#9
I think Dafa is right. I am on a Mac. Dafa is on windows. He can help you figure it out
#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.