404 Errors on almost every page after Install

Gregory Smith Posted in Beginning Developers 9 years ago

First time using OSSN, it looks like I set everything up correctly. I get a message that its all setup and to delete install folder but I get a 404 error pretty much any page I go to. Admin user seems to get created, but when it forwards to /administrator or any other page i get a 404. Only page that shows up is the main page but it looks surprisingly bland.

At the verification stage it does say that REWRITE isn't enabled but when I apache2ctl -M it's listed so I disregarded and went to the ?page=Setting page as mentioned in the REWRITE mod developers topic.

http://52.7.50.119/

Does not having a FQDN matter? Only other thing I wasn't sure about was the data folder. It defaulted to /var/www/ossn_data which didn't exist. So I manually created it, but its blank.

Replies
Italian Davide - Replied 7 years ago

Hi, on my VPS Centos 6.x OSSN work ONLY php 5.4.
I have blank page after installation.
For blank page verify:

mysqld is started.
php 5.4 version and dependencies for OSSN
check /var/www/html/ossn/configurations/ossn.config.site.php $Ossn->url = 'http://yourdomain.com/'; whit the "/" final.
check the mysql configuration /var/www/html/ossn/configurations/ossn.config.db.php whit your setting.
don't change line 20 in /var/www/html/ossn/locale/ossn.en.php
'powered' => 'Powered by the Open Source Social Network.',
us Gregory Smith Replied 9 years ago

Wanted to update this incase anyone else Ran into the same problems. Gus was right, I hadn't copied the htaccess file. But even after I copied the file it wouldn't work. Syed, I was running apache but after some research apache on ubuntu by default apparently doesn't use htaccess any more.

In my etc/apache2/apache2.conf i changed the var/www/ to "AllowOverride All" as outlined here:
https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles

Reran the install and everything seems to be working so far! Thanks guys! I'm sure you'll be hearing more from me at some point :)

Indonesian Arsalan Shah Replied 9 years ago

I am afraid that the installer didn't notified you that you don't have apache server?

dk Gus McEwan Replied 9 years ago

This is an .htaccess issue, you need to edit your .htaccess

us Gregory Smith Replied 9 years ago

Poking around at this a bit more. I notice a lot of the links seem to be wrong? For example when I click login it trys to load:

action/user/login and 404's.

when i flip through the file folder it looks like it should actually reference

actions/user/login.php

When I view source i have some folders and dont have others. For example I have a vendors folder but not a js/ or css/

Did something go wrong with setup maybe?