Broken index, w/o formatting and graphics

Oliver Mankewitz Posted in Technical Support 2 weeks 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 Arsalan Shah Replied 2 weeks 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 2 weeks 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.

German Arsalan Shah Replied 2 weeks ago

Make sense as its uploaded by your root user.

chown -R www-data:www-data /var/www/
German Oliver Mankewitz Replied 2 weeks 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.

German Arsalan Shah Replied 2 weeks ago

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

German Oliver Mankewitz Replied 2 weeks 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....

German Arsalan Shah Replied 2 weeks ago

Go to admin panel and try to flush cache

German Oliver Mankewitz Replied 2 weeks 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 .

German ~Z~ Man Replied 2 weeks ago

Can you confirm that

AllowOverride All

is part of the directory directive of Apache's main configuration?