Update myPHPfaq von 2.8 --> 2.9.6

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Elephant
Posts: 7
Joined: Fri Feb 24, 2017 12:31 am

Update myPHPfaq von 2.8 --> 2.9.6

Post by Elephant »

Ich hatte Probleme bei Upgrade und Zugriff auf FAQs (gesperrt)

Ich hatte Probleme bei Upgrade und Zugriff auf FAQs (gesperrt)

Folgenden Ablauf habe ich herausgearbeitet:

Softaculous Backup der anwendung machen
Im Anwendungsverzeichnis alle Daten ausser den folgenden löschen:

Upgrading from phpMyFAQ 2.8.x

Upgrading from 2.8.x is a major upgrade. Please make a full backup before you run the upgrade! First you have to delete all files except:
database.php and ldap.php (if you use LDAP) in the directory config/
all files in the directory assets/template/
the directory attachments/
the directory data/
the directory images/

Open the following URL in your browser:

http://www.example.com/faq/setup/update.php

Choose your installed phpMyFAQ version and click the button of the update script, your version will automatically be updated. You have to update a lot of your template files due to our change using the Bootstrap framework.

You have to move your template files to the directory assets/template/. The default layout is be stored in the folder assets/template/default/.
Update per Softaculous durchführen lassen nach dem die restlichen Files und Folders gelöscht wurden.
Zugriffstechte aller Folder auf 0755 setzen. Während des Updates mit Softaculous wird der Setup-Ordner auf 775 gesetzt. Diese Einstellung führt dazu, dass der Server (cPanel) den Zugriff auf Folder mit 775 sperrt.
Fehler 500 oder weisser Screen.
http://www.example.com/faq/setup/update.php öffnen und Update ausführen lassen.
Gibt es dabei eine Fehlermeldung "no Access to Database" oder ähnlich, dann folgende Abhilfe:
File database.php in /config/ editieren:
$DB['type'] = 'mysqli';
Hoffentlich geht es dann.
http://www.example.com/faq/admin/ aufrufen und in der Konfiguration die entsprechenden Einstellungen vornehmen.
Besonderheit: Sicherheit basic oder medium:
Bei Einstellung basic werden in den Benutzerrechten keine Gruppen agezeigt.
Bei der Einstellung medium werden Benutzergruppen angezeigt.
Falls der/die User keiner Gruppe mit entsprechenden Zugriffsrechten zugeordnet sind, werden die FAQs nicht korrekt angezeigt oder gesperrt. Die führt zu Irritationen.
Falls man hier unsicher ist, sollte man basic als Einstellung nehmen. Denn sonst werden keine FAQs angezeigt oder sie sind gesperrt.
Wenn der Server PHP Mode_write kann:

Apache Web server:
If you want to enable the search engine optimization you have to rename the file _.htaccess to .htaccess in the root directory where your FAQ is located. Then you have to activate the mod_rewrite support in the admin backend in the configuration page. You also have to edit the path information for the "RewriteBase". If you installed phpMyFAQ on root directory "/" you should set in RewriteBase / Please check, if AllowOverride All is set correctly in your httpd.conf file so that the .htaccess rules work.
Das bedeutet, dass die nach der Update-Installation Datei _.htaccess in .htaccess umbenannt werden muss. Dann die Rewrite-Base richtig eintragen. File speichern.
In der Konfiguration den Haken bei Rewrite setzen.



Grüsse
Elephant
Post Reply