#1
When opening, http://127.0.0.1/family_store/, get a directory page of folders in family_store..
// config.php
define('BASE_URL', 'http://localhost/family_store/');
define('ENV', 'dev');
define('DEFAULT_MODULE', 'welcome');
define('DEFAULT_CONTROLLER', 'Welcome');
define('DEFAULT_METHOD', 'index');
define('MODULE_ASSETS_TRIGGER', '_module');
//
reply:
System76 Oryx Pro (laptop) OS = Pop!_OS (Ubuntu 22.04 customized)
xampp-linux-x64-8.2.4-0
Downloaded Trongate from GitHub
exacted zip file to folder, copied files inside and pasted in htdocs/family_store
then, update config.php to the about info
#2
G'day, It looks to me that you haven't set up your webserver correctly. Trongate is designed to use Apache out of the box, not Nginx and if you are using Apache, then you need to enable mod_rewrite. I suggest you use a web stack such as Xampp, which has all this setup for you.

So we can help further, can you please tell us what OS you are using and what web stack you have installed?
#3
reply:
System76 Oryx Pro (laptop) OS = Pop!_OS (Ubuntu 22.04 customized)
xampp-linux-x64-8.2.4-0
Downloaded Trongate from GitHub
exacted zip file to folder, copied files inside and pasted in htdocs/family_store
then, update config.php to the about info

reply:
xampp httpd.conf files:
rlh/opt/lampp/apache2/conf/httpd.conf
Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"


Options Indexes FollowSymLinks
AllowOverride All
Order allow, denied
Allow from All

----------------------------------------
rlh/opt/lampp/etc/httpd.conf


AllowOverride All
Require all denied

and
LoadModule rewrite_module modules/mod_rewrite.so
#4
Well at least we have established you have Apache running with your Xampp install.

There is nothing wrong with the Trongate install, it is your setup.

Can you determine if mod_rewrite is enabled?
#5
reply:
xampp httpd.conf files:
rlh/opt/lampp/apache2/conf/httpd.conf
Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"


Options Indexes FollowSymLinks
AllowOverride All
Order allow, denied
Allow from All

----------------------------------------
rlh/opt/lampp/etc/httpd.conf


AllowOverride All
Require all denied

and
LoadModule rewrite_module modules/mod_rewrite.so is not commented
#6
Ok, let's review your responses:
- You own a System76 Oryx Pro which comes preinstalled with POP!_OS (Ubuntu 22.04 customized) < nice laptop btw ?
- You have also installed Xampp-Linux-x64-8.2.4-0

Can I ask how would you rate your level of knowledge with Linux and more importantly POP!_OS? As this isn't an entry-level distro. Also to note, I'm on Windows 11, and not a Linux user so others reading this please step in if you can add to the conversation or offer a solution.

Your opening issue is when you installed Trongate from a zip file from GitHub and go to the default URL of your app you get a list of directories and not the usual 'Welcome' page.
To clarify:
- when you first went to http://localhost/family_store/ did you see the blue screen "SQL FILES FOUND" pop up or the list of files of your app?
Like this:

- If you did see the SQL prompt screen, did you manually create your database and set up the database.php in the 'config' folder of your app and execute the SQL as displayed?

In your last reply (btw - you don't need to paste repeated replies in previous posts) we determined you have Apache as your web server and you have checked your httpd.conf to see if mod_rewrite is enabled and other option directives.

Let's compare my *working* settings with yours:
I don't use any of that alias BS




Can you please stop your server, then try the same settings I have above and restart the server?

If this doesn't work for you - have you explored the permissions set in "/opt/lampp/apache2/htdocs/"?

You might need to ensure that the appropriate permissions are set for your Xampp web stack installation and the directories/files you're working with.

1: Xampp Installation Directory:
Make sure that the directory where Xampp is installed has proper permissions. You can use the chmod command to set permissions. For example:

2: Web Root Directory:
The directory where your web files are located should also have proper permissions. You can again use the chmod command:

3: .htaccess File:
This is the important bit - for the .htaccess file for URL rewriting, make sure the permissions are set correctly for this file. You can set it to something like:

4: PHP Files:
PHP files should typically have more restrictive permissions, like 644 for files and 755 for directories:

5: Ownership:
Ensure that the files and directories are owned by the correct user and group. The user should typically be the one running the Apache server (often www-data or httpd), and the group should be the same as the user's group.


Please let me know if any of the above helped.

Cheers,
Simon
#7
Howdy DaFa,
Thank you for your time, I have given up with having Trongate run on this Pop!_OS and laptop. Have tried all your notes, suggestion, and still no success. I have also contacted System76 for assistance (no reply yet). I have tailored so many files, that the best thing to do was do a fresh install last and that's on me, did not keep a note page of files changed, feel so dumb about that. I have now installed Apache2, Mysql-Server, and PhpMyAdmin from terminal. My other websites created work just fine but Trongate will not run correctly. When reading your notes today, I stopped Apache2 and MySql. Installed Xampp, made the changes per your notes and got this same issue, When localhost/family_store, the file directory loads, I can move to modules/welcome/views/welcome.php, I get no css and no errors. Again, thank you for your time.
#8
Hi rlhopkins660,

That sounds very frustrating and I'm sorry my suggestions have not solved your issue. Don't feel too bad and there is no blame on your efforts. Have you used Docker at all? I'm wondering if you try a web stack like 'http://devilbox.org/' which I know works well with Trongate. That way it doesn't matter what OS you have you can run an environment that is guaranteed to work and on the plus side, you can swap to different versions of any combination.

Cheers,
Simon

Ps. I notice there's a Raspberry Pi version of popos - I've downloaded it and will try it out to see if I get the same results as you.

I'll be back!
#9
I'm back! And I think I have found your solution :)

I ended up installing Pop_OS! onto an SD card and booted it up on my Raspberry Pi - I'm typing this post from it :) Yes, I know it's not the same as your super-duper System 76 laptop but my thoughts were that the OS would be the same as yours.

After updating all components I installed a LAMP stack via the command line as Xampp is not available for the Raspberry Pi:

Side note:- Trongate requires PHP modules 'gd' and 'intl' to be enabled to use the picture uploader and url-string methods. This command will list all loaded PHP modules, and you should see pdo_mysql, gd and intl all listed for Trongate to work correctly.


I then tested the web server by installing a new Trongate app from GitHub. And as I thought by default 'mod_rewrite' wasn't enable and I am now seeing as you did, a file list of the Trongate app in the browser :(

As my Apache2 install had a different structure than yours:

I had to enabled 'mod_rewrite' with this command:

You, however, would just remove the comment '#' in apache2.conf

I then restarted the Apache server with this command:

And to check 'mod_rewrite' was enabled:

You should see this response:

I then tried the Trongate app again in the browser and I was still getting the file list :(

And finally - this is was what made it work for me (and I hope for you):

Add this to your apache2.conf file by changing the full path that matches your document root folder - yours would be "/opt/lampp/apache2/htdocs/" - mine was "/var/www/html":

I then restarted the Apache server - AGAIN:

Refreshed the Trongate app in the browser and IT WORKED!

You should now see a blue SQL page - make sure you setup Database.php with your db credentials and create a database before you run it.

You should now be greeted with the "IT TOTALLY WORKS" page!

ENJOY TRONGATE!

Cheers,
Si