(SOLVED) Includes and Requires (Mac OS X)
Posted 08 August 2006 - 09:00 PM
I'm new here, well the 1st post says it all
i've recently moved from pc to mac but i know both have apache installed. yet how come they act so different. i cannot for the life of (i wont say it) get the include or require functions to work and when i use them they just output blank pages regardless of whats in the page.
Any help would be soooooooooooooo much appreciated.
Posted 09 August 2006 - 12:08 AM
So far, and aside from the problem you wrote about, how do you like using the Mac compared to the PC?
Posted 09 August 2006 - 06:37 AM
well moving from pc to mac, initially like anything you got to get used to it. Its very different but I dont think i'll ever turn back. Its not a super computer (G5 Dual Core) but with alot of memory its really fast.
I'll have to find apache's working directory somewhere later
Posted 11 August 2006 - 08:24 PM
Apache was begging me to stop torchering it.
Since some may know the Mac is sort of locked down in user graphical mode and to configure apache needs some terminal typing. Right, now open a terminal session under the "applications/utilities" and type "sudo su" (this means log in with super user rights) it will then ask you for a password which is the same as your own admin account. Now that you have given yourself permissions to destroy your Mac be carefull, the following are the locations for the files that need editing to allow includes and requires to work (why they don't beats me in the first place).
httpd.conf = /etc/httpd/
php.ini = /usr/local/php5/lib/
what I did is copy the files to my desktop edit them and copy them back. So copy them like this then:
to copy to desktop = cp filename.extension /users/"username"/desktop
to copy from desktop back httpd = cp /users/"username"/desktop /etc/httpd
to copy from desktop back httpd = cp /users/"username"/desktop /usr/local/php5/lib/
substitute filename.extension with the real names and "username" with the account name logged in.
I edited the needed stuff and all functions now work.
*previous removed --> me being idiot*
NOTE: If an Admin see fit to move it please do so.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users