Where do I put cpanel backup files on www folder? - ubuntu-16.04

I am using lamp to test a cpanel backup on ubuntu 16.04.
The website is a prestashop 1.4 bunch of folders.
enter image description here
As you can see in the image, there are many folders within folders. What do I put on www folder to show up on localhost?
I added the "public html" folder in it but it says 404 not found.

Assuming you have everything routed properly in php and you have your config setup accordingly, you should put all of it in your www folder.
Put all of your files in www, then start your webserver and try to open products.php (per example) in your browser.

Related

can't connect local site to Iphone with XAMPP

Ive build my site on wordpress and using xampp
i want to test my new dev site on my remotely on my iphone and ipad via wifi
They're both connected to wifi
When i search iphone http://000.000.0.00 or http://000.000.0.00:80, :8080
it comes up with a link to a folder , which is my true path
when i click on this next sub folder , i loop back round to 127.0.0.1
As i guess iphone doesn't know where to find my site contents
I've tried renaming my wordpress site the with the http://ipaddress, :80, :80;80
ad it comes up with an error
ive found in my XAMPP index.php file
The footer seems to send me to 127.0.0.1/dashboard/
i can view this from my iphone
i've tried changing that footer on index.php to my site path
As well as deleting the file all together
Deleting the file allowed me to access more folders but not into the subfolder where my site remains
I've read through questions and tutorials but can't seem to find a solution
i was wondering if i've missed something or if i need to configure files in such a way , maybe to this index.php for XAMPP itself to get it to point at my site as a default
Thank you in advance
Check if your files are in htdocs or you have given correct path to your working directory in your httpd.conf file.
If the directory is correct and you have run your php pages already, I suggest you use ngrok for remote connection to your localhost.
https://ngrok.com/download
it is simple to use.
to run it go to the directory of ngrok in cmd and type ngrok http 80 while your XAMPP servers are running. It will provide a link that could be accessed through internet by any device.

Using index.html for Hugo file serving

I am able to serve a Hugo web site on port 1313. I don't have access to port 80, but I can write index.html and the public_html directory. How do I configure Hugo so that my site is served from mydomain.com instead of mydomain.com:1313?
You don't need to run as a server. Build the site by just running command "HUGO". This will generate a public or output folder. Copy the contents of the public folder and past to the publich_html directory of your hosting. This will work like normal HTML pages.
For the development purpose only we need to use as "HUGO SERVER"

Deploying a Static website on Server

I am trying to built a static website using godaddy server. I created a folder say Manage inside public_html in which there is an index.php. Now when I am trying to open this page on browser with URL "www.mysite.com/Manage/index.php" It is showing error, File not found, 404 error. So what possible error I might be making?
There could be a few reasons. If you are using an RHEL-based distribution for your server, you need to edit the master Apache configuration file /etc/httpd/conf.d/userdir.conf and change two things:
Change UserDir disabled to UserDir disabled root
If #UserDir public_html is commented change it to UserDir public_html
This tells Apache that the directory containing each user's html files is a subdirectory of their home directory called public_html.
You may also need to change the permissions of your user directory and your public_html directory to allow Apache to read and execute inside them. To do this, run the following commands:
sudo chmod o+x /home/myusername
sudo chmod o+rx /home/myusername/public_html
Restart Apache and see if it works.
The source for this knowledge is not my brain. It comes from the wonderful course at Washington University in St. Louis CSE 330 Rapid prototype development.
At first look to error.log. If you use nginx find in /var/log/nginx, if httpd in /var/log/httpd.
And what do you mean about "static"? PHP preprocessor generate html from *.php files, so you index.php is not static.
For this case you need to setup LAMP stack.

XAMPP - how to set root folder of website in htdocs?

I installed XAMPP and created simple website (a folder 'website' in htdocs folder) that contains a link Info.
If I type localhost/website in browser I get a default homepage. But if I click the link, it goes to localhost/info (which does not exist), instead of localhost/website/info. I could use <a href="/website/info">, but it would be weird to refactor all the links when changing site name.
So what is the usual setting or solution that people uses when developing sites in XAMPP?
You have to change DocumentRoot in httpd.conf file to folder. In your example where you have website directory.
For more sites, you have to have more hosts and then set virtual hosts.
Here is link how to do that in Win. But point is the same in all OS.

In htdocs htaccess file not found

where the htaccess file stored in htdocs folder.
I try find it in my development server but i did not find it.
Whenever i try to type url which is not valid it is redirect to home page of site.
I am not able to find out where setting will be stored.
Thanks
Depending on what OS you use, Linux will recognize the .htaccess file as hidden Windows doesn't.
The .htaccess file could be in the root folder of your webserver (htdocs for example).
But it doesn't need to be there by default. If it is not in there by default you can just create one your self
Are your trying to find with server machine by connect with FTP via Filezilla.
If filezilla means you can't see the htdocs file, instead of that you can connect with Winscp means you can find the .htaccess file