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

(This post was last modified: 07-11-2024, 12:24 PM by captain-sensible. Edit Reason: mistake )

(07-11-2024, 02:14 AM)kenjis Wrote: When you run `php spark serve`, it works perfectly. So there is no problem with CI4.
And you cannot run just a php file with phpinfo() on Apache, it shows there is something wrong with Apache and its PHP configuration.
First of all, you need to configure your Apache server correctly so that it can execute a PHP file.

Can you show the Apache configuration for the virtual domain?

> First I was worried that I didn't load the php module but it is compiled in today, isn't it?

Unfortunately I cannot see your screen or Apache config files. So I don't know.


well using lateral thinking , i am running apache web server on Arch Linux. My codeigniter apps run no problem, so i might be so bold as to validate that there is nothing wrong with CI4. I did have a look at the new vesion of composer.json i can hardly recognise it compared as to what I have . By the way I have a book out on Amazon which in a chapter gets a reader with setting up CI4 in apache on Arch Linux

there are more than one approach to configure Apache web server on Arch Linux but here are the main bits from my /etc/httpd/conf/httpd.conf file

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

LoadModule rewrite_module modules/mod_rewrite.so

LoadModule php_module modules/libphp.so
AddHandler php-script .php


Include conf/extra/httpd-vhosts.conf
Include conf/extra/php_module.conf
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
Fresh install won't run - by bogus - 07-07-2024, 11:36 PM
RE: Fresh install won't run - by ozornick - 07-08-2024, 03:14 AM
RE: Fresh install won't run - by bogus - 07-09-2024, 12:25 AM
RE: Fresh install won't run - by ozornick - 07-12-2024, 01:08 AM
RE: Fresh install won't run - by ozornick - 07-09-2024, 03:58 AM
RE: Fresh install won't run - by bogus - 07-09-2024, 07:34 AM
RE: Fresh install won't run - by JustJohnQ - 07-09-2024, 08:44 AM
RE: Fresh install won't run - by captain-sensible - 07-09-2024, 09:28 AM
RE: Fresh install won't run - by bogus - 07-10-2024, 12:31 AM
RE: Fresh install won't run - by kenjis - 07-10-2024, 01:04 AM
RE: Fresh install won't run - by bogus - 07-10-2024, 01:17 AM
RE: Fresh install won't run - by kenjis - 07-10-2024, 02:08 AM
RE: Fresh install won't run - by bogus - 07-10-2024, 04:21 AM
RE: Fresh install won't run - by kenjis - 07-10-2024, 04:32 AM
RE: Fresh install won't run - by bogus - 07-10-2024, 04:59 AM
RE: Fresh install won't run - by bogus - 07-10-2024, 12:06 PM
RE: Fresh install won't run - by kenjis - 07-10-2024, 06:06 PM
RE: Fresh install won't run - by bogus - 07-11-2024, 01:14 AM
RE: Fresh install won't run - by ozornick - 07-11-2024, 01:22 AM
RE: Fresh install won't run - by kenjis - 07-11-2024, 01:29 AM
RE: Fresh install won't run - by bogus - 07-11-2024, 01:50 AM
RE: Fresh install won't run - by kenjis - 07-11-2024, 02:14 AM
RE: Fresh install won't run - by captain-sensible - 07-11-2024, 12:06 PM
RE: Fresh install won't run - by bogus - 07-11-2024, 03:20 AM
RE: Fresh install won't run - by bogus - 07-11-2024, 10:23 AM
RE: Fresh install won't run - by bogus - 07-11-2024, 11:41 PM
RE: Fresh install won't run - by kenjis - 07-12-2024, 01:23 AM
RE: Fresh install won't run - by captain-sensible - 07-12-2024, 02:03 AM
RE: Fresh install won't run - by kenjis - 07-12-2024, 02:23 AM
RE: Fresh install won't run - by captain-sensible - 07-12-2024, 02:58 AM
RE: Fresh install won't run - by InsiteFX - 07-12-2024, 02:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB