Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow

StackOverflow Logo StackOverflow Logo

StackOverflow Navigation

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Add group
  • Feed
  • User Profile
  • Communities
  • Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
Home/ Questions/Q 534
Next

StackOverflow Latest Questions

Saralyn
  • 0
  • 0
SaralynBegginer
Asked: February 13, 20252025-02-13T21:03:43+00:00 2025-02-13T21:03:43+00:00In: PHP

php – Apache in macOS Sequoia with Apple Silicon

  • 0
  • 0
php – Apache in macOS Sequoia with Apple Silicon

I am trying to run some PHP course projects in my Mac.

I used XAMP, Homebrew, PHP local server, Docker and I keep getting 403 forbidden errors, I tried to mess with some file permissions but now in Homebrew httpd has some bootstrap errors, and some other errors, the thing is: it’s not working.

My question is: what’s the way that people use to develop in this mac environment to run PHP, Apache, MySQL/MariaDB, Composer. I can’t find a course to cover all these, just parts of them.

edit :

So, I redid everything more carefully.
I managed to get same error, I don’t know how (I managed to solve it).

  • brew services start httpd
    Bootstrap failed: 5: Input/output error Try re-running the command as root for richer errors. Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/username/Library/LaunchAgents/homebrew.mxcl.httpd.plist exited with 5.

  • httpd -t
    AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using username-macbook-air.local. Set the ‘ServerName’ directive globally to suppress this message Syntax OK

  • Here I changed my servername to localhost and errors are gone (httpd.conf)
    => environment : httpd in homebrew
    Now localhost is accessing my document root directory with the projects in it, it’s working (to access localhost, it sees all folders/files), but I tried to create a .htaccess file to redirect every request to index.php and is not working
    error log is showing (/opt/homebrew/var/log/httpd/error_log) : AH01630: client denied by server configuration: /Users/username/Code/.htaccess

  • document root has allowoverride all and require all granted

  • httpd.conf : User username / Group staff (Here I didn’t do anything more than just changing the names of user and group in that file, I don’t know if I should add some Linux command to create the group or something)

  • I added these commands :

    • sudo chmod -R 755 /Users/username/Code
    • sudo chown -R $(whoami):staff /Users/username/Code
  • LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so is uncommented
    => Error still exists, so the problem is that the htaccess file isn’t working
    => LATER EDIT : adding this as htaccess makes it work, I don’t understand how but..
    DirectoryIndex index.php

    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]

    RewriteRule . index.php [L]

=> something is off, I created a new virtualhost with directory at : /Users/user/Code/php/course/course-name/ at phpmvc.localhost and if I access it, it’s accessing my /Users/user/Code folder, not the course-name folder.

ps aux | grep httpd shows my username multiple times and root one time with this at the end : /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUND ls -l (in projects folder) has my username (group staff) with drwxr-xr-x on folders and -rwxr-xr-x@ on files

0
  • 0 0 Answers
  • 86 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • Popular
  • Answers
  • W3spoint99

    What is Physics? Definition, History, Importance, Scope (Class 11)

    • 1 Answer
  • W3spoint99

    The Living World – Introduction, Classification, Characteristics, FAQs (Class 11 ...

    • 1 Answer
  • W3spoint99

    Explain - Biological Classification (Class 11 - Biology)

    • 1 Answer
  • Saralyn
    Saralyn added an answer When Humans look at their childhood pictures, the first thing… January 17, 2025 at 3:25 pm
  • Saralyn
    Saralyn added an answer Previously, length was measured using units such as the length… January 17, 2025 at 3:25 pm
  • Saralyn
    Saralyn added an answer Measurement forms the fundamental principle to various other branches of… January 17, 2025 at 3:25 pm

Related Questions

  • Reading fancy apostrophe PHP [duplicate]

    • 0 Answers
  • Unable to send mail via PHPMailer [SMTP->Error: Password not accepted ...

    • 0 Answers
  • Concerns when migrating from PHP 5.6 to 8.4 [closed]

    • 0 Answers
  • Laravel Auth::attempt() error: "Unknown column 'password'" when using a custom ...

    • 0 Answers
  • Core PHP cURL - header origin pass null value

    • 0 Answers

Trending Tags

biology class 11 forces how physics relates to other sciences interdisciplinary science learn mathematics math sets tutorial null sets physics physics and astronomy physics and biology physics and chemistry physics applications science science connections science education sets in mathematics set theory basics types of sets types of sets explained

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

  • About US
  • Privacy Policy
  • Questions
  • Recent Questions
  • Web Stories

© 2025 WikiQuora.Com. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.