Broken index, w/o formatting and graphics

Oliver Mankewitz Posted in Technical Support 5 years ago

Hi!

I tried to install OSSN on my dedicated and run up in to the MODREWRITE missing problem.
I checked the "/etc/apache2/mods-enabled" directory, the nodule is activated. Double checked with apache2ctl -M which results in "rewrite
module (shared)".
Skipped the check with calling "<domain>/installation/?page=settings". Entered all the credentials and datas, with no problems.
Now, calling the main page of the fresh install results in a "broken" page. No graphics, no formatting.
Entering the credentials after clicking "Login" , throws a 404 error (Page not found) - URL: <domain/<username>).
What do I miss?

OS: Ubuntu 18.04.3 LTS
PHP: 7.2

Regards,
Oliver

Replies
German Oliver Mankewitz Replied 5 years ago

Sorry for the late reply. Lost my accontcredentials and the password reset function on this site didnt worked properly... anyway.... Setted up a new server with a fresh Ubuntu. Now, all is working fine.
Thanks for your help.

German Michael Zülsdorff Replied 5 years ago

Any news on this one?

Indonesian Arsalan Shah Replied 5 years ago

Server throwing 500 error check the error log or simply re-image the server follow : https://www.howtoforge.com/tutorial/how-to-install-open-source-social-network-ossn-on-ubuntu/

German Oliver Mankewitz Replied 5 years ago

Yes, the uploaded files and directories are initially owned by root. I changed the user/group after the upload.
What I was wondeting about was that the /var/www dir was owned by root.
I changed it with the command given from my previous post.
Now, all files and directories within the /var/www dir and the www-dir itself are owned by www-data.
But now the server is throwing a 500 error.

Indonesian Arsalan Shah Replied 5 years ago

Make sense as its uploaded by your root user.

chown -R www-data:www-data /var/www/
German Oliver Mankewitz Replied 5 years ago

It was owned by root! (why, btw.? fresh install)

Okay. Did chown www-data:www-data -R * just to be sure all directories bemeath "www" are owned by apache.
Now, refreshing the site, it throws an error 500.

Indonesian Arsalan Shah Replied 5 years ago

Make sure /var/www/ is owned by Apache user

German Oliver Mankewitz Replied 5 years ago

Hi, Arsalan!

Cache disabled and the layout appears. Enabling the cache breaks the layout again.
Should the cache not be enabled?
Flushing the cache doesnt change anything....

Indonesian Arsalan Shah Replied 5 years ago

Go to admin panel and try to flush cache

German Oliver Mankewitz Replied 5 years ago

Hi, -Z-!
Thanks for your reply.

It is now! :roll eyes:
I can navigate to the login-page and can login.
But: I have a broken layout, it's like no CSS-file is read .