By tps on
Dear All
I had a server crash.
Server has been reinstalled and mysql data restored.
When I bring up my Drupal site the first page is ok.
When clicking a menupoint I always get "The page cannot be found"
I note that the link on the menu point says ie. /node/7.
If I manually type in /?q=node/7 then the page is shown ok
What did I miss in the restore process after the server crash?
Any help would be appreciated.
Thanks
Comments
Clean Url
admin/settings/clean-urls , enable it.
Can't get to the admin page
Hi vikramy
I can't operate the Drupal site so I can't go to the admin page.
I read a post on changing the clean-urls directly in the database.
I changed clear-urls from 1 to 0 directly in the database but still I have the same problem.
Here you see what I did to change the value in the database - is this not the way to do it?
I even tried to remove the row with name = clean_url in table varialble - did not help
p600 netmaster.dk # mysql -uroot -p -e"select * from variable where name like '%clea%';" drupal01netmaster
Enter password:
+-----------+----------+
| name | value |
+-----------+----------+
| clean_url | s:1:"1"; |
+-----------+----------+
p600 netmaster.dk # mysql -uroot -p -e"update variable set value = 's:1:\"0\";' where name = 'clean_url';" drupal01netmaster
Enter password:
p600 netmaster.dk # mysql -uroot -p -e"select * from variable where name like '%clea%';" drupal01netmaster
Enter password:
+-----------+----------+
| name | value |
+-----------+----------+
| clean_url | s:1:"0"; |
+-----------+----------+
p600 netmaster.dk #
Two simple questions. You
Two simple questions.
You said your server has reinstalled. So is "mod_rewrite for Apache" enabled? For more info you may check this.
http://drupal.org/node/15365
If clean urls has enabled before server crash and I think you have used that copy of backup for this new install right? If thats the case I honestly think clean urls will be enabled in database as well. So just try fixing above issue.
May be you know this. But just a suggestion.
mod_rewrite
I use gentoo linux and I use this command to see apache loaded modules:
p600 ~ # /etc/init.d/apache2 modules | grep rewrite
rewrite_module (shared)
p600 ~ #
As I understand the rewrite_module is installed.
Futhtermore I have this in /etc/apache/httpd.conf:
LoadModule rewrite_module modules/mod_rewrite.so
I can't remember if I used cleans url before. And yes the backup is from just before server crash.
Thanks
disabled clean urls
As I could link my way to admin/settings/clean-urls I constructed the url /?q=admin/settings/clean-urls
Disabling clean urls gives me a warning;
Your system configuration does not currently support this feature. The handbook page on Clean URLs has additional troubleshooting information.
Run the clean url test.
Anyway, now I can operate my site. I will look into the documentation shortly.
Thanks a lot
Glad you figured it out. Good
Glad you figured it out. Good luck.