Welcome Guest, Not a member yet? Register   Sign In
What is causing PHP Spark errors?
#2

(This post was last modified: 04-19-2023, 10:29 AM by captain-sensible. Edit Reason: additional )

well hello from another Linux user ; i'm on Arch maybe we should have a place in the lounge called something like gnu/Linux CI4 developers ?

I'm on Arch by the way (in joke) thing is there is basically a choice with Linux go for Apache web server that is "installed" on your OS and therefore references your OS installed stuff and config. For instance at /etc/php i have a file php.ini in that file I removed the ";" from :
Code:
extension=curl
extension=intl
extension=pdo_sqlite


Now with xampp its not installed as such but is a system of its own with "embedded stuff" which usually gets put at /opt which is your case. So if you were to
do an edit of php.ini at /etc/php/php.ini it would have no effect because xampp doesn't reference that. So you have to look in /opt to find equivalent

Can you clarify what you are using spark for ? not to fire up Ci4 i guess but to run checks like :

$ php spark namespaces

personally i would try and get apache going on your tumbleweed - its rolling release yes?



you can actually develop CI4 to quite an extent with Linux by just having a CI4 direvtory on your Desktop. For database you can use sqlite (serverless) and fire up Ci4 via spark


Also if you develop on your Desktop of normal user you won't get ; that anoying permissions in not being able to edit code. Thats because apache is in the root system; i have got around that if you go down the root of developing in apache

basically by web apps with Arch are at : /srv/http eg /srv/http/kursaal2.org what is wanted is that apache runs with no hitches but that when logged in as a normal user, you can edit code. First step is to go to /etc/httpd/ and look at the fiel httpd.conf in mine it has:

Code:
User http
Group http

what i did is add myself to the group http, then for the web app kursall2.org recursively chown eg

chown kursaal2.org andrew: httpd -R

then chmod , you can do something like:


Code:
find . -type d  | xargs chmod 775
find . -type f  | xargs chmod 664

if you look at a live web server files normally 664 and directories 775 . the only ones that need 777 are writable ans sub directories
CMS CI4     I use Arch Linux by the way 

Reply


Messages In This Thread
RE: What is causing PHP Spark errors? - by captain-sensible - 04-19-2023, 10:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB