[Resolved] The requested URL was not found on this server.

Hi. I installed livestreet on my localhost on my Ubuntu 12.04 with «Xampp for Linux».
After installation when I want to access Blogs, People, Streams I have these errors:

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7


My site is installed in a folder with the name: «livestreet» in the «htdocs» directory.
Adress of my site is: localhost/livestreet
I can access only this page from above, I can't login on my site.

I am a beginner in linux please do not judge me too harshly for lack of knowledge.
I don't know what to do, please help me If you can.

11 комментариев

avatar
Try write in config.local.php
$config['path']['root']['web'] = 'http://'.$_SERVER['HTTP_HOST'].'/livestreet';
$config['path']['root']['server'] = $_SERVER['DOCUMENT_ROOT'].'/livestreet';
avatar
Thank you for help, I have done copy/paste the above code but I have the same error, nothing has changed.
-my config.local.php
<?php
/*-------------------------------------------------------
*
*   LiveStreet Engine Social Networking
*   Copyright © 2008 Mzhelskiy Maxim
*
*--------------------------------------------------------
*
*   Official site: www.livestreet.ru
*   Contact e-mail: rus.engine@gmail.com
*
*   GNU General Public License, version 2:
*   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
---------------------------------------------------------
*/
/**
 * Настройки для локального сервера.
 * Для использования - переименовать файл в config.local.php
 */

/**
 * Настройка базы данных
 */
$config['db']['params']['host'] = 'localhost';
$config['db']['params']['port'] = '3306';
$config['db']['params']['user'] = 'root';
$config['db']['params']['pass'] = '';
$config['db']['params']['type']   = 'mysql';
$config['db']['params']['dbname'] = 'social';
$config['db']['table']['prefix'] = 'prefix_';

$config['path']['root']['web'] = 'http://localhost/livestreet';
$config['path']['root']['server'] = '/opt/lampp/htdocs/livestreet';
$config['path']['offset_request_url'] = '1';
$config['db']['tables']['engine'] = 'InnoDB';
$config['view']['name'] = 'Your Site';
$config['view']['description'] = 'Description your site';
$config['view']['keywords'] = 'site, google, internet';
$config['view']['skin'] = 'synio';
$config['sys']['mail']['from_email'] = 'dadix@qq.com';
$config['sys']['mail']['from_name'] = 'john doe';
$config['general']['close'] = false;
$config['general']['reg']['activation'] = false;
$config['general']['reg']['invite'] = false;
$config['lang']['current'] = 'english';
$config['lang']['default'] = 'english';
return $config;
?>
avatar
htaccess support is enabled in apache configuration?
avatar
And file /opt/lampp/htdocs/livestreet/.htaccess exists?
avatar
I don't have .htaccess.
And this is httpd.conf (/opt/lampp/etc/httpd.conf)
pastebin.com/6pFVnGwZ

Sorry but the code option from livestreet supports only 3000 characters.
avatar
Hm…
htaccess is enabled.
Try in your command line and show results:
stat /opt/lampp/htdocs/livestreet/.htaccess

cat /opt/lampp/htdocs/livestreet/.htaccess

When an error looks like request address?
http://localhost/livestreet/blogs/
or
http://localhost/blogs/
?
Also maybe try clear cache.
avatar
look: www.youtube.com/watch?v=tME9H_AWfgs
stat: cannot stat `/opt/lampp/htdocs/livestreet/.htaccess': No such file or directory

I try to clear cache but nothing change.
avatar
In command line:
wget -O /opt/lampp/htdocs/livestreet/.htaccess https://raw.github.com/livestreet/livestreet/master/.htaccess
avatar
Now it's working! Thanks!
avatar
As far as I understand it's not always necessary to set
$config['path']['offset_request_url'] = '1';

Try this options with default value '0'
avatar
If I set this to «0» I have on first page the next error:
Error: 404

Unfortunately there is no such page. Probably deleted or wasn't there in the first place.


Go back
Go to the main page


And for the rest of page I have the same error as always, nothing has changed.
Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.