new moodle shows default apache page - moodle

I just installed ubuntu 16.04 server, and moodle 3.1. I suspect this is a mistake: I copied everything of moodle into /var/www/html, instead of into /var/www. My suspect comes from the fact that http://siteaddress will show the default apache page; while http://siteaddress/index.php will show the moodle login page; however, after login I see the apache default page again.
Any quick fix?

You need to set up Apache to use index.php as the default page.
index.php not loading by default

I deleted index.html, and restarted machine. It worked out -:)

Related

Typo3 CMS throws Error after successful installation

Once I finish installing Typo3 locally on my system using latest xampp on PHP 8 version. Website stops working. Installation gets completed successfully, but once installation is completed, whole website stops working. This is strange. Every time I tried installing latest Typo3 version, 11.5, same issue happens.
Depending on the kind of installation you're likely missing the correct server configuration. Usually it's done by a .htaccess file in the web-root of the installation.
An example .htaccess file, which in many installations never even needs adjustments, is located inside your installation, you just have to copy it in the webroot and rename it to .htaccess. It's located here:
typo3\sysext\install\Resources\Private\FolderStructureTemplateFiles\root-htaccess
In your Screenshot, you are using Port 81 (localhost:81).
I suggest using the default Port 80 and "127.0.0.1" instead of "localhost" (http://127.0.0.1).
Using Port 81 would need changes in your firewall configuration in many cases.
Additionally, your folder structure seems wrong ("/typo3_src-11.5.12/typo3/login?...").
Your backend should be reachable under "/typo3/" or "/typo3/index.php".
If you are using a legacy installation (without composer), the folder /typo3_src-11.5.12/ should be one level above your web server's document root, as stated here:
https://docs.typo3.org/m/typo3/tutorial-getting-started/main/en-us/Installation/LegacyInstallation.html

TYPO3: Class 'Tools_action_index_7c3e344226a5508b65ddf8993fcb960b3377b0d1' not found

I'm very new to the CMS TYPO3 and I ran into a problem after the successful installation. I cannot access the page, view and list in the navigation. My logs show the error:
Class 'Tools_action_index_7c3e344226a5508b65ddf8993fcb960b3377b0d1'
not found
So I guess I am missing the action_index, but I don't know what I should create. A php file in the root of htdocs?
I guess it could be solved very quickly, but I'm still stuck and I can't find anything online.
Any help would be appreciated. Thanks in advance!
This class name looks like a fluid template cache file which is not generated. Did you check the write permissions for your webserver? Depending on which Version of TYPO3 you have installed, the webserver need write permissions for typo3temp and var folder:
TYPO3 9.x composer install: var/ and public/typo3temp/
TYPO3 9.x classic install: typo3temp/
TYPO3 8.x classic install: typo3temp/
Directory structure
Security Guidlines: File/directory permissions
You can also check the status and potential errors inside the install tool (Admin tools):
TYPO3 9.x: http://your-domain/typo3/ -> Admin tools: Maintenance
TYPO3 8.x: http://your-domain/typo3/install -> Folder Structure
Flush all caches in backend
If write permissions dont help, click the red flush cache button inside TYPO3 backend (right top corner -> flush all caches)
Flush file cache on disk
If this also not helps, delete all files/folders inside:
TYPO3 9.x composer install: var/cache/
TYPO3 9.x classic install: typo3temp/var/cache/
TYPO3 8.x classic install: typo3temp/var/Cache/
Ok, so I finally managed to solve the problem. Thank you Steffen Mächtel for your hints with the write permissions. Thanks to that I realised that I couldn't change the write permissions of my folders (not even with chmod 777).
I am not sure, but I think the problem was that I had XAMPP as a virtual machine running so I couldn't change it. I didn't know there was a difference in XAMPP and XAMPP-VM. I solved my issue by removing XAMPP and do the whole install process using MAMP instead. Using MAMP everything works now. Thanks everyone again for the help.

TYPO3: Wrong URLs after moving to new Server

I developed my TYPO3-Project using a local Vagrant-Machine. Now I bought some Webspace and wanted to migrate it there but I keep getting Errors.
Whenever I try to call the URL, TYPO3 is giving me the "Ops, an error occurred!".
I can, however go to the back-end and install tool and everything looks fine there! All the pages with all their content are editable.
Now for the weird part:
Whenever I try to open a Sub-Page from the Backend, It wants to load it with the base-url of my Dev-Server. I migrated the Database correctly and Installed the TYPO3-Installation accordingly.
So basically this is whats going on:
My development enviroment has its own Database and is working perfectly fine
I exported the Database via terminal and imported it via PHPMyAdmin to the new Hoster
I set up my TYPO3 Project and Changed the Localconfiguration.php
I added the new URL to the TYPO3 Project
--> Everytime I open a link I either geht the Blank Page with the "Oops, an error occurred! Code: 20171002194119799d9c1b" or it tries to open the wrong URL.
I used:
Homestead as my Vagrant Box
Composer to install TYPO3 and the extensions
Realurl (latest Version)
TYPO3 8.7.7
My RealUrl setup in my page.config looks like this:
absRefPrefix = /
tx_realurl_enable = 0
linkVars = L(0-3)
index_enable = 1
index_externals = 1
Thanks in advance! I know this is quite something to read but I've struggled for the last 5 hours with this problem and I don't know where to ask but here.
Did you changed the domainrecord?
Open the rootpage in list mode and modify (or add) the domain record to match the current domain.

TYPO3 8.7.1 backend Login not working

I have a plain naked TYPO3 8 lts installation.
But I cant login with the backend user.
Install Tool works fine
When I create a new BE user in install tool it does not work as well ...
any ideas?
Check in Localconfiguration the [BE][loginSecurityLevel] and change it to normal if it is rsa
For me the solution was deleting the cookies from the browser, then login form works good.
I ran to a problem where I couldn't login to backend, even if I had [BE][loginSecurityLevel] set to normal. Nether did it work on a unix system or windows. The reason I found out was, because the extension 'sv' was disabled (not in PackageStates.php array).
So I went to PackageStates.php and added following to the array:
'sv' => [
'packagePath' => 'typo3/sysext/sv/',
],
Before that happened, I downgraded TYPO3 from 9 to 8. I was able to log in first, but not the next day, after the first logout.
This extension contains core default services.
Use the Debugger for your browser, e.g. Firefox Developer, and check if an error is given there.
Loading failed for the <script> with source “http://www.my-typo3-website.de/typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery/jquery-3.2.1.js”.
If you copy and past the above url into a web browser, you will see this outpu:
The requested URL /typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery/jquery-3.js was not found on this server.
The file name jquery-3.2.1.js has been abbreviated into jquery-3.js!
It can happen that the jquery used by the login form is not included as needed. This can happend by a Rewrite rule in the .htaccess file which transforms the filename jquery-3.2.1.js into a smaller name jquery-3.js which will not be found, because it simply does not exist on the file system.
At least you should try out the original .htaccess file named "_.htaccess" which is shipped with TYPO3.

Stuck on Plugins Check

I tried to install without realising an older plugin than what was already installed. It errored with the install however now I cant get past the check plugins screen to fix my issue.
Reload just reloads the page, update does nothing. If I click Upgrade I get this:
I cant do anything else. If I try to reload Moodle with just http://moodle (Internal URL) I get redirected straight back to this page. If I clear my cookies I get taken to the login page, but after logging in it is straight back to the "Plugins Check" page again.
Do you have administrative access to the server running Moodle?
You should be able to download the version of the plugin you need and unzip it directly into Moodle's directory structure, and then log back in to the Web UI.
In my moodle installation, this is here:
/var/www/html/moodle/course/format/singleactivity
You should be able to get the correct files from the installation package you used. Just make a backup of the existing folder in your Moodle environment, move it to a safe location, and drop the complete folder for the new version in its place. Then reload the web client.