7. Manage phpMyFAQ

The phpMyFAQ administration area is fully browser-based. You can access it at:

https://www.example.com/faq/admin/index.php

You can also log in through the public frontend. After a successful login, a link to the administration backend will be available there as well.

If you have lost your password, use the "Forgot your password?" link on the login page and enter your username and email address. If both match an account, phpMyFAQ sends you an email with a reset link that is valid for one hour. Open the link and choose a new password with at least eight characters.

Once you enter your username and password, you can log in to the system. If you have enabled two-factor authentication for your account, phpMyFAQ asks for the TOTP code afterward. The dashboard provides several useful cards, depending on your permissions, including:

  • counters for visits, FAQs, comments, open questions, and registered users
  • a chart of the visitors over the last 7, 30, or 90 days and a chart of the most popular FAQs (if user tracking is enabled)
  • a list of unpublished FAQs (drafts and FAQs in review)
  • a list of the latest user registrations
  • content health counters (orphaned and stale FAQs) and the most popular searches
  • an online version check against phpmyfaq.de
  • a button to verify the integrity of the phpMyFAQ installation
  • the date of the most recent backup, with a warning if it is older than 30 days

You can rearrange the cards with the "Customize" button and restore the default layout with "Reset layout". The dashboard also shows whether the FAQ is in maintenance mode or online, and warns if debug mode is enabled.

When you click the integrity check button, phpMyFAQ calculates a SHA-1 hash for every PHP file of the installation (except local configuration files such as database.php) and compares the hashes with the official ones provided by phpmyfaq.de. This makes it possible to detect whether any files have been modified.

You can also switch the current language in the administration backend. In addition, an information box can display the session timeout if this feature is enabled.

7.1 Users and Groups

7.1.1 User Administration

phpMyFAQ offers flexible management of privileges (or rights) for different users in the admin area. To search for a certain user, start typing the username in the input form, and you'll get a list of hits for usernames. It is possible to assign different privileges to real people (represented by the term users). Those privileges are very detailed and specific, so that you could allow a certain user to edit but not to delete an entry. It is crucial to contemplate which user shall get which privileges. You could edit an entry by completely deleting all content, which would be equivalent to deleting the whole entry. The number of possible users is not limited by phpMyFAQ.

Keep in mind that new users have no administrative privileges; apart from the View FAQs right (see 7.1.5), you will have to assign them by editing the user's rights.

A super admin can set users as super admins as well, then the given permissions aren't evaluated, so please be careful with setting this option.

A user without any permission in the admin section can still get read access to categories and records. Reading FAQs requires the View FAQs right, which new accounts receive automatically and which the update grants to every existing user and group — see 7.1.5. Beyond that, you can set the permissions on categories and records in the category and record administration frontend.

If you enable LDAP or Microsoft Entra ID authentication, you can't edit the user's profile in the admin area. The users will be created automatically when they log in the first time.

7.1.2 Group Administration

phpMyFAQ also offers flexible management of privileges (or rights) for different groups in the admin area. You can set permissions for groups in the same way as for users described in the topic above.

A user has a right if it is granted directly or through any of the user's groups. To enable the group permissions, set the permission level (security.permLevel) from basic to medium in the security configuration.

7.1.3 Category restrictions (Medium permission mode)

Groups can be restricted per right to a set of categories (Admin → Groups → Category restrictions). The rules are:

  • No restriction selected = the right applies to all categories.
  • A group restricted to categories X and Y cannot add, edit, translate, approve, or delete FAQs in other categories, and the admin UI only shows the allowed categories.
  • Direct user rights always remain global — category restrictions only apply to rights granted through groups. Grant rights via groups if you want category-level control.
  • Restrictions match exact categories; they are not inherited by subcategories.
  • Basic permission mode has no groups, so category restrictions do not apply there; every right is global.
  • CSV import is vetted row by row against the add_faq right before anything is stored: each row's target category and language must be inside your scope, and a single out-of-scope row rejects the whole file with HTTP 403. The AI translation endpoint is gated by the global translate_faq right; category and language checks apply when the translated content is saved.
  • A blocked action returns HTTP 403 with a message naming the missing right and the category.
  • FAQs without any category assignment can only be modified by users whose rights are not category-restricted.

7.1.4 Language restrictions

Both individual users and groups can be restricted per right to a set of languages (Admin → Users/Groups → Language restrictions). The rules are deliberately different from category restrictions:

  • No restriction selected = the right applies to all languages.
  • Unlike category restrictions, language restrictions apply to direct user rights too — a user's own right grant can itself be scoped to specific language(s), not only rights granted through group membership.
  • A user restricted to de cannot add, edit, translate, approve, or delete FAQ content in fr or any other language, and the admin UI only offers the allowed languages.
  • Basic permission mode has no groups but still enforces per-user language restrictions directly (unlike category restrictions, which are a no-op in Basic mode).
  • When a user has both a direct grant and a group grant for the same right, the right applies to the union of both grants' allowed languages; either grant being unrestricted makes the right globally usable for that user.
  • Restrictions match exact language codes; there is no fallback or inheritance between language variants.
  • Translating a FAQ into a new language is checked against the target language (the language being created), not the source language being read.
  • A blocked action returns HTTP 403 with a message naming the missing right and the language.
  • Category and language restrictions combine with AND semantics: an action must be permitted by both the category and the language rules to succeed.

7.1.5 Read, write and publish rights

Reading FAQs, changing them, and deciding that a change goes public are three independently assignable rights:

Right Name in the permission list Grants
Read View FAQs (view_faqs) Seeing FAQs at all as a logged-in user
Write Add/Edit/Delete FAQs Creating and changing FAQ content
Publish Publish FAQs (faq_publish) Setting an FAQ live, on its own or in the FAQ overview
  • The publish right maps onto the editorial workflow described in 7.2.3: every FAQ is a Draft, in Review, or Published, per language. Moving between draft and review only needs the edit rights, while every transition into or out of the published state needs Publish FAQs. This includes the CSV import: a row whose active column is true is only accepted from a user who may publish in that category and language.
  • A user with write but not publish can edit a published FAQ without changing whether it is public. For a published FAQ, the editor shows the status read-only instead of the status radio buttons, and saving leaves that state alone. The status selector in the FAQ overview is likewise shown read-only.
  • Publish FAQs is separate from the older Approve FAQs (approverec) right, which continues to gate the list of unpublished FAQs. Upgrades grant faq_publish to everyone who already held approverec, carrying their category and language restrictions across, so no one loses or gains an ability.
  • View FAQs is only enforced for logged-in users. Anonymous visitors are unaffected by it; what they may see is still governed by security.enableLoginOnly and by the per-FAQ user and group permissions set in the FAQ editor. Revoking view_faqs from a user therefore hides FAQs from that account, not from the public site.
  • New accounts receive view_faqs automatically, and the upgrade grants it to every existing user and group, so enabling the gate changes nothing until you deliberately revoke it.
  • Both rights honour the category and language restrictions described in 7.1.3 and 7.1.4, with the same AND semantics. A user whose view_faqs is restricted to one category sees only that category's FAQs — in FAQ pages, category listings, search results, tag listings, the sitemap and the "latest"/"most popular" lists alike.
  • Super admins bypass all of this, as they do every other right.
  • FAQs submitted through the frontend are still activated according to the records.defaultActivation configuration option. That is a site-wide setting about anonymous submissions rather than a right exercised by the submitter, so it is deliberately not gated on faq_publish.

7.2 Content

7.2.1 Category Administration

phpMyFAQ lets you create different categories and nested subcategories for your FAQs. You can re-arrange your categories in a different order and create nested ones with drag'n'drop. It is possible to use various languages per category, too; there's also a frontend to view all translated categories. For accessibility and SEO reasons, you should add a small description for every category. You can add an image for every category, which will be shown even on the start page if you flag this category with this configuration. If you add a new category, you can set the permissions for users and groups, and you can bind a moderator to the new category. The moderator, e.g., can be responsible for the content of the category and can support the normal administrator. This is quite nice if you want to share the work in your FAQ between various admin users.

If you display category images, they are saved as separate files in /content/user/images/ as follows:

  • category-1-de.ext
  • category-2-de.ext
  • category-3-de.ext
  • etc.

For SEO reasons (reduced file size), you may want to display the exact same file as a background image multiple times. To do this, enter the same file name for each entry in your database, "faqcategories" table, image field.

7.2.2 Add a new FAQ

You can create a completely new FAQ by using the 'Add new FAQ' option. When doing so, it is essential to select the desired category within the 'FAQ metadata' tab to ensure the entry is correctly indexed and visible to users. For a detailed explanation of all available settings and metadata options, please refer to section 7.2.3.

7.2.3 FAQ Administration

You can create entries directly in the admin area. Created entries aren't published by default. All available FAQs are listed on the page "Edit FAQs". By clicking on them, the same interface that lets you create records will open up, this time with all the relevant data of the specific entry. The meaning of the fields is as follows:

  • Category The place in the FAQ hierarchy where this entry will be published depends on these settings. You can choose one or more categories where to store the entry. If you want to add a FAQ record to more than one category, you have to select the categories with your mouse and press the CTRL key.

  • Question This is the question or headline of your entry.

  • Answer The content is an answer to the question or a solution for a problem. The content can be edited with the included WYSIWYG (What You See Is What You Get) editor when JavaScript is enabled. You can place images where you want with the integrated image manager. The Editor can be disabled in the configuration if you want. One important thing to remember is that you need to allow external hosts for images or videos in the configuration if you want to use images from external sources.

  • Language You can select the language of your FAQ. By default, the selected language saved in the configuration will be chosen. You can create entries in multiple languages like this: Write an article in English (or any other language) and save it. Now choose Edit FAQs and edit your English FAQ record. Change the question, answer, and keywords and change language to, let's say Brazilian Portuguese. Save the FAQ record. Now you can, when you click edit records, see both FAQs in your list, having the same id, yet different languages.

  • Attachments You can add attachments like PDFs or any other binary data using the Add attachment button. If you click on the button, a popup opens, and you can upload an attachment. Please keep in mind that the PHP configuration about upload size will be checked.

  • Keywords Keywords are relevant for searching through the database. In case you didn't include a specific word in the FAQ itself, but it is closely related to the content, you may wish to include it as a keyword, so the FAQ will come up as a search result. It is also possible to use non-related keywords so that a wrongly entered search will also lead to the right results.

  • Tags You can add some tags about the current FAQ here. An auto-completion method helps you while typing your tags.

  • Author It is possible to specify an author for your FAQ.

  • Email It is possible to specify the author's email for your FAQ, but the email address won't be shown in the frontend.

  • Solution ID Every FAQ automatically generates a so-called solution ID. All records can be accessed directly by putting this ID into the search box.

  • Status Every FAQ has an editorial status per language: Draft, Review, or Published. Only published FAQs are visible in the public area and included in searches; drafts and FAQs in review are invisible to visitors. New entries start as drafts, and suggested FAQs are stored as drafts by default to prevent any abuse. Moving a FAQ between draft and review only requires the edit right, while any transition that makes content go live or takes it down requires the Publish FAQs right (see 7.1.5). Users without that right see the status of a published FAQ read-only, and saving leaves it unchanged. The "Edit FAQs" overview offers a status filter and lets you change the status of an entry directly in the list.

  • Sticky? If a FAQ is "sticky," it is a crucial FAQ record and is shown in the sticky FAQs section on the start page. You should mark records as sticky if they're crucial for your whole FAQ. Sticky records also appear highlighted at the top positions of the lists of FAQ entries.

  • Comments? If you don't want to allow public comments for this FAQ you can disable the feature here.

  • Revision Like a wiki, phpMyFAQ supports revisions of every entry. Enable "Allow versioning of FAQ changes" in the FAQ configuration first. New revisions won't be created automatically, but you can create a new one if you click on "yes" when saving an existing entry. The old revision will be stored in the database, and the new current revision will be displayed in the public frontend. You can also bring back old revisions into the frontend if you select an old revision and save them as a new one.

  • Date You have three options for the FAQ creation date. You can choose to refresh the date of the FAQ entry for every update, or you can keep the date, or you can set an individual date for the FAQ entry.

  • Permissions If you add or edit a new entry, you can set the permissions for users and groups. Please note that the permissions of the chosen category override the permissions of the FAQ itself.

  • Date Date of the last change.

  • Changed? This field is reserved for comments that can reflect what changes have been applied to a certain entry. This helps multiple admins to keep track of what happened to the entry over time. Any information entered here will remain invisible in the public area.

  • Changelog The changelog lists all previous changes, including user and date of change.

You can edit and delete all records as well. Please note that old revisions won't be deleted until the whole FAQ is deleted.

phpMyFAQ lets visitors contribute to the FAQ by asking questions. Every visitor is able to view these open questions in the public area and may give an answer. If you wish to get rid of open questions, you can do so using this section. Alternatively, you can take over a question and answer it yourself and hereby add it to the FAQ.

7.2.4 Sticky FAQs

You can arrange the order of the sticky FAQs by drag'n'drop. The order of the sticky FAQs will be the same in the public frontend. To remove the "Important / Sticky" status from an FAQ and remove it from the overview, simply use the pin icon on the right. Only the status will be changed - the FAQ will not be deleted from the database.

7.2.5 Orphaned FAQs

Orphaned FAQs are records that are no longer assigned to any category. This typically happens when categories are deleted without moving the associated FAQs, or through incomplete data imports. As they lack a category assignment, these entries are hidden from users in the public frontend.

Cross-Language Management Administrators can manage orphaned FAQs across all installed languages, without needing to switch their backend interface language. The list displays all orphaned entries in the system, including the full language name, and allows direct editing within the correct linguistic context.

How to Resolve Orphaned FAQs: To correct an orphaned FAQ entry, you must assign it to a valid category in the corresponding language:

  1. Open the FAQ: The orphaned FAQ list displays entries from all languages. Click on the desired entry to open the FAQ editor, which will automatically be set to the FAQ's language.

  2. Assign Category: Navigate to the "FAQ metadata" tab within the editor. The available categories in the dropdown list will automatically match the language of the FAQ you are editing, ensuring you can only select a category appropriate for that language.

  3. Save Changes: Select a valid category and save the FAQ.

Once saved, the entry will be visible in its new category and will automatically be removed from the Orphaned FAQ list.

7.2.6 Open Questions

On the "Open Questions" page, you can see all open questions that visitors have posted in the currently selected administration language. You can answer open questions directly or, if they are not visible in the public area due to visibility settings, you can activate them. Additionally, you can delete them.

Please note: Questions awaiting moderation in other languages are not automatically shown here. If questions exist in other active languages, a warning alert will be displayed at the bottom of the page indicating which languages have pending items and the respective counts. To process these other questions, you must change your current administration language using the language selector in the top menu.

7.2.7 Comment Administration

In this frontend, you can see all comments that have been posted in the FAQs and the news. You can't edit comments, but you can delete them with one easy click.

7.2.8 Attachment Administration

In the attachment administration, you can see an overview of all attachments with their filename, file size, language, and MIME type. You can delete them, too.

7.2.9 Tags Administration

You can edit existing tags, and if you need to, you can delete the tag.

7.2.10 Glossary

A glossary is a list of terms in a particular domain of knowledge with the definitions for those terms. You can add, edit, and delete glossary items here. The items will be automatically displayed in tags in the frontend.

7.2.11 News Administration

phpMyFAQ offers the ability to post news on the starting page of your FAQ. In the administration area, you can create new news, edit existing news, or delete them.

7.2.12 Custom Pages Administration

Custom Pages allow you to create database-backed, SEO-friendly pages for legal information, about pages, and other static content using a WYSIWYG editor. Custom pages support multi-language content, are automatically included in sitemaps, and are searchable alongside FAQs.

7.2.12.1 Creating a Custom Page

To create a new custom page:

  1. Navigate to Content → Custom Pages in the admin menu
  2. Click the Add new page button
  3. Fill in the required information across three tabs:

Content Tab: - Page Title: The main title of your page (e.g., "Privacy Policy") - URL Slug: SEO-friendly URL identifier (e.g., "privacy-policy") - Automatically generated from the title - Must be unique per language - Real-time validation shows availability - Results in URL: https://example.com/page/privacy-policy.html - Content: Rich text editor (Jodit) for page content - Full WYSIWYG editing with formatting, images, links - No HTML knowledge required - Images can be uploaded and managed

SEO Tab: - SEO Title: Custom title for search engines (max 60 characters) - Character counter helps optimize length - Falls back to the page title if empty - Meta-Description: Description for search results (max 160 characters) - Character counter helps optimize length - Robots Directive: Controls search engine indexing - index, follow (default): Allow indexing and following links - noindex, follow: Don't index but follow links - index, nofollow: Index but don't follow links - noindex, nofollow: Don't index and don't follow links

Settings Tab: - Language: Select the page language (supports multi-language content) - Author Name: Name of the content author - Author Email: Email of the content author - Active: Toggle to publish/unpublish the page - Only active pages appear in search results and sitemaps - Inactive pages return 404 errors when accessed

  1. Click Save to create the page

7.2.12.2 Managing Custom Pages

The Custom Pages list view provides:

  • Pagination: Navigate through pages with configurable items per page
  • Sorting: Click column headers to sort by title, slug, language, or date
  • Filtering: Filter by language or active status
  • Actions:
  • Edit: Modify existing pages
  • Delete: Remove pages (with confirmation)
  • Active Toggle: Quickly publish/unpublish pages

7.2.12.3 Multi-Language Support

Custom pages support multiple languages:

  • Create the same page in different languages using the same ID
  • Each language version has its own slug
  • Language is selected from the Settings tab
  • Example: "Privacy Policy" can exist as:
  • English: privacy-policy
  • German: datenschutz
  • French: politique-de-confidentialite

Custom pages can be used for legal pages with automatic footer link integration:

Configuration Setup:

Navigate to Configuration → Main Settings and configure:

  • Privacy URL (main.privacyURL)
  • Terms of Service URL (main.termsURL)
  • Imprint URL (main.imprintURL)
  • Cookie Policy URL (main.cookiePolicyURL)

Two Configuration Options:

  1. Custom Page Reference: Use format page:slug
  2. Example: page:privacy-policy
  3. Redirects /privacy.html → /page/privacy-policy.html
  4. Recommended for database-backed legal pages

  5. External URL: Use full URL

  6. Example: https://example.com/legal/privacy
  7. Redirects to external website
  8. Useful if legal pages are hosted elsewhere

Footer Links:

When configured, links automatically appear in the footer: - Privacy Statement (if main.privacyURL is set) - Terms of Service (if main.termsURL is set) - Imprint (if main.imprintURL is set) - Cookie Policy (if main.cookiePolicyURL is set)

Example Configuration:

main.privacyURL = page:privacy-policy
main.termsURL = page:terms-of-service
main.imprintURL = page:imprint
main.cookiePolicyURL = page:cookie-policy

7.2.12.5 Search Integration

Custom pages are automatically integrated with all search engines:

Database Search: - Uses LIKE queries on title and content - Works without additional configuration - Searches alongside FAQs

Elasticsearch Integration: - Automatically indexed with content_type='page' - Updated in real-time on create/update/delete - Priority 0.80 in search results - Bulk import via Elasticsearch → Import Data

OpenSearch Integration: - Same functionality as Elasticsearch - Automatic real-time indexing - Bulk import via OpenSearch → Import Data

Search Results: - Custom pages appear with a file-text icon - FAQs appear with a question-circle icon - Results link directly to /page/{slug}.html

7.2.12.6 Sitemap Integration

Active custom pages are automatically included in XML sitemaps:

  • Only active pages (active='y') are included
  • Priority: 0.80 (FAQs have 1.00)
  • Last modified date from updated or created field
  • URL format: https://example.com/page/{slug}.html
  • No manual configuration needed

Access sitemap at: - https://example.com/sitemap.xml - https://example.com/sitemap.xml.gz (gzipped)

7.2.12.7 SEO Best Practices

Slug Guidelines: - Use lowercase letters, numbers, and hyphens only - Keep short and descriptive (e.g., about-us, privacy-policy) - Avoid special characters or spaces - Make it meaningful for users and search engines

Content Guidelines: - Write clear, concise content focused on user needs - Use headings (H2, H3) to structure content - Keep paragraphs short for readability - Include relevant keywords naturally - Update regularly to keep content current

SEO Optimization: - Fill in SEO title (under 60 characters) - Write compelling meta description (under 160 characters) - Use appropriate robots directive - Set pages as active when ready to publish - Use descriptive page titles

7.2.12.8 Permissions

Custom pages require the following permissions:

  • Add custom pages (addpage): Create new custom pages
  • Edit custom pages (editpage): Modify existing pages
  • Delete custom pages (delpage): Delete pages

Permissions are granted in the user or group administration (see 7.1).

Super admins have all permissions by default.

7.2.12.9 Troubleshooting

Slug validation fails: - Ensure slug is unique per language - Check for special characters (only lowercase, numbers, hyphens allowed) - Try a different slug

Page not appearing in search: - Verify page is set to active - Re-index search engine (Elasticsearch/OpenSearch → Drop Index → Create Index → Import Data) - Check search configuration is enabled

404 error when accessing the page: - Verify the page is active - Check slug matches URL exactly - Ensure language matches current site language

Footer links do not appear: - Verify configuration values are set correctly - Use format page:slug or full URL - Check page exists and is active - Clear cache if using caching

7.2.13 AI-Assisted Translation

phpMyFAQ can translate FAQs, custom pages, and categories with a machine translation service: Google Cloud Translation, DeepL, Azure Translator, Amazon Translate, or LibreTranslate. Select the provider and enter its credentials under Configuration → Translation; the feature requires the Translate FAQs right. When you translate an item, the "Translate with AI" button fills in the target language fields while preserving HTML formatting, and you review the result before saving. See the AI-Assisted Translation guide for the provider setup, the workflows, and troubleshooting.

7.3 Statistics

7.3.1 Ratings

Below every FAQ, a visitor has the chance to rate the overall quality of a FAQ by giving ratings from one to five (whereas 1 is the worst, 5 the best rating). In the statistics, the average rating and number of votes become visible for every rated FAQ. To give you a quick overview, FAQs with an average rating of two or worse are displayed in red; an average above 4 results in a green number.

7.3.2 View sessions

This function lets you keep track of your visitors. Every visitor is assigned an ID when coming to your starting page, that identifies a user during his whole visit. Using the information gathered here, you could reconstruct the way visitors use your FAQ and make the necessary adjustments to your categories, content, or keywords.

7.3.3 View Admin log

The admin log allows you to track any actions taken by users in the admin area of phpMyFAQ. If you feel you have an intruder in the system, you can find out for sure by checking the admin log.

7.3.4 Search statistics

On the search statistics page, you'll get a report about which keywords and how often your users are searching. This information is split into keywords, the number of searches for this term, the language, and the overall percentage.

7.3.5 Reports

On the report page, you can select various data columns to generate a report about content and usage of your FAQ installation. You can export the report then as a CSV file.

7.4 Imports & Exports

7.4.1 Imports

You can import faqs from a csv file. Further, you find an example of such a csv file:

[!IMPORTANT] It is not allowed to have the first line of the following example file containing the headers in the uploaded file as well. Otherwise, the import will fail.

category-Id question answer keywords language code author email address of author active sticky
1 What's the answer? This one is the answer question,answer en Thorsten thorsten@phpmyfaq.de true false
1 Can you buy me an ice cream? Strawberry or chocolate is available. ice,strawberry,chocolate en Thorsten thorsten@phpmyfaq.de true true

[!NOTE] All cells are required except for the keywords. Additionally, you are able to use several keywords that are seperated with commas.

7.4.2 Exports

You can export your contents of your whole FAQ or just some selected categories into two formats:

  • a JSON file
  • a PDF file with a table of contents

7.4.3 Batch upload via phpMyAdmin

[!NOTE] You should have a table ready with the data you want to import. The titles of your new FAQ's in one column, the HTML-formatted content in the next, and the keywords in a third column.

You should have access to phpMyAdmin via your web host.

You should have already created a few entries manually in your phpMyFAQ.

This guide is intentionally extensive, but the individual steps can be completed quite quickly once you understand them. It is important that you don't make any mistakes when uploading to your DB, so take your time the first time you try it.

7.4.3.1 Export the necessary tables

Open phpMyAdmin, first check whether the correct database is displayed. You can switch to a different database at the top left. At the top left you can see the name of your database and below that the names of the individual tables. From this list, select the following five tables (one after the other) and click on them once to select them:

  • faqdata
  • faqdata_tags
  • faqcategoryrelations
  • faqdata_user
  • faqdata_groups

Screenshot of choosing DB and tables in phpmyadmin.

As soon as you have selected one of the five tables, the contents will be displayed on the right. Now click on the Export menu item at the top.

Screenshot of nav bar in phpmyadmin

Select CSV as the format. Make sure that Dump all rows is selected. Then click Export at the bottom.

Screenshot of export dialog in phpmyadmin

Save all 5 CSV-Files in a separate folder on your computer. Then you can close phpMyAdmin for the moment.

7.4.3.2 Edit the tables

Open the first CSV file faqdata.csv with the spreadsheet program of your choice. (You can use LibreOffice, OpenOffice, or Excel, for example.) Look at the table BEFORE you make any changes. Pay attention to the column headings and the contents of the individual fields. DO NOT change the column headings. Because the database does not like errors, you should handle it carefully.

The id column contains an ascending number that is assigned once and identifies each post. So for a new post you only need to count one further. This also applies to the solution_id, which can be used later to access individual FAQs. The keywords for the respective post should be entered in the keywords column, separated by commas. In the topic column you enter the question or the title of your post. The HTML-formatted content of the post should be entered in the content column. For the remaining columns, use the existing entries as a guide. Check everything you have entered again. It's better to look at it once too often at the beginning until it becomes easier for you later. Save the table in exactly the same format as a CSV file, then you can close it.

In order for the data from this first table to be displayed, the exact right values in the other three tables are also required. Only then will it work and your data will also be displayed.

You've probably already assigned some important tags to your existing posts, otherwise please do that now from within phpMyFAQ before we continue. It's best to just use one tag per post.

So now let's take the second table faqdata_tags. On the left is the record_id, which matches the unique id from the previous table, but just is named differently. So for a new post, you have to increment one here too. REMEMBER that this number refers to the exact post whose data you have already entered the faqdata table! In the right-hand column, there is a number that identifies the assigned tag.

Within the Tags section of phpMyFAQ you can hover your mose over the red trash can, and your browser will now show you a link at the bottom left that ends with our tag number. You should note down the tags and their numbers in a text file to have them at Hand later. With this knowledge, we can now enter the desired tags in the table for our new posts. Check again and you can close the table.

We continue with the third table, called faqcategoryrelations, and this is now about the categories. The number in the first column category_id identifies the category in which the new post should be sorted. You can assign the number to the category in exactly the same way as you did with the tags. So make a quick note in your text file! You can now enter the numbers so that the posts end up in the right category. On the right at record_id we have the unique ID that identifies the post. Once you have entered everything, save and close.

The fourth file called faqdata_user.csv is straightforward. Put in the unique id of your new entries at the left and -1 at the right. Save and close. Same for the fifth file faqdata_groups. Add the unique id and -1.

7.4.3.3 Upload the finished tables

Now we have all the data ready to import. So we open phpMyAdmin again. Select the correct table on the left. Click on Import at the top. Select the correct one of our 4 CSV tables out of your folder. To Skip the number of queries, select 1 so that our column headings are not created as a post. The format must be CSV. Check also update data when duplicate keys are found on import. Otherwise, changes to existing entries won't be saved. Else everything should be fine. Now click on Import.

Screenshot of import dialog in phpmyadmin

We'll do that four more times with our other files.

Now go to your phpMyFAQ and check your new entries.

7.5 Backup

Using the backup function, it is possible to create a copy of the database as a single SQL file. This makes it possible to restore the FAQ after a possible "crash". It is recommended to create regular backups of your FAQ.

  • backup data A backup of all data will include all entries, users, comments, etc.
  • backup logs The sessions of visits and the admin log will be saved (i.e., all log files). This information is not necessary for running phpMyFAQ, they serve only statistical purposes.

During the backup process, phpMyFAQ signs the whole backup file with a secret key and stores the file name, key, and signature in the database. When you restore a backup, phpMyFAQ looks up this information by the file name and verifies the signature. If a backup can't be verified, for example because the file was renamed or modified, or because it was created by another installation, the admin can't use the backup file for restore. The backup must also have been created with the same major and minor version of phpMyFAQ (e.g., 4.2). Restoring replaces the content of all tables contained in the backup. Creating backups requires the backup right, restoring requires the restore right.

To move an installation to another server, use the native tools of your database (e.g., mysqldump or pg_dump) instead. To back up all files on your web server, you can run the backup script scripts/backup.sh from the phpMyFAQ source repository.

7.6 Configuration

7.6.1 Main configuration

Here you can edit all settings of phpMyFAQ. The settings are grouped into tabs: Main, FAQs, Search, Translation, Security, Spam control center, Layout, SEO, Mail setup, Push, API, OAuth 2.0, Keycloak, OpenID Connect, LDAP, Storage, and Online Update. Use the filter box above the tabs to find a tab quickly.

You can find a detailed description of all settings in the Configuration key reference.

7.6.2 FAQ Multi-sites

You can see a list of all multisite installations, and you're able to add new ones.

To host several distinct installations (with different configs, different templates, and most importantly, different database credentials), but only want to update once, you need to follow these steps:

  • Make sure you have the multisite/ directory in your document root and multisite.php in it
  • For every installation, there needs to be a subdirectory of multisite/ named exactly like the hostname of the separate installation.
  • Alternatively, set the environment variable PMF_MULTISITE_BASE_DOMAIN, e.g., to faq.example.com. A request for acme.faq.example.com then uses the subdirectory multisite/acme/ if no directory with the full hostname exists.

For example, if you want to use faq.example.org and beta.faq.example.org, it needs to look like this:

.
|-- [...]
|-- content
|   |-- core
|   |   |-- config
|   |   |   |-- constants.php
|   |   |   `-- database.php
`-- multisite
    |-- multisite.php
    `-- beta.faq.example.org
        |-- constants.php
        `-- database.php

7.6.3 Stop Words configuration

We need stop words for the smart answering feature and the related answers. If a user is adding a new question to your FAQ, the words will be checked against all FAQs in your database but without the stop words. Stop words are words with a very low relevance like the English word the.

7.6.4 phpMyFAQ Update (Experimental feature)

If you're running phpMyFAQ 4.0.0 or later, you can use the built-in automatic upgrade feature. The menu entry "phpMyFAQ Upgrade" is only shown if the online update is enabled in the "Online Update" configuration tab. You can click through the update wizard:

  1. Check for System Health: this checks if your system is ready for the upgrade
  2. Check for Updates: this checks if there is a new version of phpMyFAQ available
  3. Download of phpMyFAQ: this downloads the latest version of phpMyFAQ in the background, this can take some seconds
  4. Extracting phpMyFAQ: this extracts the downloaded archive, this can take a while
  5. Install downloaded package: first, it creates a backup of your current installation, then it copies the downloaded files into your installation, and in the end, the database is updated

7.6.5 Redis-backed configuration storage

The Storage tab of the configuration allows you to use Redis as a fast read cache for the configuration values. The database table faqconfig remains the source of truth, and phpMyFAQ falls back to the database if Redis is unavailable. Use Test Redis connection before enabling it. In the same tab, you can switch the application cache adapter from the filesystem (default) to Redis. See Redis-Backed Configuration Storage for DSN examples and troubleshooting.

7.6.6 Elasticsearch configuration

Here you can create and drop the Elasticsearch index, and you can run a full import of all data from your database into the Elasticsearch index. You can also see some Elasticsearch-relevant usage data. This page is only available if Elasticsearch is enabled. For the setup, see Elasticsearch Support.

7.6.7 OpenSearch configuration

Here you can create and drop the OpenSearch index, and you can run a full import of all data from your database into the OpenSearch index. You can also see some OpenSearch-relevant usage data. This page is only available if OpenSearch is enabled. For the setup, see OpenSearch Support.

7.6.8 System information

On this page, phpMyFAQ displays some relevant system information like PHP version, database version, or session path. Please use this information when reporting bugs. Additionally, you can check the status of all translation files and see if there are any missing translations.

7.6.9 Edit forms

On the "Edit forms" page, you can customize the frontend forms for adding new FAQs and asking questions. For every input field, you can define whether it is active and whether it is required, and you can translate the field labels.

7.6.10 Plugins

The "Plugins" page lists the installed plugins with their name, version, author, and description. Plugins that are incompatible with your phpMyFAQ version are listed separately, together with the reason. See Plugins for details on writing and installing plugins.

7.7 Using external identity providers

phpMyFAQ can integrate with external identity providers for administrator and frontend logins.

7.7.1 Using Keycloak

phpMyFAQ can sign users in through Keycloak using the OpenID Connect Authorization Code flow with PKCE. Enable it under Configuration -> Keycloak, enter the Keycloak base URL, realm, client ID, and client secret, and register https://faq.example.com/auth/keycloak/callback as a valid redirect URI in your Keycloak client. Existing accounts are only matched by the stored Keycloak subject (sub), never by username or email address; optionally, phpMyFAQ creates new users on their first login and maps Keycloak roles to phpMyFAQ groups. See the dedicated Keycloak Integration guide for the client settings, account linking rules, group mapping, and troubleshooting.

7.7.2 Using a generic OpenID Connect provider

phpMyFAQ can also sign users in through any OpenID Connect provider, such as Authentik, Okta or Zitadel, using the Authorization Code flow with PKCE. Enable it under Configuration -> OpenID Connect, enter the provider's discovery URL, client ID and client secret, and optionally a provider name for the login button. See the dedicated OpenID Connect Integration guide for an Authentik walkthrough, account linking rules and group mapping.

7.7.3 Using Microsoft Entra ID

You can use our experimental Microsoft Entra ID support for user authentication as well. App Registrations in Azure are used to integrate applications with Microsoft Azure services, allowing them to authenticate and access resources securely. Follow these steps to create an App Registration in Microsoft Azure:

Prerequisites:

  • Azure account with appropriate permissions.

Step 1: Sign in to Azure Portal

  1. Open your web browser and navigate to the Azure Portal.
  2. Sign in with your Azure account credentials.

Step 2: Create a New App Registration

  1. In the Azure Portal, click on "Entra ID" in the left-hand navigation pane.
  2. Under "Entra ID," click on "App registrations."

Step 3: Register a New App

  1. Click the "+ New registration" button.

Step 4: Configure the App Registration

  1. In the "Name" field, provide a name for your App Registration, e.g. "phpMyFAQ".
  2. Choose the supported account types that your application will authenticate: "Accounts in this organizational directory only"
  3. In the "Redirect URI" section, select the platform "Web" and specify the redirect URI where Entra ID will send authentication responses: https://www.example.com/faq/services/azure/callback.php (replace https://www.example.com/faq/ with the URL of your phpMyFAQ installation)
  4. Click the "Register" button to create the App Registration.

Step 5: Configure Authentication

  1. After the registration is created, go to the "Authentication" tab in the App Registration settings.
  2. Under "Platform configurations," select the appropriate redirect URI type: Web
  3. Configure the Redirect URIs as needed for your application.
  4. Save the changes.

Step 6: Note Application Details

  1. Make note of the "Application (client) ID" and the "Directory (tenant) ID" on the "Overview" page.
  2. Go to the "Certificates & secrets" tab and create a new client secret. Copy its value; it is only shown once.

Step 7: Create Azure config file

  1. Copy the file content/core/config/azure.php.original and name it content/core/config/azure.php
  2. Add the tenant ID (AAD_OAUTH_TENANTID), the client ID (AAD_OAUTH_CLIENTID), and the secret (AAD_OAUTH_SECRET) from Step 6 and save the file
  3. Then, activate "Enable Sign in with Microsoft Entra ID" (security.enableSignInWithMicrosoft) in the administration under Configuration -> Security

7.8 Command Line Interface (CLI)

phpMyFAQ offers a command line interface (CLI) for administrators.

7.8.1 Usage

The CLI is located in the bin/console file. Run it with the PHP CLI binary from the phpMyFAQ root directory.

7.8.2 Available commands

# Show available commands
php bin/console list
Command Description
phpmyfaq:install Installs phpMyFAQ non-interactively (headless setup for Docker, CI, and e2e tests)
phpmyfaq:update [version] Runs the phpMyFAQ update process, like the online update in the admin
phpmyfaq:hashes:create Generates the file hashes used by the integrity check
phpmyfaq:mcp:server Runs the MCP server for LLM integration, see MCP Server
phpmyfaq:seed-testdata Seeds phpMyFAQ with bilingual (German and English) test data, for development only

Before phpMyFAQ is installed, only phpmyfaq:install and phpmyfaq:hashes:create are available.

7.8.3 Background worker and scheduler

By default, phpMyFAQ sends emails immediately during the request. If you enable "Use background worker queue for email delivery" (mail.useQueue), emails are queued instead, and you have to run the worker regularly, e.g., via cron. Otherwise, queued emails are never sent. The worker script ships in the bin/ directory next to phpmyfaq/ in the release packages, in the Git repository, and as /var/www/bin/worker.php in the Docker images:

# Process all queued jobs
php bin/worker.php

# Process at most 10 jobs
php bin/worker.php 10

The task scheduler runs maintenance tasks such as the cleanup of old sessions, the search index optimization, the aggregation of statistics, and a data backup:

php bin/scheduler.php run

The scheduled backup is stored in content/core/data/backups/ and is only readable by the owner of the file, because it contains password hashes. You can restore it in the backup administration like any other backup, as long as you keep the file name.

7.9 Troubleshooting

7.9.1 Hard password reset

If you can't log into your phpMyFAQ installation, and your password reset doesn't work, you can set a new password hash directly in the database. phpMyFAQ accepts bcrypt hashes, so you can generate one with the PHP CLI:

php -r 'echo password_hash("your-new-password", PASSWORD_BCRYPT), PHP_EOL;'

Alternatively, you can use the Password Hash Generator Tool for phpMyFAQ. It needs your phpMyFAQ salt (security.salt in the table faqconfig in the database) and the username you used to log in, usually admin.

Copy the hash and paste it into the pass field in the faquserlogin table in the database for your user, e.g., "admin". If you use a table prefix, the table is named accordingly. Then you can log in with the new password. phpMyFAQ automatically upgrades the stored hash to the current format on the next successful login.

For transparency reasons, the whole code base is available on GitHub. You can find the code here: https://github.com/phpMyFAQ/password.phpmyfaq.de