Drupal node not found after migrate to another server.


------ example of web page -------
404 Not Found
Not Found
The requested URL /node/108 was not found on this server.
Apache/2.2.3 (Fedora) Server at 172.16.160.19 Port 80
-----------------
Why your drupal node page not appear:
This is may be because your 1. httpd config file is not set up to read your drupal .htaccess configuration file, 2. you drupal site used clean url; try this solution to make sure that your clean url configuration is read by your web server, but be awere that i'm testing this setting on Fedora Core 6.
Open and edit the configuration file of your webserver, for Fedora Core 6 that use Apache web server the configuration file may locate at /etc/httpd/conf/httpd.conf . But before you make any changes to the file, make sure backup it first.
1. make backup of httpd.conf:
[root@fedora ~]# cp -pr /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
2. Then edit the httpd.conf with your choice of text editor:
Note: the configuration file: /etc/httpd/conf/httpd.conf
3. Make sure the rewrite_module is load:
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
+++
more module here
+++
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
+++
more module here
+++
4. Change the AllowOverride None to AllowOverride All
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
---- EDIT THIS LINE AllowOverride None
AllowOverride All
</Directory>
5. Change the AllowOverride None to AllowOverride All
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
---- EDIT THIS LINE AllowOverride None
AllowOverride All
6. Save your httpd.conf
7. Restart yor httpd server:
[root@fedora html]# service httpd stop
Stopping httpd: [ OK ]
[root@fedora html]# service httpd start
Starting httpd: [ OK ]
[root@fedora html]#
then try again....
- drupal's blog
- Login or register to post comments
- 5408 reads
- Email this page












