Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/phildyer/public_html/textpattern/lib/constants.php on line 136
Phil Dyer - My Web Server The Real Phil Dyer tag:phildyer.co.uk,2005:4d98f6284eb2d692b02f1c8d178013f5/my-web-server Textpattern 2024-01-19T17:03:11Z Phil Dyer phil@phildyer.co.uk http://phildyer.co.uk/ Phil Dyer 2017-06-02T13:46:48Z 2019-05-10T13:58:54Z WordPress will not crop tag:phildyer.co.uk,2019-05-10:4d98f6284eb2d692b02f1c8d178013f5/6bd9da5985f2798c3adb9f94b201e472 While trying out the different themes on my local web server I came across a problem with the site icon, the WordPress replacement for the favicon.

After making the image to the recommended size and naming it siteicon.png I clicked on “Select site icon”, uploaded the file and then selected it. A new screen came up asking me to “Crop image” and it was when clicking this that the error “WordPress will not crop “ came up.

After a quick search of the Internet I discovered that WordPress uses the GD Graphics Library for dynamically manipulating image. As this library is already included in PHP the simple solution was to uncomment the line “extension=php_gd2.dll” in php.ini.

]]>
Phil Dyer 2017-05-23T15:14:17Z 2017-05-29T12:57:33Z Chosing a new Wordpress theme tag:phildyer.co.uk,2017-05-23:4d98f6284eb2d692b02f1c8d178013f5/b01baa659b567e39d2bf6717e0abd3ea Now that Wordpress is installed and I have imported everything from my online website it is time to try out some new themes. My original theme is many years old and has not been updated for a long time. I am not sure how adaptive it is now that so many people are using tablets and smartphones to browse the web.

After a long time searching I find and install three themes that look suitable for my website; Clean Retina, Nisarg and Bhari. After trying them all out in live preview, there is one outright winner.

Nisarg.
This stylish theme is, clean and uncluttered with elegant and readable typography. It is not as customiseable as my old theme or the other two I tried but, to be honest, there is not much about it I want to change.

]]>
Phil Dyer 2017-05-20T14:19:36Z 2019-05-10T21:17:32Z WordPress automatic update failed tag:phildyer.co.uk,2017-05-22:4d98f6284eb2d692b02f1c8d178013f5/6dbeab739534458372aa036f743491d8 Now that I have updated MySQL it’s time to make use of my webserver. So, as I want to try different themes for my other website, I shall install Wordpress.

The install went successfully but, when I logged in I was faced with an update. Already! – I had only downloaded the latest version two days ago. But, this does give me the opportunity to try out the Wordpress automatic update as I have never tried it on my home webserver before.

Download failed.: No working transports found

After a quick Google search I find out that It is the php CURL extension that performs data transfers and deals with HTTP and HTTPS requests.

So it is just a case of opening php.ini in a text editor, uncommenting extension=php_curl.dll and then restarting Apache.

Wordpress automatic upgrades now works.

Job done.

]]>
Phil Dyer 2017-05-11T12:13:10Z 2017-05-19T13:34:51Z Changing MySQL install directory tag:phildyer.co.uk,2017-05-11:4d98f6284eb2d692b02f1c8d178013f5/b031a5175e1816e96cec693d82e410a9 Having already updated Apache and PHP I thought it was about time I updated MySQL now at version 5.7.

Downloaded, installed and tested successfully.

The only problem, for me at least, is that there is no option in the installation process to change the program and data directories. I need them to be in a subdirectory named Webserver on the D: Drive. So, after a bit of trial and error, I came up with this solution.

Open a command prompt as administrator.
Stop the Mysql service with net stop mysql57
Remove the service with sc delete mysql57

Now it is time to move the directories from their default location. I also move the my.ini file from the data directory to the server directory – its natural home.

Next it’s time to edit the my.ini file
uncomment and change basedir path
change datadir path
change secure-file-priv path

With that done open a command prompt as administrator in the MySQL bin directory as MySQL now can be re-instated as a service using mysqld.
e.g. mysqld —install MySQL57 —defaults-file=“D:\Webserver\MySQL\my.ini”

Service successfully installed.

]]>
Phil Dyer 2016-08-05T19:28:44Z 2017-05-22T14:00:09Z Apache fails to start tag:phildyer.co.uk,2017-05-20:4d98f6284eb2d692b02f1c8d178013f5/38c49a9e50ad2bff34b733833b93dfc7 I have just realised that Apache has not been starting, so, I try to start it up from the Apache Monitor.

Apache Error – The requested operation has failed!

Looked in Event Viewer:
The Apache service named reported the following error:
>>> AH00451: no listening sockets available, shutting down.

Something has stolen the use of Port 80 and the usual suspect for this is Microsoft’s own webserver IIS which is run by the W3SVC service. So lets fire up Services and have a look.

And there it is, hiding under the Display name: World Wide Web Publishing Service.
Right click on service and select Properties:
Stop service and set Startup type: to Manual.

Now Apache should start – back in business

]]>