Welcome Guest, Not a member yet? Register   Sign In
Blank Page After Installing On Mac
#16

(11-04-2023, 05:51 AM)captain-sensible Wrote: [quote pid="413664" dateline="1699089963"]
"  Now I understand how user friendly was windows when compared with mac." 

Linux  is even more friendly and unlike  Windows , friendly developers worldwide contribute  with open source eg to  the AUR in the case of  Arch Linux .

[/quote]
It's obvious that you love Arch Linux, however the more CLI commands the less preferred way for me Smile

Anyway, I solved the problem, let me write for any new mac users:

1- Install brew, you might need it somehow, for php or apache maybe.
2- As far as I know Mac comes with apache, if not install it via brew.
3- I installed mysql via its website, not with brew. Because I can start it as a GUI tool under System Preferences.
4- I installed mysql Workbench to check if my connection is active and it works. (I didn't get a healthy result with terminal checks and I found this solution. It's a GUI way, too)
5- I had problem with phpmyadmin, I couldn't locate it and couldn't visit it on my browser. Whatever I tried didn't work and after trying several other db softwares I found DbGate .
6- I easily connected it to my mysql and imported my sql file. Yes, it looks a bit different from phpmyadmin but they are just tools to view and it solved my problem. Huge thanks.

- Other important parts -

7- Apache on mac works under Library/WebServer/Documents . So I created my folder there , for example with my name: Demyr. And installed my CodeIgniter (I tried composer way first) there.
8- I opened this folder in my terminal and as usual typed php spark serve and clicked enter. It starts as localhost:8080
9- In my first attempts (as you can read under this thread) I had a problem with addressing css and js files. But later I thought I was also typing "public" there... Now I only typed : 

Code:
<link rel="stylesheet" href="assets/css/site.css">

(You can of course use <?php echo base_url(); ?>). You should arrange your js line in the same way.

and ta ta! It worked.

No need xampp or any other LAMP kind server software on mac. Fabulous!
Reply


Messages In This Thread
Blank Page After Installing On Mac - by demyr - 11-02-2023, 03:06 AM
RE: Blank Page After Installing On Mac - by demyr - 11-02-2023, 10:27 AM
RE: Blank Page After Installing On Mac - by demyr - 11-02-2023, 10:21 PM
RE: Blank Page After Installing On Mac - by demyr - 11-03-2023, 02:16 AM
RE: Blank Page After Installing On Mac - by demyr - 11-03-2023, 03:25 AM
RE: Blank Page After Installing On Mac - by demyr - 11-04-2023, 02:26 AM
RE: Blank Page After Installing On Mac - by demyr - 11-05-2023, 12:13 AM
RE: Blank Page After Installing On Mac - by demyr - 11-22-2023, 12:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB