How to Solve WordPress Could Not Create Directory

Standard

WordPress is an interesting platform to build your website but when you get this kind of errors, you feel like plucking your hair off your head because nothing is happening. I have tried like 10 solutions but never got it right until now.

Am sure you have gotten something like this when trying to update your plugin or upgrading WordPress.

This is the error for the Upgrading of WordPress

Downloading update from http://wordpress.org/wordpress-4.4.zip…

Unpacking the update…

Could not create directory.

Installation Failed

This is the error for the plugin update

  Downloading update from http://downloads.wordpress.org/plugin/your-plugin.0.9.3.1.zip…

  Unpacking the update…

  Could not create directory. /wp-content/upgrade/yourplugin.tmp
 
  Return to Plugins page

SOLUTION:
Step 1:

Plugin: Just change the permission of /public_html/wp-content and /public_html/wp-content/plugins to 775. If the update succeed just revert it back to its default permission.

Upgrading: Just change the permission of /public_html/wp-content and /public_html/wp-content/upgrade to 775. If the upgrade succeed just revert it back to its default permission.


chmod 775 /var/www/html/wordpress/wp-content/

chmod 775 /var/www/html/wordpress/wp-content/plugins

chmod 775 /var/www/html/wordpress/wp-content/upgrade

Step 2:

Add the proper group permissions most likely to the same that Apache is running under.

ps aux | grep apache 

You will see the Apache user group on the left.

See my example of how I did it:

Screen Shot 2015-12-15 at 11.37.13 AM

Step 3:

Now change your WordPress folder to the same user group, you can do this in a parent folder or sub folder but for sanity it usually best for parent folder, use -R to recursively do it.

chown -R apache:apache /path/to/wp-root-folder
  • To login on windows use Putty
  • Enter your hostname and port
  • Choose connection type depending on server settings
  • Click open

If you try to chown and get denied you will need root privileges , type sudo su and your password.

Now try updating the plugin or Upgrading WordPress.

Awesome!!! Now we have solved that issue.

Solution by Wyck

 

If it helped you out, please don’t forget to like and share 🙂

How to fix WampServer – Could not execute menu item (Internal error)

Standard

After installing Wampserver, wanted to run a test.php script to confirm that Wamp is working. Then I got an Internal Error. This is a tutorial to fix Wampserver – Could not execute menu item (internal error). The service has not been started.

How-to-fix-Wampserver-img

This is happening because of the test port (80) clash with other program.

To see the issue click on Wampserver icon and go to Apache.

How-to-fix-Wampserver-image-2

Now go to Service and click on Test Port 80.

How-to-fix-Wampserver-image-3You will see the main reason of Wampserver internal error.

How-to-fix-Wampserver-image-4

To fix the error follow these steps:

Step 1:

Go to Apache >> httpd.conf and open it.

How-to-fix-Wampserver-image-5

Step 2:

Find out these lines

Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80

Step 3:

Now remove 80 with 8080 and save the file.

Listen 12.34.56.78:8080
Listen 0.0.0.0:8080
Listen [::0]:8080

Step 4:
Click on Wampserver icon and restart all services.
How-to-fix-Wampserver-image-6
Step 5:
You will see green or orange Wampserver icon.
How-to-fix-Wampserver-image-7
Step 6:
How-to-fix-Wampserver-image-8Thank you for reading!

If it helped you out, please don’t forget to like and share 🙂

Lima Kilo
Ngeshlew

Resolving Blue Screen of Death errors in Windows

Standard

Blue Screen of Death (BSOD) errors (also sometimes called black screen errors or STOP code errors) can occur if a serious problem causes Windows to shut down or restart unexpectedly. You might see a message that says, “Windows has been shut down to prevent damage to your computer.” These errors can be caused by both hardware and software problems. So please make sure you shutdown correctly and don’t install softwares that are not necessary.

Now lets solve this issue.

Solving:
Now these are the options of getting back your Windows to work:
1. Boot into Safe Mode.
If you can’t start (boot) your PC, follow these instructions to get to the Windows Recovery Environment.

  1. Do one of the following, depending on whether you have installation media (such as a DVD or USB flash drive):
  • If you have installation media for Windows 8.1, start (or boot) your computer from the installation media. Insert the DVD or USB flash drive and restart your computer. If you see a message asking you to “Press any key to boot from DVD,” do so. If you don’t see the message, you might need to change the boot order in your computer’s BIOS settings so that it first starts from the DVD or USB. When you see the Install Windows page, tap or click Repair your computer to start the Windows Recovery Environment.
  • If you don’t have installation media, use the power button to restart your computer three times. This will start the Windows Recovery Environment.
    2. In the Windows Recovery Environment, on the Choose an option screen, tap or click Troubleshoot.
    3. Tap or click Startup Settings.If you don’t see Startup Settings, tap or click Advanced options, and then tap or click Startup Settings.
    4. Tap or click Restart, and then wait while your computer restarts.
    5. On the Startup Settings screen, choose an option.(Safe Mode)
    6. Sign in to your computer with a user account that has administrator rights.

    For HP guys, go to: http://goo.gl/bdfawj
    For Toshiba guys, go to: http://goo.gl/lIZyGR >> Option 3
    For Dell guys, go to: http://goo.gl/JUL7ut
    For Acer guys, go to : http://goo.gl/tue2Pb

    2. Restore Windows to an earlier point in time

    You can restore Windows back to an earlier point in time, called a restore point. System Restore doesn’t change your personal files, but it might remove recently installed apps and drivers.
    In operating systems earlier than Windows 8:

  • Open Control Panel, then type system restore in the search box. In the returned results, click Create a restore point, then click System Restore in the dialog box that comes up, and follow the instructions.
    In Windows 8 and Windows 8.1

    1. Swipe in from the right edge of the screen, and then tap Search.  (If you’re using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.)
    2. Enter Control Panel in the search box, and tap or click Control Panel.
    3. Enter Recovery in the Control Panel search box, and then tap or click Recovery.
    4. Tap or click Open System Restore, and then follow the instructions.

Additional Notes but key:

Before and After even you get the BSOD make sure you:

A)Get latest Updates:
Follow the steps for your version of Windows.In operating systems earlier than Windows 8

Click the Start button Picture of the Start button, click All Programs, and then click Windows Update.
In Windows 8 and Windows 8.1

  1. Swipe in from the right edge of the screen, tap Settings, and then tap Change PC settings.(If you’re using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, click Settings, and then click Change PC settings.)
  2. Tap or click Update and recovery, and then tap or click Windows Update.
  3. Tap or click Check now, and then wait while Windows looks for the latest updates for your PC.
  4. If Windows finds updates, tap or click Install updates. Administrator permission required You might be asked for an admin password or to confirm your choice. Read and accept the license terms, and then tap or click Finish if the update requires it. Windows Update will tell you if it successfully installed the updates.

B) Test your hard drive.

Run the “chkdsk” function on your hard drive to scan for errors and fix potential problems. A failing hard drive can cause Blue Screens due to corrupted files. To run chkdsk, open Computer/My Computer and right-click the disk that you want to scan.

Select Properties.
From the Properties screen, select the Tools tab.
Click Check Now in the Error Checking section. Your computer will prompt you to restart in order to scan the disk.

C) Run a virus scan.
Sometimes viruses and malware are at the root of a Blue Screen problem. Make sure that you have the latest antivirus software installed, and perform a full system scan to find anything that could be causing problems.
D) Perform a Repair Installation of Windows.
This is a quick alternative to completely reinstalling Windows, as it only copies system files to your computer. This is useful if an essential file has become corrupt and is causing your computer to fail.

To perform a repair installation, insert your Windows disc or use a bootable USB with Windows OS and boot from it. In the setup menu, select Repair Installation. Windows will delete old Windows files and copy new ones. You will not lose any personal data.
E) Delete files using Disk Cleanup
To delete files
The following procedure deletes files associated with your user account. You can also use Disk Cleanup to delete system files on your PC.

To open Disk Cleanup from the desktop, swipe in from the right edge of the screen, tap Settings (or if you’re using a mouse, point to the lower-right corner of the screen, move the mouse pointer up, and then click Settings), tap or click Control Panel, type Admin in the Search box, tap or click Administrative Tools, and then double-tap or double-click Disk Cleanup.

  1. In the Drives list, choose the drive you want to clean, and then tap or click OK.

  2. In the Disk Cleanup dialog, select the checkboxes for the file types that you want to delete, tap or click OK, and then tap or click Delete files.

To delete system files
The following procedure deletes system files on your PC. This option, in addition to cleaning up the files associated with your account, allows you to delete previous Windows installations, Windows Defender files, and Windows upgrade log files that you might no longer need.

  1. To open Disk Cleanup from the desktop, swipe in from the right edge of the screen, tap Settings (or if you’re using a mouse, point to the lower-right corner of the screen, move the mouse pointer up, and then click Settings), tap or click Control Panel, type Admin in the Search box, tap or click Administrative Tools, and then double-tap or double-click Disk Cleanup.
  2. In the Drives list, tap or click the drive that you want to clean up, and then tap or click OK.
  3. In the Disk Cleanup dialog box, tap or click Clean up system files. Administrator permission required You might be asked for an admin password or to confirm your choice.
  4. In the Drives list, choose the drive you want to clean, and then tap or click OK.
  5. In the Disk Cleanup dialog box, select the checkboxes for the file types you want to delete, tap or click OK, and then tap or click Delete files.
  6. If you want to free up even more space on your PC, tap or click More Options and choose from the options:

Programs and Features. Uninstall programs you no longer use. The Size column shows how much space each program uses.
System Restore and Shadow Copies. Delete all but the most recent restore point on the drive. System Restore uses restore points to return your system files to an earlier point in time. If your PC is running normally, you can save space by deleting the earlier restore points. In some editions of Windows, restore points can include previous versions of files, known as shadow copies, and backup images. These files and images will also be deleted.

 

Hope that helps.

 

Cheers!

 

<

p style=”text-align:right;”>Lima Kilo