I'm having a few problems when I upload my design to my hosting.
Sometimes different things won't load css files, images, jsfiles, etc.
This makes it so my design looks like this. I've checked all my file paths, and they all are correct.
Sometimes my index.php won't even load.
Here's a preview.
Here's another preview when I refresh.
Thank you for the help.
I have contacted my website hosting. They have restarted the server and everything is working now.
The problem would have been that there were 2 servers running on one or something they said. I have no idea what they were talking about. But it helped!
Thanks to everyone who helped out!
If you have Linux Hosting, then the references for css, images, javascript files must have the same exact name. It is case sensitive.
E.g., Style.css is different than style.css and style.CSS for Linux hosting hence it will not load those files and will give file not found error.
And it applies to folder names as well. E.g. if logo.jpg is in a folder named "Images" then reference should have "../Images/logo.jpg". And if you have "../images/logo.jpg" then you get "File not found".
Option 1: Use Xampp
www.apachefriends.org/de/download.html
But if you do, download the version 5.5.38, it works better than the new version.
After installing, close applications that need Port 80, start the Apache, and pull your folder with your stuff in "C:\xampp\htdocs".
localhost/"yourfilename" is the domain you could use it.
Option 2: Use a virtual machine and install a linux server.
Virtual Machine Download
Ubuntu Server Download
Now you can install your Server and open it.
Related
I have a live site that is set up using ubuntu. All my files include a bunch of classes and they are all referenced at var/www/classes/class_name. My file structure is a lot different being on a wamp server.
I don't want to have to go through all my files and change the location to match that of the windows machine.
Is there an easy way to make my wamp server look in a windows directory structure when my php file says to look in var/www?
I don't want to have to go through all my files and change the location to match that of the windows machine.
You should be using relative paths anyway so that this isn't a problem. I strongly suggest going back and fixing your paths so that you can move your code to wherever it needs to be.
I have a live site that is set up using ubuntu.
You should be running your development code in an environment similar to where it will run in production. I suggest using a tool like Vagrant to manage a virtual machine for you that runs Ubuntu and whatever web server you run in production. When you do this, you can also map directories over in any way you like. (You should still solve your path problem though.)
I have a php website that I wrote and is functioning with XAMPP. I would like to transfer this to use cPanel. When using xampp, I had to put all of my files in htdocs folder for it to work properly. What is different now that I am using a different server?
I believe that I have finally figured out what my problem is. I am assuming too much.
When working from xammp in eclipse with localhost/project, if I want to add a file "test.php" I simply add it, save it, and then when I type localhost/project/test.php, there is it. This does not seem to be how cPanel works. Do I need to manually update it somehow? If so, how do I do this?
Also I am using mysite.com/~lamar/test.php which is how it is set up in cPanel. test.php is in S:/Lamar/www/test.php. This may also be the source of my problem.
Any ideas? As of right now I cannot even access any page of my project
Depending on your host, you may need to look for a specific folder, although many times you can just put your files in the root directory that you're taken to once you FTP into the system.
If you login and see a www, htdocs, public_html, httpdocs, or html folder, place your files there.
With CPanel you have to put your files into the public_html folder. As said in the comments, depending on your hosts configuration, it might another folder - in your case www.
The problem that I was having is that Eclipse was not updating to the server. So no matter how much I changed in the files, they were not being reflected on the site. I am using Dream Weaver now instead.
Before everything happened, I was running this wordpress install for developing themes using xampp. But I decided to upgrade the memory of this machine from 2GB to 6GB since I need extra room for applications. I back-up my code in a separate partition by copying them. Since I have a 32bit OS at the time, I format the computer and installed a 64bit version. All is well and fine the OS side.
When I setup my web dev environment something goes wrong.
When I imported my htdocs back, first by just fully copying them to a new fresh install of xampp and notice that all of the codes that put are not working. My CI code is displaying my PHP code in the browser. My theme in wordpress is also commenting out my PHP code when I view the source. The themes included in my fresh wordpress install works so there's something I am missing here.
From the looks of it, the php is being executed properly since anything that I install works. Just that the ones that came from a previous xampp is not.
Open up the php.ini file and set short_open_tag = On. Then restart apache.
If you are opening a local script directly in the web browser, maybe through your editor, double-clicking on the file or dragging and dropping the file ito the browser - it will be treated as HTML only.
Instead, open the file by typing... http://localhost/your-file.php into the address bar. I personally create a projects folder in the htdocs folder and then create a bookmark for... http://localhost/projects/ and this will display all my projects that are saved into my projects folder.
Note: if you changed the mail port for the Apache server, you will need to add that to the path as well. eg. If your main port is 8888, your would do this... http://localhost:8080/your-file.php
I had the same problem and this worked for me. Good Luck
For me, it was because the file was named as ".html". You must have an extension ".php"
I am trying to upgrade joomla 1.5.15 to 1.5.23
I have downloaded the Joomla_1.5.15_to_1.5.23-Stable-Patch_Package from the joomlacode.org.
While trying to install this package from my administrator, the error will be displayed "Error! Could not find an XML setup file in the package.".
Or
Shall I extract this zip file and upload the files to server directly through FTP?
Please advise me..
Any help appreciated.
I would recommend a 3-step process personally to ensure the best possible outcome.
First - backup your site (I LOVE Akeeba Backups 1-touch backup solution); download the backed up site and install on a local host or development server.
Second, do your upgrade there (extract the files from the .zip and put them in the localhost/dev server installation).
Make sure that the upgrade didn't break anything, that everything still works appropriately and as expected and create a backup of the localhost/dev server site.
At that point you know the upgrade won't break anything.
Third, upload the unzipped files from version 1.5.23 via FTP into your root joomla directory (complete the upgrade as listed HERE.
Doing these steps will ensure the best possible outcome and will show absolutely ZERO disruptions on your live site in the event something you're currently using doesn't like the jump from .15 to .23 - which is a large jump and a lot of things are different (including which version of mootools is included!) So take caution and TEST FIRST!
I would advice you to do this::
Assuming you have access to all the files of website.
1.Now download directly 1.5.23 or 1.5.26 version(last update patch of this series.)
2.Extract the files and open them,you will notice them you need to only replace 4-5 files in that patch.
3.Copy each file and replace them with the current files in the existing websites.
Hope this helps.
im doing a php project. all is fine doing it in xp webserver which im using iis..but now i have set up a new pc with windows 7 and iis.
problem is when i copy my php files which is in a folder(e.g portal1) from the xp wwwroot to the windows 7 wwwroot, i cant access it on the browser. it returns an internal server error.
now i assumed i didnt properly set up my web server or even php. i have done it a dozen times following tutorials and im pretty sure its all correct.
i have done a further research on the folder itself and has led me to a theory that this has to do with permissions.
when i copy directly the whole thing,it wont run, BUT if i CREATE a folder and the subfolder with all the same names as the one i copied and just take the php files and put it accordingly, it runs ok!!
now that has something to do with inherited permission i think. how do i overcome this?
i dont want to everytime take the updated work folder from my partner which is done in xp and i have to create new folder and its subfolder with all the same name on my machine and then copy the php files accordingly. thats a lot of work!!
i just want to copy the folder and put it in my wwwroot folder and run it on the browser without problems. how do i overcome this permission issue?
any ideas?
By the sounds of things, you're working on a project with someone else. Copying & pasting is the absolute worst way of sharing files when working on a project with multiple people. You should really be using versioning like git. That's pretty hard to set up and learn though. An easy solution which will work for the time being (but won't manage conflicts well) is to use Dropbox. Set up a free Dropbox account, and create a folder in that called www or whatever you want. Then install WAMP (way better than IIS), and create an alias to the www folder in your Dropbox. Do this on both machines. Now every time your partner makes a change, it will be instantly reflected on your machine, and vice versa. Easy, free, and will work while you learn a versioning tool.
I know this doesn't address your actual problem, but it should be more helpful to you.