Having set up a small site which is being hosted on our Mac Mini Server, I have been asked by an SEO company if I can enable PHP for the domain/site. Is this something I can do in Freeway o the site?
I thought it was something applied to tables and feedback forms.
Having set up a small site which is being hosted on our Mac Mini
Server, I have been asked by an SEO company if I can enable PHP for
the domain/site. Is this something I can do in Freeway o the site?
I thought it was something applied to tables and feedback forms.
First question is "why is it relevant?’
If the site works as it is without PHP then either they are ignorant
of how to improve SEO in straight HTML and rely on inserting some
boilerplate PHP code to do ‘something’ (can’t imagine what), or they
want to be able to run scripts on your site - maybe not for your
benefit. Do you know this company personally? On most of my sites SEO
isn’t relevant. On the one where it is, none of it is in the PHP. I
fact you have to be careful that the PHP doesn’t destroy your SEO if
you’re sending headers.
It’s relatively easy to turn PHP on in your Apple supplied Apache.
It’s mainly a matter of a minor edit to a text configuration file. In
/private/etc/apache2/httpd.conf
(10.6.8) Find the line: #LoadModule php5_module libexec/apache2/libphp5.so
and remove the leading ‘#’. Turn off web sharing and turn it on
again. That’s about it as far as I can remember. It’s a while since I
did it. I have other changes in my httpd.conf but they’re for other
things.
David
–
David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
email@hidden www.ivdcs.co.uk
“Could you possibly enable PHP for xxxxxxx.co.uk? I need to make some code changes and one of those will be to use PHP includes to save repeating the header and footer information.”
I have found in the server under the ‘web’ part, ‘settings’, ‘modules’ there is a php5_module, which I have checked to enable. Hopefully this will have sorted it.
I have found in the server under the ‘web’ part, ‘settings’,
‘modules’ there is a php5_module, which I have checked to enable.
Hopefully this will have sorted it.
Ah - you must be running a server version of OS X. I’ve only run it
under the base versions of the OS. My MacBook Pro, Mini and iMac all
run a PHP capable Apache webserver as part of SL ordinary edition
just for convenience.
David
–
David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
email@hidden www.ivdcs.co.uk
“Could you possibly enable PHP for xxxxxxx.co.uk? I need to make
some code changes and one of those will be to use PHP includes to
save repeating the header and footer information.”
In that case they’re going to modify code that will be replaced when
you do a FW upload. Much better if they tell you what to add and you
add it as markup in the Master page I would have thought.
David
–
David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
email@hidden www.ivdcs.co.uk