Hi all, I wanted to reinstall my Linux so I backup the my drupal site without clearing chache and disabling clean url and without retaining the permissions. I simply use the command in my shell (cp -r /var/www/drupal ~/DATA) and backed up databse using mysqldump
now after reinstalling my OS I just copied my drupl site to same place in /var/www and I set chown www-data:www-data /var/www/drupal/sites/default/setting.php chown www-data:www-data /var/www/drupal/sites/default/files
and restored mysql database properly with same name. setting.php is correct
but when I am opening http://localhost/drupal its showing blank page please tell me where I am wrong? and what went wrong? is it happening because of chache and clean url?
thank you
Check the server logs. 99.99% of the time the answer lies in there. Most likely it could be an out of memory problem with PHP.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 12/21/2012 1:33 PM, Alok Singh Mahor wrote:
Hi all, I wanted to reinstall my Linux so I backup the my drupal site without clearing chache and disabling clean url and without retaining the permissions. I simply use the command in my shell (cp -r /var/www/drupal ~/DATA) and backed up databse using mysqldump
now after reinstalling my OS I just copied my drupl site to same place in /var/www and I set chown www-data:www-data /var/www/drupal/sites/default/setting.php chown www-data:www-data /var/www/drupal/sites/default/files
and restored mysql database properly with same name. setting.php is correct
but when I am opening http://localhost/drupal its showing blank page please tell me where I am wrong? and what went wrong? is it happening because of chache and clean url?
thank you
my apache error log is at http://paste.ubuntu.com/1455398/
I am not able to understand ... could anyone tell me what is wrong thanks in advance
On Sat, Dec 22, 2012 at 12:14 AM, Jamie Holly hovercrafter@earthlink.netwrote:
Check the server logs. 99.99% of the time the answer lies in there. Most likely it could be an out of memory problem with PHP.
Jamie Hollyhttp://www.intoxination.net http://www.hollyit.net
On 12/21/2012 1:33 PM, Alok Singh Mahor wrote:
Hi all, I wanted to reinstall my Linux so I backup the my drupal site without clearing chache and disabling clean url and without retaining the permissions. I simply use the command in my shell (cp -r /var/www/drupal ~/DATA) and backed up databse using mysqldump
now after reinstalling my OS I just copied my drupl site to same place in /var/www and I set chown www-data:www-data /var/www/drupal/sites/default/setting.php chown www-data:www-data /var/www/drupal/sites/default/files
and restored mysql database properly with same name. setting.php is correct
but when I am opening http://localhost/drupal its showing blank page please tell me where I am wrong? and what went wrong? is it happening because of chache and clean url?
thank you
-- [ Drupal support list | http://lists.drupal.org/ ]
On Fri, Dec 21, 2012 at 12:58 PM, Alok Singh Mahor alokmahor@gmail.comwrote:
my apache error log is at http://paste.ubuntu.com/1455398/
I am not able to understand ... could anyone tell me what is wrong thanks in advance
On Sat, Dec 22, 2012 at 12:14 AM, Jamie Holly hovercrafter@earthlink.netwrote:
Check the server logs. 99.99% of the time the answer lies in there. Most likely it could be an out of memory problem with PHP.
Jamie Hollyhttp://www.intoxination.net http://www.hollyit.net
On 12/21/2012 1:33 PM, Alok Singh Mahor wrote:
Hi all, I wanted to reinstall my Linux so I backup the my drupal site without clearing chache and disabling clean url and without retaining the permissions. I simply use the command in my shell (cp -r /var/www/drupal ~/DATA) and backed up databse using mysqldump
now after reinstalling my OS I just copied my drupl site to same place in /var/www and I set chown www-data:www-data /var/www/drupal/sites/default/setting.php chown www-data:www-data /var/www/drupal/sites/default/files
and restored mysql database properly with same name. setting.php is correct
but when I am opening http://localhost/drupal its showing blank page please tell me where I am wrong? and what went wrong? is it happening because of chache and clean url?
thank you
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
You might not have copied and restored the .htaccess file which comes with Drupal.
Neil
On Fri, Dec 21, 2012 at 2:13 PM, Lucas D Hedding lucashedding@gmail.comwrote:
On Fri, Dec 21, 2012 at 12:58 PM, Alok Singh Mahor alokmahor@gmail.comwrote:
my apache error log is at http://paste.ubuntu.com/1455398/
I am not able to understand ... could anyone tell me what is wrong thanks in advance
On Sat, Dec 22, 2012 at 12:14 AM, Jamie Holly <hovercrafter@earthlink.net
wrote:
Check the server logs. 99.99% of the time the answer lies in there. Most likely it could be an out of memory problem with PHP.
Jamie Hollyhttp://www.intoxination.net http://www.hollyit.net
On 12/21/2012 1:33 PM, Alok Singh Mahor wrote:
Hi all, I wanted to reinstall my Linux so I backup the my drupal site without clearing chache and disabling clean url and without retaining the permissions. I simply use the command in my shell (cp -r /var/www/drupal ~/DATA) and backed up databse using mysqldump
now after reinstalling my OS I just copied my drupl site to same place in /var/www and I set chown www-data:www-data /var/www/drupal/sites/default/setting.php chown www-data:www-data /var/www/drupal/sites/default/files
and restored mysql database properly with same name. setting.php is correct
but when I am opening http://localhost/drupal its showing blank page please tell me where I am wrong? and what went wrong? is it happening because of chache and clean url?
thank you
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
On Sat, Dec 22, 2012 at 5:12 AM, Neil Adair neiltadair@gmail.com wrote:
You might not have copied and restored the .htaccess file which comes with Drupal.
Neil
I copied and restored whole drupal folder so i guess there is no point of missing .htaccess file i used cp -r /var/www/drupal/ ~/DATA (for backup) cp -r ~/DATA/drupal /var/www (for restoring)
On 12/21/12 11:08 PM, Alok Singh Mahor wrote:
On Sat, Dec 22, 2012 at 5:12 AM, Neil Adair <neiltadair@gmail.com mailto:neiltadair@gmail.com> wrote:
You might not have copied and restored the .htaccess file which comes with Drupal. NeilI copied and restored whole drupal folder so i guess there is no point of missing .htaccess file i used cp -r /var/www/drupal/ ~/DATA (for backup) cp -r ~/DATA/drupal /var/www (for restoring)
Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.
On Sat, Dec 22, 2012 at 10:01 AM, Richard Damon Richard@damon-family.orgwrote:
On 12/21/12 11:08 PM, Alok Singh Mahor wrote:
On Sat, Dec 22, 2012 at 5:12 AM, Neil Adair neiltadair@gmail.com wrote:
You might not have copied and restored the .htaccess file which comes with Drupal.
Neil
I copied and restored whole drupal folder so i guess there is no point of missing .htaccess file i used cp -r /var/www/drupal/ ~/DATA (for backup) cp -r ~/DATA/drupal /var/www (for restoring)
Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.
but I can clearly see .htaccess file in /var/www/drupal
On 12/21/12 11:47 PM, Alok Singh Mahor wrote:
On Sat, Dec 22, 2012 at 10:01 AM, Richard Damon <Richard@damon-family.org mailto:Richard@damon-family.org> wrote:
On 12/21/12 11:08 PM, Alok Singh Mahor wrote:On Sat, Dec 22, 2012 at 5:12 AM, Neil Adair <neiltadair@gmail.com <mailto:neiltadair@gmail.com>> wrote: You might not have copied and restored the .htaccess file which comes with Drupal. Neil I copied and restored whole drupal folder so i guess there is no point of missing .htaccess file i used cp -r /var/www/drupal/ ~/DATA (for backup) cp -r ~/DATA/drupal /var/www (for restoring)Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.but I can clearly see .htaccess file in /var/www/drupal
You may have set a option to default to showing hidden files, or using a different tool that shows them. On *nix systems, file names that begin with . are special and considered "hidden", and many utilities do not work on them by default. For example, ls the normal file listing tools, only shows these files if you give the -a option.
On Fri, Dec 21, 2012 at 11:31 PM, Richard Damon wrote:
Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.
I've never heard this before and really do not believe you based on experience. Can you please point us to the documentation that states that?
It depends on how the command is invoked:
cp -r source/* destination/
That won't copy hidden files and directories.
cp -r source/. destination/
That will get the hidden files and directories.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 12/24/2012 11:25 AM, Earnie Boyd wrote:
On Fri, Dec 21, 2012 at 11:31 PM, Richard Damon wrote:
Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.
I've never heard this before and really do not believe you based on experience. Can you please point us to the documentation that states that?
Jamie,
I understand this. However, this isn't what Richard said.
The source/* causes the shell to glob the "non hidden" files and pass a list of files to copy. The source/. causes the shell to pass the "specified" directory and is equivalent to source/ without specifying the period. The -r means recursive so that any directories encountered in the list of directories are read and also copied. So if the list globbed by source/* contains a directory and that directory contains "hidden" files those "hidden" files will also be copied. If you want to retain the dates, permissions, owner and group you also need to use -p in the copy command or use -a (a gnu feature) to mean both -r and -p.
Earnie
On Mon, Dec 24, 2012 at 12:30 PM, Jamie Holly hovercrafter@earthlink.net wrote:
It depends on how the command is invoked:
cp -r source/* destination/
That won't copy hidden files and directories.
cp -r source/. destination/
That will get the hidden files and directories.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 12/24/2012 11:25 AM, Earnie Boyd wrote:
On Fri, Dec 21, 2012 at 11:31 PM, Richard Damon wrote:
Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.
I've never heard this before and really do not believe you based on experience. Can you please point us to the documentation that states that?
-- [ Drupal support list | http://lists.drupal.org/ ]
Yeah, I was just talking about copying a single directory. If you want to get hidden files in that directory (non-recursively) then you need to do a cp * and a cp ./.*
And -a is the way to go generally. A lot of people actually don't know about that and resort to the standard -r and have to deal with ownership/perm problems or they just resort to good ole' rsync.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 12/31/2012 12:39 PM, Earnie Boyd wrote:
Jamie,
I understand this. However, this isn't what Richard said.
The source/* causes the shell to glob the "non hidden" files and pass a list of files to copy. The source/. causes the shell to pass the "specified" directory and is equivalent to source/ without specifying the period. The -r means recursive so that any directories encountered in the list of directories are read and also copied. So if the list globbed by source/* contains a directory and that directory contains "hidden" files those "hidden" files will also be copied. If you want to retain the dates, permissions, owner and group you also need to use -p in the copy command or use -a (a gnu feature) to mean both -r and -p.
Earnie
On Mon, Dec 24, 2012 at 12:30 PM, Jamie Holly hovercrafter@earthlink.net wrote:
It depends on how the command is invoked:
cp -r source/* destination/
That won't copy hidden files and directories.
cp -r source/. destination/
That will get the hidden files and directories.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 12/24/2012 11:25 AM, Earnie Boyd wrote:
On Fri, Dec 21, 2012 at 11:31 PM, Richard Damon wrote:
Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.
I've never heard this before and really do not believe you based on experience. Can you please point us to the documentation that states that?
-- [ Drupal support list | http://lists.drupal.org/ ]
On Sat, Dec 22, 2012 at 12:43 AM, Lucas D Hedding lucashedding@gmail.comwrote:
I tried google before posting here. I sent through http://drupal.org/node/1658024 but I could not understand where or in which file I have to make change please me where I have to make this change ?
I change my host from Ubuntu 11.04 to 12.10 and there may be problem with change version of php.
The blank page is because you're getting a php error and error display turned off.
in your php.ini, set error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR and display_errors = On
then restart apache and try it.
-Don-
On 12/21/2012 1:33 PM, Alok Singh Mahor wrote:
Hi all, I wanted to reinstall my Linux so I backup the my drupal site without clearing chache and disabling clean url and without retaining the permissions. I simply use the command in my shell (cp -r /var/www/drupal ~/DATA) and backed up databse using mysqldump
now after reinstalling my OS I just copied my drupl site to same place in /var/www and I set chown www-data:www-data /var/www/drupal/sites/default/setting.php chown www-data:www-data /var/www/drupal/sites/default/files
and restored mysql database properly with same name. setting.php is correct
but when I am opening http://localhost/drupal its showing blank page please tell me where I am wrong? and what went wrong? is it happening because of chache and clean url?
thank you