Posted by ujjwala.bhujbal... on January 15, 2012 at 9:10pm
Hi drupal lovers ,
I am having one problem while using Drupal, if anyone knows the solution please please help me.
I have the source code from Client and now the source code has to be integrated in Drupal , so that I can do the required updations in the site.
Can any one tell me how can i integrate the source code in Drupal? ...
=> I have imported the database through PhpMyAdmin (I am using WAMP server).
What should be the next step?
Please help me I am totally stuck at this point and its kinda urgent
Uj2011
Comments
Hi,What kind of source code
Hi,
What kind of source code are you talking about? is it a drupal module? or an export from views/cck/etc? what database did u import?
Thx
Amrit
http://10jumps.com
Hi Ujjwala, Is it Drupal site
Hi Ujjwala,
Is it Drupal site source code and database backup provided by the client?
Please confirm me.
Thanks,
Saurabh Arya
Sr. Drupal Developer
Skype : saurabh.ar
Restoring the database and source code
Hi Ujjwala,
I think you are talking about to restoring the database and source code of drupal directory in different place...
This is very easy steps:
'database' => 'Your Database',
'username' => 'Your User name',
'password' => 'Your Password',
'host' => 'localhost',
'port' => '',
Details of the project source code
Hi Amrit n Saurabh,
I have got the whole 'project' (in cd which includes - all the code in /wamp/www/ Drupal folder) and mysql_database.sql.zip database file.
Its like someone has already (half)developed this site and we have to redesign it/update it.
For this purpose I need to integrate on my local machine the drupal with this project provided in CD.
What I have done is:
1) Copied the project code like Sites and other folders in /wamp/www directory (I am using WAMP Server).
2) Imported the mysql_database.sql.zip through phpmyAdmin in Mysql database.
3) As Third step I should be able to open project through Drupal - For that I have started the browser with address 'localhost' , drupal gets installed.
Now instead of opening the projects dashboard/firstpage - its giving me error like:
"Error: error redirection
The requested site passes the request so that it can never be finished."
Now there I am stuck. Dont know how to go ahead.
Please guide.
Uj2011
You need to first check clean
You need to first check clean URL is enabled or not. Then set 755 permission to all the drupal files and folders.
Also, check the settings.php file is configured properly - it contains the database connection information - You need to change this according to the connection information according to your local machine.
Then, visit the site by localhost and see what's coming - if its asking you to 'install' then it can't find the database you imported - you need to check settings.php file once again.
Or if its giving you the admin or user screens, everything is fine. Also you need to check the .htaccess file whether its being used or not. If not, make allowOverwrite None to All and restart apache.
Let me know the result!
Thx
Amrit
http://10jumps.com
asking to install
Hi Amrit,
I am working on windows.
when I copy my personal project under /wamp/www directory it open properly.
now when I copy the customer given project then it asks me to install Drupal
Database username is there in the settings.php file. (password is necessary?) , For my sampl Site I didnt gave the password and it worked.
I am not able to open the drupal browser so cant make the clean URL enable.
As u said when it asked me to install the Drupal again for my Customer project I have checked the settings.php and it was having
$db_url = 'mysql://root@localhost/myDBname';
but I am using localhost with port 90 so does it matter (if it does then how did it work for my own sample site)
I am totally confused.
dont understand at all whats going wrong any how.
How do i check if .htaccess is being used or not?
ujjwala
Hi Ujjwala, It seems you have
Hi Ujjwala,
It seems you have not imported the database or database name is incorrect in settings.php.
"myDBname" is the database name you have created on your local machine.
Thanks,
Saurabh Arya
Sr. Drupal Developer
Skype : saurabh.ar
Hi Saurabh, no its my DB name
Hi Saurabh,
no its my DB name actually which i replaced here in link with myDBname but in settings.php has the DB same as what i have imported.
Ujjwala
now getting blank page
now its giving me blank page (I have tried with and without DB password)
but same output ... only blank page now
please help some one
Check apache's mod_rewrite
LoadModule rewrite_module modules/mod_rewrite.so
Check this section in same file change 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
#
AllowOverride All
#
Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
-Chintan Umarani
www.umarani.com
Hi Chintan, yes whatever u
Hi Chintan,
yes whatever u have stated above is set and done already .
My question further would be: I am using localhost with port 90.
Where all do i have to update that localhost should listen to port 90?
may be thats causing problem i feel ... not sure...
Integrating source code
Hi Uj,
I hope this could help you..http://drupal.org/forum/37
Ajay
That means your are accessing
That means your are accessing localhost : http://localhost:90
If gives you "IT WORKS" page
Then port is not issue.
Still Try to access it on default port : 80
Listen: Allows you to bind Apache to specific IP addresses and/or
ports, instead of the default. See also the
directive.
#
Change this to Listen on specific IP addresses as shown below to
prevent Apache from glomming onto all bound IP addresses.
#
Listen 0.0.0.0:80
Listen [::]:80
Listen 80
-Chintan Umarani
www.umarani.com
Hi Chintan, I have tried
Hi Chintan,
I have tried using the list of Listen given by u , but my WAMP server is showing it orange , tht means its not working.
Also with Port 90 which I am currently using I dont get IT WORKS page rather I get blank Page.
Ujjwala
ok then. That means apache is
ok then.
That means apache is not listening on port 90 or 80.
(Any other service may be using these ports)
Just check the ports. for that you need to open windows command promt
netstat is command to list all services and their ports.
type for 80 port check
netstat -aon | findstr 0.0.80
Result will 5 column table we need last column take id form that for example 560
tasklist | findstr 560
this will give you name of that service which is using port 80 /90
terminate that service and restart your apache it will work
I tried to kill the PID 4
I tried to kill the PID 4 which I got thr netstat command but its saying :
ERROR: The process with PID 4 could not be completed.
Reason: Access is denied
This is the error after Force killing.
I have observed when I open the internet browser and check at the same time whether the internet browser is using port 80 then yes it does.
bcoz list after netstat -aon | findstr :80 command is having some system processes and some are of internet browser.
And those get automatically killed after I close the browser.
But System processes are not deleteable from Task manager and also not thr taskkill command.
Generally what happens like
Generally what happens like skype or any other services uses port:80 then apache is not able to listens on same port.
but you are not getting any service in netstat command(except sys & IE) then its fine.
We need to figure out something else.
If you have time then
If you have time then uninstall WAMP and iinstall Xampp insted of it has good control panel :
http://www.apachefriends.org/en/xampp-windows.html
Is Skype install in your machine
If Skype install in your machine it will also use same port means 80.
So please stop it first and after that start your server.
Regards
Avanish
skype, IIS, .NET ...
Hi Ujjwala,
Is your WAMP Icon in the tray full white or yellow or red?
Please check what service is using port 80 & either disable those services or make apache of WAMP to listen to port 81.
Sree
Guys this is my current
Guys this is my current situation.
I have WAMP server and need to redesign existing Drupal site (on windows), Steps I have done to integrate the existing project code with Drupal
(So that I can start customizing this site with Admin Access):
1) copied all code to /wamp/www/drupal directory
2) imported required DB through phpmyadmin in Mysql under My database name.
3) Now I try to open my Drupal folder like: localhost:81/drupal
************But I get blank page no data displayed.**************
I) I have checked Settings.php : db_url is mysqli://root@localhost:81/my database name.
II) Checked if .htaccess is being called : AllowOverride is set to All and mod_rewrite is uncommented.
III) In Mysql - for User table Host i have set to localhost:81
In settings.php and in index.php also localhost:81 is set.
I have tried without setting localhost:81 and keeping only localhost at obove locations.
IF any one please can help me that would be greatest thing ever.
I have no clue how to go ahead and totally stuck at this point.
Any help would be much much appreciated.
Thanks
Uj~
This is called "White Screen of Death"
check this link http://drupal.org/node/158043
Integrating in D6
Hi Uj,
You can just dowload the backup of that old site by installing backup and migrate module.
With Backup and Migrate you can dump some or all of your database tables to a file download or save to a file on the server, and to restore from an uploaded or previously saved database dump. You can chose which tables and what data to backup and cache data is excluded by default.
So that you can start redesigning your site.
Regards
Ajay
Integrating in D6
Restore the dowloaded file onto the newly installed drupal site using the same backup and migrate module, so that you will see your old site.
Aj