A very rookie question but I was not able to find any good answers.
I uploaded 3 php files to my host using FileZilla. One of my php files (name is dbtest.php) is connecting to a database and it should display "Success" if the connection is successful ("error" if not)
My host is 188.166..
My question is how do I view the php file output in the browser?
When I was uploading to my localhost, I can access the file as such: 127.0.0.1/{foldername}/dbtest.php but when I try 188.166../{foldername}/dbtest.php I get an error saying "The requested URL /vod_api/dbtest.php was not found on this server."
But I can access the file using:
ftp://188.166../{foldername}/dbtest.php
Although it doesn't show the output ("success"/"error") It just shows the php code
UPDATE
The url is 188.166.{number1}.{number2}. The asterix I used have got cut off
ok, you need to put it in public_html folder. not all the folders are accessible on web, some of these folders hold server settings and some are for your php application use only.
Edit: the public_html folder can have different names depending upon server. like www. best if you check with your hosting provider for details if you can't find the www or public_html folder.
For more help you can see here.
Related
I have uploaded my .php files into cPanel. lets say my main domain is abcde.com. Then I created a subdomain called gisWeb.
Now in file manager under /home/abcdec I can see a directory called gisWeb.abcde.com. I uploaded an index.html file into this directory and tried to run it by browsing http://gisWeb.abcde.com/index.htmlbut I'm getting site cant reach page. `
We can’t reach this page.
Try this
Make sure that you’ve got the right web address:`
How can I access my files.What should be the url?
Please help me.
Thanks
Problem could be one of these.
1. Sub-Domain you created may not have propagated.
2. You may need to put the files in public_html folder inside gisWeb.abcde.com
I'm working with a website that I didn't build, that uses CodeIgniter as its framework. I had a relatively simple task: secure the site with an SSL certificate. No problem.
Except, the site will not load with HTTPS, although it still loads correctly using HTTP. It gives the following error with HTTPS:
Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php
Now, the error message seems self explanatory...change the system path in the index.php file, but this is what the system path is set to in that file:
$system_path = '/codeigniter/2_1_3';
Fine, but this folder doesn't exist in the directory structure, and neither does a folder named 'system.'
So, I really don't have a clue how to fix this problem. It isn't even clear to me how the website functions at all since I can't find the folder it is supposed to be using as its system folder.
Any help would be appreciated. Please ask if there is any additional information you need to help.
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 just installed Wordpress on my virtual hosting server and am able to access the admin interface. I can write posts and make new users, but can't seem to be able to upload images/media. I keep getting the same error: “'wrc4.jpg' has failed to upload due to an error"
I have googled this problem and searched through forums, but I can't find a case like mine.
The path that wordpress is attempting to write to is a combination of the absolute path and the virtual path?
E:\Sitename\blog/wp-content/uploads/2012/03
The absolute path that it should write to is:
E:\Sitename\blog\wp-content\uploads\2012\03
and the virtual path would be:
http://sitename.com/blog/wp-content/uploads/2012/03
How can I change the wordpress settings so I don't receive this error?
You may want to check your upload's folder permissions, especially the write permission.