I had setup wordpress project in main url : www.example.com with help of cyber panel in aws-ec2 free hosting.
I had domain and setup wordpress via cyber panel.
Now, I want to setup small php project inside this like: www.example.com/mysmallproject
I had create folder : mysmallproject and add all files. its working well. I can access php file via browser.
ISSUE : I had created database via cyberpanel and assign domain.
It has username and password.
NOW, I need to access database. it requires username, password and database name and server name.
I have username, password, database name. But i dont know "SERVERNAME". I tried to get servername from my wordpress configuration file but its not working. Any suggestion will be appriciated. Thanks
The server name is your EC2 IP address or you can use "localhost".
Related
I'm trying to copy website made in Magento in my localhost and finished another steps:
downloaded whole website via ftp account,
import database from server,
change parameters for database in local.xml (post root for user and empty
field for password),
clear cache in Magento var folder,
change base_url value in database
When I try to open it in browser, Homepage looks ok, but any link in page give me Error 404 - Object not found. I can't access to admin panel. Anything what I type URL after localhost/nameOfMyProject, I get Error 404.
I have 2 other Magento projects in my localhost and they work correctly, but both of them I installed from fresh Magento installation and then add new themes for them.
Here is different situation. I need to add whole existing project from server in localhost. I can't add this website on same way, because developer who made it changed files into core section. Project is too big it's not possible at the moment to change that, so any way is to download whole project in localhost.
Does anyone has some suggestion what to do?
Best Regards,
Mladja
Check you also downloaded the .htaccess file and mod-rewrite is enabled in your apache conf.
To access to admin panel try: localhost/nameOfMyProject/index.php/admin
I am new to deploying websites to a remote server. I have been searching for the steps that I should follow to do that for a long time but have not found any results.
here is what I have done 'til now:
1- I used a free web hosting called 0fees.us.
2- Got sub-domain name from the web host.
3- Upload my files as .zip in htdocs directory using the online file manger in cPanel.
4- Upload my database using mysql in cPanel.
5- Change the database configuration in the my website.
After that I typed the sub-domain in the URL field but it get a browser error says:
the connection to the server was reset while the page was loading
What else should I do, so I can type the domain name I see my website on the browser?
Change/configure nameserver settings that points domain to your server ip address.Delete the default index page. And rename the main page you want to display initially to index.html or index.php
I currently have the following problem and was hoping that you could help me. I am busy building a website with a login system in Dreamweaver cs5. My login is created and I set up my testing server as the domain I am creating the website for.
This testing server does connect successfully. After this I am trying to establish a MySql connection. I insert my connection name which is dbConfig as well as the information of the MySql database that I set up on cpanel for this domain. I then get the following error:
HTTP Error code 404 file not found.
I don't know where to go from here as I have never worked with php or MySql before and am unsure of where to go from here.
If it is parent domain then you need to upload your files to "WWW" folder from FTP. There might be a case where you may not see "WWW" folder. Some hosting cpanel have different default folder to upload files. For Example: Godaddy hosting cpanel has "html" folder where you can upload your files. But almost all other hosting has "WWW" folder. If you are uploaded to subfolder For Example: www/test then to access your files you need to check like "http://example.com/test/" . OR if it in root folder then you just need to go to your domain url "http://example.com"
I have a hosted drupal website (in zipped folder). I wish to copy it on localhost using XAMPP.
I have extracted the website folder (which is "myFolderName") and copied it to C:/xampp/htdocs.
But when I type localhost/myFolderName, it gives
Site off-line
The site is currently not available due to technical problems. Please try again
later. Thank you for your understanding.....
The mysql error was: Access denied for user 'newdb'#'localhost' (using password: YES)"
To overcome this, I checked the settings.php file and it had $db_url = 'mysql://newdb:mypass#localhost/newdb;
So I tried to create a new user named newdb with password mypass on a newly created database newdb. But how can I import database and remove that error I listed above ?
I searched the myFolderName folder for .sql files, there are no such files to import in xampp.
I have mysql user and password both of the hosted website and when I remote login (using ssh on ubuntu), then I see a few databases and many tables but I am unable to locate these in myFolderName folder.
I just want to change a few images, add a few links and paragraphs and some php scripts to my website by first trying it on localhost before doing it directly on the hosted drupal website.
Moreover, the hosted drupal interface( at aws.amazon.com )does not allow to change certain portions of my website as the original hosted website was made using both hardcoded html and other scripts along to drupal editing.
Please help me as I am very new to drupal and want to change on my localhost (XAMPP) using html and php codes rather than drupal interfaces.
Finally, found it myself !
I used mysqldump -u newdb -p newdb > mydatabasefile.sql
where the first instance of "newdb" was my username and the second instance of "newdb" was my database name.
It prompted for a password which was "mypass" in my case.
Later, I imported this .sql file into my "newdb" database already created in xampp
I downloaded a WordPress website and copied it to a folder on localhost.
However the it's asking me for a database name which is WordPress as I created a database in phpmyadmin.
Then it asks for User Name : no matter what i type it does not accept it, the same goes for Password: and Database Host Name. I have no password on phpmyadmin i login as root and there is no password.
Can anyone help me with this please?
If you're really sure what your username and password are and still not working, you should download again wordpress... I've setup a few times Wordpress locally and I found it very simple. (Change directory name, different database name and so on).