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%
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- Deprecated: mysql_connect()
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- 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
- dbDelta support for FOREIGN KEY
- is it possible to run some php code within a wordpress page?
- How to correctly submit a search form and display the result in an independent page
- How to use update and delete query in wordpress
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- Does WordPress cache get_user_meta() results?
- Using Echo in ShortCode – Stuck
- MySQL query performed 4 times inside loop
- Show only one post for each author ( Page loads too slow )
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- Modern Tribe Calendar wp-query with meta query not working at all
- WP database error for comments_popup_link()
- No wp-config.php file on local install of wordpress – site still displays
- Use ajax to update_post_meta
- wp-admin/index.php gives a “500 Internal Server Error [closed]
- Insert all post IDs in new database table
- register_activation_hook isn’t adding table to DB
- Is the outdated PHP mysql extension a requirement for WordPress 4.6?
- What SQL / WordPress queries would need a nonce?
- Different database query in function.php using mysqli
- Why is variable not working on custom sql query using wpdb?
- Get WooCommerce product details and transfer them to a custom DB table
- How can I export posts with featured images, without download them
- Apache /Ubuntu server not running WordPress installation, outputting PHP code like HTML
- How to securely provide a $_POST var in WP_Query with PHP 7?
- Create WP_Query to search for posts by their categories or their parent/child categories
- What is a valid parent for get_terms()?
- WSoD being caused by this piece of code
- How to display data from custom table in wordpress phpmyadmin
- Calculating a large number of MYSQL queries as customshort codes, slow
- PHP Warning: chmod(): Operation not permitted in class-wp-filesystem-direct.php on line 173
- Update results, Before deleting the related category [closed]
- Sum the total amount of a specific product purchased per user and display in table
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- Replacing mysql_escape_string in a custom plugin when moving to PHP7
- Weird 404 URL Problem – domain name being placed at end of urls
- database sent to a JSON file
- $wpdb->insert() does not Insert record in a table
- WordPress SQL injection
- multiple where condition in result query
- Grouping posts by a custom meta value
- php include not working in custom page
- Make a database query using WordPress
- Force Users To Relogin
- Basic wpdb update question
- A $_POST should occur when submit form but is not?
- Pull MySQL data from multiple tables and merge into 1 PHP array
- Using CFDB7 vs Custom MySQL Database [closed]
- Using wordpress function to retrieve data
- Apache HTTP Server stops working for only a certain local website
- form $_post action value gets truncated after it passes through two forms
- Adding data to custom wordpress database table
- Add row to custom database Table and delete all rows older than 1 day
- select a single val though a table in wordpress
- making php value numeric
- populate select options from extra mysql table data
- Removal of all posts content in bulk, keeping the posts itself
- How to store checkbox data for individual users?
- Please help! I have a problem with getting wordpress databas
- How to run complex query using PHP
- Usermeta data unserialize, extract and display in table in WordPress
- Conditional formatting on data fetched from MYSQL
- Can I split a huge wp_postmeta table across different databases or servers?
- I can’t separate the array by commas
- WordPress mysql deos not work with php7
- How can i limit the number of posts to the most recent 6 in my query?
- Error inserting into custom table – Object of class wpdb could not be converted to string [closed]
- WP + MySql db / PHP
- The plugin generated 225 characters of unexpected output during activation
- Insert data from form to database
- append data to mysql table via submit button coded in php – not working
- WordPress select query issue
- (Who to follow) Twitter widget
- How to do a MySql query in WordPress?
- Add two or multiple functions in WordPress Post or Page
- How can I display a query in a page?
- Send data from plugin to external database
- How to properly send many mysql queries via php and what happens with ajax requests after they are sent?
- Conditional statement within WP SQL query
- How to set max users to 17.000
- Passed variable gets undefined variable error on insert on next page
- directorypress theme error mysql_error() [closed]
- How to set up an auto delete post?
- two wordpress sites, two themes, one database, same content
- Cannot Upload Custom Header Image into WordPress Dashboard
- MySQL update text field with ‘
- Predefine Magazine Style Layouts
- Parse error: syntax error, unexpected ‘}’ in C:\xampp\htdocs\admin\products.php on line 148 [closed]
- Execute multiple PHP Snippets causes error?
- what to do after instlling cyberpanel on VPS
- Can’t insert into a database wordpress