Apache only runs the index.php of WordPress, and serves static files (images, css, js etc). WP does all the rest, including parsing the request to find out what content to show the user. Apache does not (and needs not) know that there is communication with a data base in PHP, and doesn’t interact with that database itself at any point.
That’s also why you don’t necessarily need Apache in the equation, you could also use nginx or other webservers (as long as they offer a way to run php), or no external webserver at all and just use php’s internal webserver (though that’s mostly for development, idk how well this holds up in production).
Related Posts:
- Is XAMPP faster than running LAMP in WSL on Windows 10? [closed]
- How to edit content in WordPress and the Polylang – plugin? – with demosite
- Windows Setup: Error establishing a database connection
- WAMP SERVER Command Prompt SET PATH=%PATH%
- Undefined function mysql_connect()
- MySQL column count doesn’t match value count at row 1 [closed]
- Undefined function mysql_connect()
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function mysql_connect()
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- Deprecated: mysql_connect()
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- MySQL “Or” Condition
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- How to remove index.php from WordPress site URL
- the_date() not working
- How to return number of found rows from SELECT query
- dbDelta support for FOREIGN KEY
- Transaction when using WP functions rather than vanilla SQL?
- Can i use php sql functions instead of $wpdb?
- is it possible to run some php code within a wordpress page?
- cURL 28 error after switch from to brew php 7.2 on localhost
- How to correctly submit a search form and display the result in an independent page
- Query both first_name and last_name from wp_usermeta at the same time
- Check if post of title already exists
- $wpdb->delete column values IN ARRAY()?
- How to validate WordPress generated password in DB using PHP?
- How to get the list of WooCommerce product image of a certain category from database?
- How to use update and delete query in wordpress
- How to run multiple Async HTTP requests in WordPress?
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- Custom query to get post names beginning with a digit
- WP CLI info showing correct PHP binary but wrong version of PHP
- Does the debug.log do log rotation?
- How to make WordPress plugin check for database changes and then do something?
- Custom SQL query to get List of posts with featured image url
- How To Make Connection To WordPress Data Base In A Plugin?
- How to add query vars with paginated URLs?
- Changing user_nicename
- Does WordPress cache get_user_meta() results?
- WordPress will not operate correctly
- How to Join two tables from separate databases within WordPress
- tag search using WP_Query
- simple wordpress ajax plugin not working when not logged in
- Delete post revisions on post publish
- Jquery ajax to custom php file: returning blank data
- Add value to usermeta without removing previous values?
- Using Echo in ShortCode – Stuck
- Problems migrating WordPress to localhost
- MySQL query performed 4 times inside loop
- Show only one post for each author ( Page loads too slow )
- error importing localhost export file to server
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- How to sort results from a custom database table
- Install will not load: PHP does not have MYSQL installed
- Update some database fields when post is saved
- How can I call a row of user specific data from a custom table added to the WP Database
- Insert post without actions/hooks
- Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- How to merge local and live databases?
- How to track a users progress through pages by inserting data into WordPress Database?
- the_author_meta not working
- Import 10,000 Users into WordPress WITH a specific ID for each user
- Modern Tribe Calendar wp-query with meta query not working at all
- WP database error for comments_popup_link()
- if statement on database query
- Is the regular ajax request method safe or I should use admin-ajax.php?
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- Successful or Error Message after running mysql code in functions.php
- sql query to put quotes around numbers in img tag
- No wp-config.php file on local install of wordpress – site still displays
- Use ajax to update_post_meta
- How to get the post_id from postmeta
- Sortable admin column for one meta key with three possible meta values
- apache cpu over 70% on localhost
- Is it possible to move wordpress out of webroot?
- WordPress Ajax Custom Query – High CPU LOAD
- login wp impossible
- AJAX in WordPress, sending coords data to MySQL and show after into map
- Performance issues with large website [closed]
- Create a quick start wordpress installation [closed]
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- wp-admin/index.php gives a “500 Internal Server Error [closed]
- theme options echoing multiple times
- PHP/MySQL issues when running WP on EC2 cloud [closed]
- Insert all post IDs in new database table
- WordPress 3 – how are passwords stored and how do I compare to them?
- Styling images coming from another blog
- WordPress get pagination on wpdb get_results
- register_activation_hook isn’t adding table to DB
- mysqli_real_connect() – authentication method unknown to the client Warnings
- Is the outdated PHP mysql extension a requirement for WordPress 4.6?
- How to create another version of my site based on the same database
- What SQL / WordPress queries would need a nonce?
- Different database query in function.php using mysqli
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- how to echo all tables that start with a prefix
- Do I need to prepare query before get_results(), get_row() and get_var()?
- Strange wordpress slowness
- How to create and work with custom data / tables (i.e., for arbitrary data)?