installation is ok, but 404 Not Found error

I  have successfully 3 different servers for D7. The one on Windows with XAMPP runs perfectly good, but not Ubuntu 9.1 and Fedora 10 (I want to holds D7 on either  Ubuntu or Fedora).  I can login the administration panel without any problem, but problems comes when I start creating accounts or carrying out activities after login.

When I create an account (no problems for the Windows environment), 404 Not Found errors returned.  The message is: "The requested URL /m/avatar/&join_text=_USER_ACTIVATION_SUCCEEDED was not found on this server."

I received an email New user confirmation from my server.

Afterward, I login using the new user account and I was directed to the Dashboard. But I've got the similar errors if I clicked to

"Avatar" - "The requested URL /m/avatar/ was not found on this server."

"Profile" - "The requested URL /frankie was not found on this server."

"Photo" -  "he requested URL /m/photos/albums/my/main/ was not found on this server."

and some more.

I check my server configuration with the information on the Support site, including prerequisite and installation instructions, I don't find any materials difference.


I need your help in solve this issues.

For your information, I install LAMP services using the following:

apt-get install apache2 apache2-utils
apt-get install mysql-server
apt-get install libapache2-mod-php5
apt-get install libapache2-modxslt php5-xsl
apt-get install php5-mysql mysql-client
apt-get install phpmyadmin libapache2-mod-auth-mysql
apt-get install php5-dev php5-gd php-pear php5-curl php5-memcache php5-xmlrpc php5-xsl php5-imagick php5-mcrypt php5-mhash
apt-get install unzip
apt-get install phpmyadmin
apt-get install imagemagick libmagick9-dev


If you want to see the phpinfo() and try to check the errors that I encountered, please pm me, I can send the IP address of my server and you can check the phpinfo from there.

Quote · 19 Apr 2010

Sounds like mod rewrite is not enabled. By default it is not on ubuntu.

It can be turned on with the command sudo a2enmode rewrite

Then restart the apache server.

For fedora the procedure is a lot different and not as simple.

In anycase it sounds like a mod rewrite issue.

https://www.deanbassett.com
Quote · 19 Apr 2010

thanks the advice. mod rewrite enabled, server restarted, but the problems are not resolved.

Quote · 19 Apr 2010

Can you confirm that the .htaccess file is present in the root directory of your installation?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 19 Apr 2010

Check for the presence of the .htaccess file in the root of your site to make sure it got uploaded from the dolphin zip file.

If so then try editing it and add RewriteBase / directly under RewriteEngine on like so.


RewriteEngine on
RewriteBase /


404 errors in dolphin are a mod rewrite problems. So it has to be the .htaccess file, Mod rewrite not enabled, or mod rewrite not allowed for the directory dolphin is installed in. In any case, it's a server configration issue.

https://www.deanbassett.com
Quote · 19 Apr 2010

I also misspelled the command to turn it on. The correct command is sudo a2enmod rewrite

https://www.deanbassett.com
Quote · 19 Apr 2010

No problem about the command to enable rewrite, I change it and restarted the server successfully.

the .htaccess file is found in the www root and I found the "RewriteEngine" is turned on by default.  I added "RewriteBase /" immediate after it, but still not working...

Here are the first few lines of my .htaccess file.

Options -MultiViews

<IfModule mod_php4.c>
php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
php_flag magic_quotes_gpc On
php_flag allow_url_include Off
php_flag register_globals Off
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value max_input_time 3000
php_value max_execution_time 3000
php_value memory_limit 128M
php_value short_open_tag On
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^blogs/{0,1}$   modules/boonex/blogs/blogs.php [QSA,L]
.....

Quote · 19 Apr 2010

deano92964,

Thanks for the hints.  I figured out I have to make change on the apache2.conf (actually, the ./sites-available/default file), but changing to "AllowOverride All" to allow the .htaccess file be able to read.


My server works now!

Laughing

Quote · 19 Apr 2010

This might sound stupid, but can you confirm that your url's are going to the correct directories?  We've seen a couple of times recently people we're trying to edit files one a site and they had the wrong directories (base dolphin directories).  Just asking the real stupid question before to many hours are spent on this. 

Quote · 19 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.