I open up my httpd.conf file in TextWrangler and make some changes. When I restart my servers, I can see the new code vanish.
I've Google'd for help, and this is apparently a common problem. One solution that worked for some people is to copy the httpd.conf file to another file, modify it, then drag it back into its original folder. But that doesn't work for me.
Some suggested changing the permissions under Get Info. However, it says I already have Read & Write privileges. I then changed it so that EVERYBODY has Read & Write privileges.
I've also found suggestions for some sort of "sudo" operation with Terminal, but it sounds complex - and a little dangerous. I don't want to mess things up.
I found a similar discussion # How to change Apache httpd.conf file on Mac OS X? but it sounds pretty technical. Is there a user friendly way to modify a httpd.conf file on a Mac?
I'm using Max OS X Lion, by the way.
Related
I just installed phpmyadmin on my local machine. However, the images for any of the buttons are not showing up. I tried installed a new theme, same thing. When I go to the images folder, they are all there.
I read one post where a user had to allow proper read permissions through IIS. I've beenn clicking permissions, but I think I'm a bit lost as to finding the right setting.
Does that make sense to anyone? :) - I am looking for step by step instructions on giving the proper read permissions so that the images can display when I load phpmyadmin.
Thank you.
If anyone else has this issue, it has to do with allowing IIS user permission to c:\temp, if that's where your PHP temp file folder is. You can check this by running phpinfo() from within a php file.
Unfortunately, I was messing with so many permissions, I'm not sure what exactly did it, I just know that it had to do with the temp folder.
I'm writing an app that needs to overwrite a read-only file. Specifically the /etc/hosts file. To do that I need to ask for permission from the user to get root access and thereby permission to overwrite the hosts file.
I have searched all over the internet, but I have not been able to understand how to do this. I realize that a method called AuthorizationExecuteWithPrivileges() used to be used for this, but that it is deprecated in OSX 10.7. Then I came across something called SMJobBless, but I really didn't understand the concept of that?
So can you explain how to solve my problem the right way?
Regards, Rasmus
http://atnan.com/blog/2012/02/29/modern-privileged-helper-tools-using-smjobbless-plus-xpc/
SMJobBless + XPC is a os x 10.7+ solution for what you require.
The provided link contains source code showing examples too.
I need some help to get Mac WebSite sharing to work as i want.
Basically i need to know how i can make it display the files of a directory.
Do i need to make a website to show my directory files or is there any other way ?
And if i do need to make a website to display my directory, what code should i use to do so ?
I am no expert on HTML at all.
Allso, i have been searching around for this and i couldn't find any answers related to my question.
You need to turn indexes on in your Apache config. This could be on by default. Check to see if you have folder named Sites in your home directory. If you do rename the index.html page (if there is one) and then navigate to http://localhost/~yourusernamehere.
The same applies if you are using the default apache directory (the system wide one) which is located in /Library/WebServer/Documents if I remember correctly. In this case you would navigate to http://localhost. I just checked on my system (OS X 10.7) and the indexes were enabled by default.
You will need to use a server-side language such as PHP, Java, ASP.NET if you want to display the 'servers' directory on a web page. I will say because you're a begineer use PHP as it's very easy to learn...
Download MAMP / XAMPP.
Research PHP and follow some tutorials first, and then implement directory searching and output it as HTML.
http://php.net/manual/en/ref.dir.php
Code:
http://css-tricks.com/snippets/php/display-styled-directory-contents/
I'm having a massive problem trying to write a file into the c:\windows\system32 directory. The code works fine on 32 bit machines, however does not work on 64 bit machines.
My user account is an administrator on the machine, and even right clicking and choosing to run the app as administrator does not solve the issue.
When writing the file, no exception is thrown, but the file is not written.
I have read various posts regarding adding an app.manifest file containing the requestedExecutionLevel node to my solution, but as yet am unable to get this to work. I have a feeling this may be because I'm using vb.net rather than c#.net
Has anybody encountered this issue before? I'd be delighted if somebody could provide an example VS2010 VB.Net project with a correctly configured app.manifest file as I'm a little unsure whether my attempts at setting this up are correct.
(also, this is not a malicious app I am writing, I'm working on a version control app for our team and need to be able to interface with IIS files held in c:\windows\system32\inetsrv\config).
Thanks
David
Maybe the file is written under UAC Virtualization and located under C:\Users\Username\AppData\Local\VirtualStore\Windows\System32
Windows Blog - Tips on what is going on behind the scenes.
TechNet - Look under Data Redirection
Under Local Sercurity Policies there is the following option which controls UAC Virtualization.
I have plesk 8.3.0, with phpmyadmin 2.8.2.4
I tried to look up where the phpmyadmin is located. I couldn't find it in srv/ and i did a find command in the server and not quite sure where it is actually located.
What I want to do is to set up a phpmyadmin under /httpdocs so that I dont have to login to plesk and click many times until i can launch phpmyadmin..
Any idea? thanks.
This may vary for different Plesk versions.
Phpmyadmin is in /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/ on mine.
As stated by #AlecTMH it may vary between versions of Plesk. His answer was fine for me before but now, after having done some updates to Plesk (am currently on version 18.0.31 Obsidian), I had to do a bit of searching on my drive to locate it, it is now here: /opt/psa/phpMyAdmin .
I'm not really familiar with Plesk, but I've used hosts that had a roundabout way to getting to phpMyAdmin. I've always just clicked around until it launched phpMyAdmin, then bookmarked that page so I didn't have to bother remembering the arbitrary address. Sorry I can't be of more help.