![]() |
Blank Page After Installing On Mac - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Blank Page After Installing On Mac (/showthread.php?tid=88764) Pages:
1
2
|
RE: Blank Page After Installing On Mac - demyr - 11-03-2023 (11-03-2023, 03:05 AM)kenjis Wrote: @demyr Use base_url() like base_url('images/icons/edit.png'). It doesn't work @kenjis , that's the problem. And if I change the base_url to my project folder from localhost:8080 then it gives Error Class "Locale" not found error like you mentioned today. I don't know how to solve it, either. Nothing worked. How can I use my base url like I can do on Windows (http://localhost/Demyr/my-project/) on Mac? If I can do this, I believe that could solve everything. Lastly, I don't want to work as an unseen way on homebrew. I want to go to that folder, edit the file etc. I mean with a GUI. That's why I keep using Xampp. RE: Blank Page After Installing On Mac - kenjis - 11-03-2023 Then, use MAMP. https://www.mamp.info/en/downloads/ It includes PHP 7.4.33 and 8.2.0. RE: Blank Page After Installing On Mac - demyr - 11-04-2023 (11-03-2023, 03:29 PM)kenjis Wrote: Then, use MAMP. Well I guess they only care about their pro plan. Because I have already tried it actually and the thing I remember is "try our pro plan" messages everywhere. Anyway, I didn't like the pro plan when I tried it. I am afraid my advice would be not to replace a windows with a macos. Now I understand how user friendly was windows when compared with mac. RE: Blank Page After Installing On Mac - kenjis - 11-04-2023 I don't know why XAMPP for Mac does not provide "intl.so". XAMPP for Windows does. RE: Blank Page After Installing On Mac - captain-sensible - 11-04-2023 [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] RE: Blank Page After Installing On Mac - demyr - 11-05-2023 (11-04-2023, 05:51 AM)captain-sensible Wrote: [quote pid="413664" dateline="1699089963"] [/quote] It's obvious that you love Arch Linux, however the more CLI commands the less preferred way for me ![]() 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! RE: Blank Page After Installing On Mac - demyr - 11-22-2023 Let me write you a more ta ta! way for MacOs and Php/CodeIgniter: After having issues with urls pointing my images etc I had to find a way to make my MacOs read php files. Because, even though I had php that had been set by brew it was impossible to see php content on my Mac. And I found this source and I did most of the things it suggested and I think it helped : disccussions.apple (I backed up some important files first). Later, on my terminal I opened my www directory (which is on path: opt/homebrew/var/www) and started php with this line: php -S localhost:8000 Now, when I visit http://localhost:8000/my_folder it works there and it is much much better than php spark serve. No url confusion, same with your real hosting plan settings and I can also use phpmyadmin now. RE: Blank Page After Installing On Mac - InsiteFX - 11-22-2023 This is how I use VHOSTS with XAMPP: Code: #-------------------------------------------------------------- |