Welcome Guest, Not a member yet? Register   Sign In
Fresh install won't run
#1

(This post was last modified: 07-07-2024, 11:45 PM by bogus.)

Hey guys,

I did a fresh CI4 installation with composer.
Apache up and running, tested all locations and the return of index pages.
However, the CI index gives me:

Code:
systemDirectory . '/Boot.php'; exit(CodeIgniter\Boot::bootWeb($paths));


in the upper left corner on a blank screen.
What's going on?

Regards
Gee

PS: using 'php spark serve' returns the index perfectly
The only absolute knowledge attainable by man is that life is meaningless. (Tolstoi)
Reply
#2

Show log in writable/logs?
And paste screenshot with error
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#3

(This post was last modified: 07-09-2024, 12:34 AM by bogus.)

hello

while 'Super Moderator' sounds nice, your last comment wasn't really helpful and only out of frustration I clicked the solved button...

What do you suppose to see in the directory/file you mentioned after a virgin install, hmm?
It's empty.

Like I wrote in my initial post, the Apache server is doing a perfect job and the problem seems to be with the CI framework or it's configuration respectively.
I also doubt, that someone who wrote the installation documentation tried out to run all the recommended steps in the recommended order and got it all working immediately.
I strongly believe this needs improvement, otherwise my CI version would work right (since I'm not a totally dummy) now and I didn't need to bother you folks with my.
People are always biased. People who develop a project like this or people who deal with it on a daily basis don't need a 'hints section' where problematic scenarios and pitfalls are treated.
Other like me who just once in a blue moon nail together a website do.
Today I prefer playing trumpet, enjoy the nature or work out instead of sitting in front of a computer screen all day long staring codes.
So it couldn't harm to have something like this for less involved people like me, could it?

Back to topic.

So, the very cryptic message looks to me like it is describing a path problem.
Perhaps even one configured in the Apache server.

My /etc/hosts has an entry like:

Code:
127.0.0.1 myserver.local

I'm working in a local environment with vhosts (which, once again, works fine - so spare me questions and the work to post my configs).

The /app/Config/App.php looks like this of course:

Code:
public string $baseURL = 'http://myserver.local/';

Hope that this information helps to get closer to the core of my problem.
I don't have any further idea where the problem could be.

Regards
Gee
The only absolute knowledge attainable by man is that life is meaningless. (Tolstoi)
Reply
#4

You think too much of yourself.
I have already installed a copy from Git more than 100 times and there are no problems.
Not taking into account the .htaccess setting on shared hosting.
I also have hosts and vhost configuration.
In the logs file, I expected to see why the PHP file is not being read and not executed.
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply
#5

(This post was last modified: 07-09-2024, 07:34 AM by bogus.)

(07-09-2024, 03:58 AM)ozornick Wrote: You think too much of yourself.
I have already installed a copy from Git more than 100 times and there are no problems.
Not taking into account the .htaccess setting on shared hosting.
I also have hosts and vhost configuration.
In the logs file, I expected to see why the PHP file is not being read and not executed.

hey 'super moderator'...
of course I think about myself a lot...
in fact it is absolute vital to do so, don't you think so?

there are no problems you say.
I don't use .htaccess files and my 'main' Apache configuration file says something like:

Code:
<Files ".ht*">
    Require all denied
</Files>


does it get me closer to solve the issue?
The only absolute knowledge attainable by man is that life is meaningless. (Tolstoi)
Reply
#6

Did you try to install a second copy of codeigniter in a different folder to see if you get the same result?
Reading all this (except the dogfight) I suspect a problem with your apache installation is causing the problem.
Like Ozornick, I have installed CI4 multiple times on my WAMP environment without any issues.
Also, try a phpinfo() file in the public folder of your CI installation to see if that gives you any errors.
Reply
#7

(This post was last modified: 07-09-2024, 09:39 AM by captain-sensible.)

you dont need to touch .htaccess files

httpd.conf yeah below i have also
[CODE}
<Files ".ht*">
Require all denied
</Files>

[/CODE]

for a web app directory containing CI4 called "prophet" inside /srv/http apache running Arch Linux i have
Code:
<VirtualHost 127.0.0.10:80>
    ServerAdmin webmaster@joesoapdev
    DocumentRoot "/srv/http/prophet/public"
    ServerName prophet
    ServerAlias prophet
    ErrorLog "/var/log/httpd/prophet-error_log"
    CustomLog "/var/log/httpd/prophet-access_log" common

    <Directory "/srv/http/prophet/public">
       Order allow,deny
    Allow from All
    AllowOverride All
    Require all granted
    </Directory>
</VirtualHost>


are you running apache on Linux ?


the httpd.conf might be diffferent between linux distro.

I have in httpd.conf



Code:
<IfModule dir_module>
    DirectoryIndex index.html index.php
# i added index.php to above
</IfModule>
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Include conf/vhosts/prophet

my vhost files go in :


Code:
/etc/httpd/conf/vhosts


my apache error logs are at :
Code:
/var/log/httpd

if you have set up where error for individual web go like above for my vhost then have a gander also at apache error log maybe
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply
#8

(This post was last modified: 07-10-2024, 12:46 AM by bogus.)

Look guys...
I really appreciate your attention and participation.
I find in it partially even amusing.

However, like I explained in the beginning - the webserver is just running fine.
I tested it extensively and it is returning index pages from where ever I want it to return them from on my local system.
Did I forget to mention, that I'm running CI on a local system - not on a remote server?
And of course I'm using Linux...
Arch Linux to be precise.

The returned message suggests, that the index.php script is accessed and its function(s) called so the webserver does it's job.
That's, in my opinion, just common sense.

I rather suppose that a path isn't configured correctly as the cryptic message says.
Most likely in the /conf/App.php file or something...

I'm just to lazy to go through all the files to find the needle in the haystack.
I was just hoping that someone from the developer team could help and explain to me what the message's meaning is.
I mean... I will not be the only one who gets it right?

PS: the phpinfo check is a good one. which part of it do you like to see?
The only absolute knowledge attainable by man is that life is meaningless. (Tolstoi)
Reply
#9

(This post was last modified: 07-10-2024, 06:10 PM by kenjis.)

Can you show the output of the following command?

$ php spark config:check App

Then, if you have something wrong with app/Config/App.php, someone may tell it.
Reply
#10

(This post was last modified: 07-10-2024, 01:54 AM by ozornick. Edit Reason: Reformat code )

Code:
CodeIgniter v4.5.3 Command Line Tool - Server Time: 2024-07-10 08:13:52 UTC+00:00

Config\App#17 (13) (
    public 'baseURL' -> string (22) "http://myserver.local/"
    public 'allowedHostnames' -> array (0) []
    public 'indexPage' -> string (0) ""
    public 'uriProtocol' -> string (11) "REQUEST_URI"
    public 'permittedURIChars' -> string (14) "a-z 0-9~%.:_\-"
    public 'defaultLocale' -> string (2) "en"
    public 'negotiateLocale' -> boolean false
    public 'supportedLocales' -> array (1) [
        0 => string (2) "en"
    ]
    public 'appTimezone' -> string (3) "UTC"
    public 'charset' -> string (5) "UTF-8"
    public 'forceGlobalSecureRequests' -> boolean false
    public 'proxyIPs' -> array (0) []
    public 'CSPEnabled' -> boolean false
)

Config Caching: Disabled
Reply




Theme © iAndrew 2016 - Forum software by © MyBB