Apache Webserver is not recognizing new Content - html

Hi I am running Jellyfin on my censored.de domain.
Last night I tried adding some Buttons to the Interface and it worked great, but at some point I replaced a file in the web Folder and now everything is broken.
(Only login screen works, but that's NOT false code! I put back the old file)
Login for you= User: "guest", Password: "guest"
To understand what I did:
I used Samba to connect from my PC to the server with the following permissions:
smb.conf
[*(Censored)*]
path = /
public = yes
writeable = yes
; browseable = yes
valid users = *(Censored)*
force user = root
force group = root
create mask = 0770
directory mask = 0771
force create mode = 0660
force directory mode = 0770
Then I edited a file locally and replaced the one in my website.
I changed the file permissions already because it wasn't the same as the other files.
Before I also failed to add my own logo and thought it might be the image type but now I realized any new file gets rejected. Thats why I guess it might be https related BUT when I connect via http I also have the same issue what keeps me guessing wrong I think.
The server is running behind a reverse Proxy and I certified it with certbot --apache.
PS: By the way, this is not a specific problem for this website. My other website running on this server has the same problem. Couldn't make the background show up... When I replaced the index.html file the page was not visible at all anymore and it is still not showing. Don't really know what to do but something about my configuration seems off.
I am pretty new and have no experience with webhosting, so please excuse me for my basic level of understanding :)
Thanks in advance for you help,
Simon Wolf

Finally understood, that actually my setup is fine. The jellyfin-web package needs to be built if you add/replace data to function properly.
Just be careful only to edit files, not to replace them...
Solution for me then was just uninstalling and reinstalling the apt jellyfin-web Package and it worked again!

Related

Mediawiki doesnt show images

I have restored an old mediawiki database from about 2013-2015 on an current Ubuntu with mysql. Everything works fine after the database update. My only problem is, that images on the page are not been shown. I get the message "Error creating the preview image: file is missing". But the images should come from the database. I have checked out the usual error sources like /usr/bin/ convert and $wgUseImageMagick = true;
Any suggestions?
BR
Axel
MediaWiki stores images not in the database but in the filesystem (see $wgUploadDirectory setting in LocalSettings.php). You have to restore it and make it readable and writeable to the web-server.
As Alexander mentioned, check and see if $wgUploadDirectory is set to a correct directory that contains images for your MediaWiki installation. If you haven't customized your Mediawiki much, it should be YOUR_MEDIAWIKI_INSTALL_DIR/images. You also need to set proper permission for the images so that thumbnails can be generated for an image. Usually, permission on images directory should be 755.

Stop wordpress from redirecting to port 8000

I'm completely new to deployment and wordpress specifically, so my question and explanation might seem dummy. But I really need help with this, searching Google didn't help. So any way, I have this host, where I installed Wordpress, and db was created automatically. I added al the content through wp-admin panel, so I won't break any connections among files by uploading my local wp files. And when I tried to open the website itself, it was redirected to port 8000. The only place I found this port in was db, where links to media look like http://0.0.0.0:8000/wp-content/... , but in the wp-admin panel in the media section links look fine, so I assume it is replaced somewhere. But still I can't figure out where does this port 8000 come from. Any ideas?
Step To follow after migration :
Change site and home url from wp_option table.
Login to admin and change paramlinks from setting->paramlink choose custome and save
Use url update plugin incase some url are not updated yet.
Try Private Browser to check your website.Some time cache will be issue.
Right url in inspect :
Solution with no plugins
Lets assume your wordpress site you deployed is not able to display and therefore you cant use fancy plugins for URL replacement. In that case:
Make .sql export from your database and name it db_export.sql
run cat db_export.sql | sed s_localhost:8000_example.com_g > db_import.sql
Replace data in your database by newly created db_import.sql
HTTPS
In case you are going to run your deployed website on https instead of http, consider running another unix script in command line:
cat db_import.sql | sed s_http://example.com_https://example.com_g > db_import_final.sql
and replace data in your database by db_import_final.sql file we newly created.
Wordpress still keeps redirecting...
If this is the case, open file wp-config.php in your root directory
Above line require_once( ABSPATH . 'wp-settings.php' ); enter following:
define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );

MAMP Pro can't see index /

I'm testing MAMP Pro demo and I created a few wordpress folders in the htdocs of the MAMP folder. Whenever I attempt to launch the WebStart, I get to a web page that tells me MAMP Pro was correctly installed, but whenever I attempt to access the localhost:8888 page, instead of seeing the index of wp instances, I only get this message:
The virtual host was set up successfully.
If you can see this page, your new virtual host was set up successfully. Now, web content can be added and this placeholder page1 should be replaced or deleted.
Server name: localhost
Document root: /Applications/MAMP/htdocs
1 Files: index.php and MAMP-PRO-Logo.png
Any help?
Thanks!
Helo, in my case, the problem was solved by removing index.php and reloading the project folder in htdocs.
Check the folder that the files are in and see if there’s a file in there called ‘index.htm’ or ‘index.html’. Basically, anything like that isn’t ‘index.php’ (that’s the WordPress file). If you find that, then delete the file.
Deleting the file index.php hopefully you'll fix that problem

Phpmyadmin shows blank page

Recently we have upgraded our mysql from 5.5.x to 5.6.x in an Ubuntu 12.04, also we have changed php5-mysql library with php5-mysqlnd(Which is recommended from MySql).
Since our change in library phpmyadmin stopped working and shows a blank page.
I have followed so many forum and advises from forum contributor but have not had success so far.
I also used ubuntu repository as suggested in this other topic at stackoverflow ppa:nijel which I believe has the modified phpmyadmin package and include the support of php5-mysqlnd, but still no success.
I also have enabled highest verbosity on the php.ini but still nor error or warning is generating in any log, using chrome developer tools it shows "500 Internal Server Error".
I am clueless now, if anyone can help me to determine what I may be missing obvious.
I just ran into a very similar error and I thought I would leave my solution here in case anyone finds this searching for my error. The difference was, that phpMyAdmin showed a blank page after a successful login.
The solution was, removing the "X-Frame-Options: Deny" header.
When setting up the webserver, I didn't remember that phpMyAdmin would rely on iFrames to serve its interface.
Check Mysql & Php error log files located at /var/log/mysql/error.log and /var/log/apache2/error.log respectively
Even after multiple uninstall, purge and reinstall of phpmyadmin I did not get a success.
Finally I used bruit-force approach and from another Linux server where phpmyadmin was running properly I copied all i.e. /usr/share/phpmyadmin, /etc/phpmyadmin and /var/lib/phpmyadmin folders and over write them in the problematic server.
Every thing works perfectly now.
Thanks for help Vibhas... I just thuoght to post just for someone's help.
In case someone (like I was) is using phpmyadmin via xampp on windows and has skype turned on - try turning skype off (or configure xampp to use another port).
I was facing a similar issue with phpmyadmin (phpmyadmin was returning a blank page). It was alright once I reinstalled phpmyadmin using:
apt-get install --reinstall phpmyadmin
If you are not root:
sudo apt-get install --reinstall phpmyadmin
When i changed this inside the config.inc.php:
$cfg['UploadDir'] = '/tmp';
$cfg['SaveDir'] = '/tmp';
to:
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
and reloaded the page then it worked directly!
This is a long shot, but it happened to me when I realised after a cPanel password reset I did not check the "Synchronize MySQL password" option.
This used to be defaulted as checked in previous cPanel versions.
To fix all I did was reset my cPanel password again and selected the "Synchronize MySQL password" checkbox and PhpMyAdmin was back.
Hope this helps others, and if its causing a big issue cPanel should select this option by default again.
I had a similar experience after installing mysql 5.5.60 and phpmyadmin 4.2.12 and what did the trick for me was changing folder ownership for /var/lib/php/session which was the solution in another case for getting php-scripts tu run in general. In my case user www-data is trying to execute related scripts, so I set folder permissions accordingly
chown -R www-data:www-data /var/lib/php5/
and the page appeared as expected.
A web search for [phpmyadmin blank page] shows many people are having this problem and there are almost as many different solutions proposed. So let me add one more after spending a day and finally having success:
When the blank page was displaying, I opened Developer Tools (Command-Option-i on Mac in Chrome or Brave). I immediately observed multiple instances of failing to load .js files from phpmyadmin/js/dist. Checking that directory I found that it was indeed empty.
I then went to https://www.phpmyadmin.net/ and downloaded the zip file into a different location. When I unzipped it, I found js/dist did in fact contain many .js files. I copied all of these files to my webserver's phpmyadmin/js/dist directory. And the problem was solved! I now have a working page.
I hope that helps some of you.
Perhaps I should add that I installed phpmyadmin using the Composer install method (% composer create-project phpmyadmin/phpmyadmin). I did it a second time in an offline directory and again the js/dist directory was empty. I don't know if that means I did something wrong or if that install method is broken.

Object not found - XAMPP

I recently installed XAMPP on my laptop - windows-7 64-bit. I just wrote a very basic and elementary "Hello World" script in HTML. But, however when i'm trying to run it, it says Object Not found. Error 404.
Here's what i'm doing:
Wrote the script.
Saved it as test.html in xampp/apache/htdocs.
Opened the browser, typed localhost/test.html in the space provided for the URL.
The bizarre thing is, i am able to run the index.html file stored in xampp/apache/htdocs. And i'm also able to run the localhost page. But any new page that i'm creating, i'm unable to run it. Please help me solve this problem.
Thank you in advance :)
It seems xampp is not able to locate your file.
Check DocumentRoot setting in XAMPP\apache\conf\httpd.conf to find currently it is pointing to which folder.
If you want you can point it to some other folder like,
D:/phpprojects/
By the way, You sure htdocs is in xampp/apache/htdocs ? Mine is in xampp/htdocs.
if problem is in linux
Folders not should be cut from Windows into Linux
folders permissions not set . change it
You just need to change the root of project from xampp/apache/htdocs to xampp/htdocs.
I mean your project folder has to be in xampp/htdocs root .(e.g: xampp/htdocs/project).
And your project address will be localhost/project