My personal website only displays:"It Works" when I access it, how do I change it?
After installing a new harddrive and Snow Leopard on my macmini I can't access my website from a browser. It does access when I type in the address on my network in my browser followed by:"~username". The only thing it displays when I type in my "http://xx.x.x.xx/" address in my browser is: "It Works". I've seen mulitple posts regarding this problem on the Web but I was looking for a way a novice like me might be able to correct this! Please help!
Two approaches...
-- command line --
From the command line, launch Terminal.app from the Applications > Utilities folder, and issue the following commands:
cd /Library/Webserver/Documents
cat index.html.en
That command sequence shows the HTML file that is the root file on an Apache server on Mac OS X client.
If you wish to edit the contents of this text file, use the following two commands:
sudo cp index.html.en index.html.en.save
sudo pico index.html.en
The sudo request will require an administrative password be input, as these files are protected against general access. The first of the two commands creates a copy (cp) of the file, which you can use to recover the original file, if that's needed. The second command (pico) invokes a text editor, and some on-screen text-editing commands will be displayed at the bottom of the display.
There are other text editors at the command line, but pico is usually the easiest for a new user. You'll use the control key and a letter - as will be shown on the bottom of the pico display - to perform whatever file changes you might require.
-- GUI --
To use the GUI and to avoid using the command line (and which is going to be a bit of a problem going forward, as the command line is how most of Apache is managed on Mac OS X (client) systems), you can use the following sequence:
Download and install the TextWrangler tool (this or an analogous tool is necessary, because the default TextEdit tool doesn't work with the following sequence), select the File menu and select the Open File By Name item, and enter the following file into the search box:
/Library/Webserver/Documents/ndex.html.en
You can then access and modify the file from the GUI.
-- Caveat --
Do not use Microsoft Word, nor Apple iWork Pages, nor the TextEdit tool, nor any other tool that can't read and write a simple text file, to edit the Apache HTML files and related. While some of these other tools might be able to read the file, most of (all of?) these will be unable to write text files using a format that Apache and related can read and correctly process.
-- Caveat --
I am specifically differentiating here between Mac OS X - what I'm referencing as "Mac OS X (client)" - systems and Mac OS X Server systems. The Mac OS X Server package is a configuration and upgrade that adds various tools and features to Mac OS X (client) systems, and part of the Mac OS X Server package includes easier management of web sites. Mac OS X Server and its web directories are generally managed somewhat differently from Mac OS X (client) systems. If you don't know what you have and if you didn't buy Mac OS X Server (directly, or as part of a Mac Mini Server or Mac Pro Server configuration), then it is likely that you have the Mac OS X (client) configuration. Most Mac systems are sold with Mac OS X (client) software.
Similar Messages
-
IPhone4 Upgraded to IOS 7.1.2. Photos associated with Contacts now display as thumbnail pictures when receiving calls . How do I enlarge display.
You weren't the only one that wanted the full screen photos back. There were a lot of complaints and they are back in iOS 8 but that doesn't help you with iOS 7.1.2 unfortunately.
-
HT2995 Only one speaker works when playing music. Is this normal?
Only one speaker works when playing music. Is this normal?
This being the Mac mini forum, I naturally presumed you were asking about a mini. But in any case, there's only speaker in an iPhone as well.
Regards. -
Why does only one headphone work when i listen to music? I have to hold the base of the cord in a certain position for it to work, it does this with all headphones i try, what do i have to do?
You can try cleaning the headphone jack. However, I suspect that th headphone jack needs replacement.
Apple will only exchange your iPod for a refurbished one for this price.
Apple - Support - iPod - Repair pricing
A third-party place like the following is less expensive. Google for more places.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens -
I'm not happy at all with my Ipad I only had it for a few monthes and I found a lot of things wrong with it like it wont charge only one earbud works when i watch videos or listen to music but both work when I'm facetiming
Contact Apple to take advantage of your standard 1 year warranty.
-
I have a 15 inch mac book pro running osx 10.5.8. I recently moved to Florida and switched to Comcast (the only option). Now when I access my bank website, I can get past the login to my account page but the data is permanently unavailable. The bank says no one else has this problem. Everything is up to date as far as software is concerned. . .I just update anything that comes up. I have not had this problem with this computer anywhere else and I am not having a problem with any other website. I have the problem with both Safari and Google Chrome.
Harden your Mac against malware attacks
-
I want to hide certain pictures in the "Gallery"so only I can see when I want. How can I do this?
Sometimes depending on the SD card (you set the sd card to be where photos are sent) and then place a security code on the files and photos. I know this can be done on a computer not 100% sure about a cell phone.
Another option is to have the photos sent to Picassa (going to be Google+ shortly) or Photo bucket or other web spots for photos or even Drop Box etc. this way your photos are away from the phone, and only the ones on the phone you don't care about remain on the cell
So I hope it works out ok for you. -
I changed language (based on an answer in this forum) from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US?
Should I just export my bookmarks, uninstall and reinstall the proper version? That may just be shorter than anything else.GREAT!. Thanks a lot for educating me. There seem to be a million things we have to learn about our computers and when we run into them the first time they seem insurmountable. You pointed me to the solution. Thanks again. Ben
-
i have a slight crack in my mac book pro screen it is just on the top of the screen and the LCD display is working fine. i was wondering how much it would cost to fix it/ replace it. it is not a pressing matter but if it is cheep to fix then i would like to do so
Most of us wouldn't know that here. Call your Apple Store.
-
when i open safari 8.0 it never open in the full screen mode.....only the small window.....how can i change this? thx
I have the same question. This is also made more difficult as apple has taken away the handy full screen icon on the upper right hand corner.
-
I can't get the Siri dictation tool to work when I access the Internet via Wi-Fi at work. It will work if I access the Internet with a cellular connection. What can I do to get it to work on the Wi-Fi?
Thanks for your note. My tech dept could not come up with any explanation for the dictation tool not working. We have about 1,000 employees in our office - I think I will send an all employee message to see if anyone else has the issue.
-
I signed up for my apple account while living in Canada, and now I lives in the US. I am looking for a specific app that apparently is only available through the US app store. How can I change my account to the US Apple Store?
As long as you have a form of payment (credit or debit card) with a USA source, and with a billing address in the USA, then you just need to change your payment information on your account to that, change your country in the store settings, and you will then be able to shop in the USA store.
Your AppleID will work in any country's store, as long as your payment source and billing addres are also specific to that country (and you are in that country as well, as there may be IP filters in place to stop use outside of the country). -
I already have changed my apple id. But whenever I update any application, it is asking the old app id and password that is not a working e-mail already. How can I change my app id?
So you made a new Apple ID? Unfortunately that won't work. Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one ID to another and Apple does not merge Apple IDs. What should have been doen is mearely change the email address that was associated with the Apple ID.
http://support.apple.com/kb/HT5621
The only way that you can do this now is with a new email address if you used your current email address for the new Apple ID. -
I want to put read emails in trash by swiping to the right, but it only gives me option to archive instead. How can I change that to trash?
How about swiping the massage you wish to delete? Do you get a delete button? Does it work?
-
I locked myself out of my phone and am out of the country without access to a computer only an iPad to email and access iCloud how can I get into my phone
Hi Myreiac,
Here's what the Apple Support site says you can do if you do not have access to a computer when your device has been disabled:
If you are using Find My iPhone, you can use Remote Wipe to restore your device. If you have been using iCloud to back up, you may be able to restore the most recent backup to reset the passcode.
You can access Find My iPhone via the Find My iPhone app on your iPad.
Good luck!
Cheers,
GB
Maybe you are looking for
-
Old code not working in 11.5
For years I used the following code to open a .pdf file with a stand alone .pdf reader that does not require installation. open "resume.pdf" with "Foxit Reader.exe" When I converted the old director file from MX to 11.5 and tried to execute the code
-
PDF XChange annotations are not saving (temp folder problem?)
Hello, I'm having a problem with the XChange PDF viewer within Firefox: When annotating a file outside of Firefox, I can save the changes and have them reappear when I close and re-open the file Doing this inside Firefox, I cannot, it appears that th
-
Watching price condition in sales order during configuration product
Hello evrybody, I have a little question about product configuration during the sales order creation. I have done all my configuration structure and I have add prices on certain characteristics. However, I would like to see the price of each value of
-
Hi Please help me, I install a WIC-4ESW card in Cisco Router 1760 then I got the following error messages: *Mar 1 00:00:09.247: %ESWMOD-3-NOT_RESPONDING: Ethernet Switch Module is not responding *Mar 1 00:00:09.247: %ESWMOD-3-INITFAILURE: Initial
-
Iphone4 not responsing after software update
I've got a standard iphone4 and I was reminded that I have to update my iphone system. And I followed the guidance and went to the general screen. After it finished update and reinstallation, the phone automatically shut down. While I was thinking it