Welcome Guest, Not a member yet? Register   Sign In
Deploying Codeigniter 4 Website on LAN server
#11

(07-30-2021, 08:43 AM)captain-sensible Wrote: from what i understand apache2.conf  for ubuntu is the "equivalent" for httpd.conf  which i have on Arch and you have on  Mint

Also on your ubuntu see if you have this file: /etc/apache2/sites-enabled/000-default.conf


One weird thing with Ubuntu is you have to run : sudo a2ensite  <VirtualHostFilename>

Did you have to do that on Mint ?

There are a few tutorials out there for Ubuntu but you should be able to compare apache2.conf settings against httpd.conf settings
since in essence they are the same thing


So you should see something like [in apache2.conf:

Code:
<IfModule dir_module>
    DirectoryIndex index.html index.php
# i added index.php to above
</IfModule>


here i added index.php after index.html
@ captain-sensible, yes i did have to enable the site using 'a2ensite website' and also dissabled the 000-default.conf using 'a2dissite'.

will check on adding index.php after index.html in the apache2.conf.

Question, i do add an 'index.php' file on the root folder of the project on the local box to call index.php on the public folder, i.e
with the following

PHP Code:
<?php

require_once './public/index.php'
would this be of similar use as in the apache2.conf, since i did that to avoid having to configure httpd.conf and it worked well
Reply




Theme © iAndrew 2016 - Forum software by © MyBB