I work with wordpress, and I wanted to change my permalink from "default" to "post name". after i changed it i got an 404 error from apache. then I searched and get this: Wordpress permalink structure change issue when I write this commant "sudo a2enmod userdir" and refresh my page, I get 500 error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster#localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
here is my server log error:
127.0.0.1:45292] /var/www/tvvarzesh.dev/public_html/.htaccess: Invalid command 'BEGIN', perhaps misspelled or defined by a module not included in the server configuration
what should I do? thanx
Please follow the below steps:
Go to Dashboard > Settings > Permalinks
Select a suitable permalink structure and click Save.
WordPress will generate a new .htaccess file code, copy the code.
Create a file named .htaccess in the WordPress root directory and paste the code into it and save.
Related
I moved a WordPress site from a cpanel server to plesk server. Then, i upgraded manualy the site from 3.5.1 version to 4.8.3. Afterwards i tried to upgrade plugins (fancy box) as well as to intall new plugins (contact form 7).
The issue i have is that i get the following error message "Update Failed: Download failed. Destination directory for file streaming does not exist or is not writable.".
In the server's log file i can see few warning like the following one
mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/dentist/domains/dentist.com.gr/public_html/newsite/wp-content/uploads//easy-fancybox.1.6.2-Vlaovu.tmp) is not within the allowed path(s): (/var/www/vhosts/ggeorgiou.gr/ggeorgiou.work/:/tmp/) in /var/www/vhosts/ggeorgiou.gr/ggeorgiou.work/wd/dentist.com.gr/wp-includes/functions.php on line 2085, referer: http://www.ggeorgiou.work/wd/dentist.com.gr/wp-admin/plugins.php
Finally, note that in "Settings --> Media" menu in "
Store uploads in this folder" field i have put the following path of the current server: "/var/www/vhosts/ggeorgiou.gr/ggeorgiou.work/wd/dentist.com.gr/wp-content/uploads".
Any idea please what is wrong about?
Thank you
From what you posted, your exact error message is "open_basedir restriction in effect". You can read more about how to solve it here How can I relax PHP's open_basedir restriction?
Also,
Assuming you have a backup of the previous version, I would start by restoring that.
Secondly, there are many versions between 3.5.1 and 4.8.3. It is advisable to upgrade in increments of one version at a time. It is long but safer.
I'm trying to open this link: http://somedomain.com/somefolder/wp-admin/install.php for Wordpress installation but I get this:
The requested URL /myftp/wordpress4.7.2/wp-admin/install.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I'm definitely sure that the file exists in the directory and
By the way I'm pretty sure that I've entered the write values in the wp-config.php file for database, username and password. hostname is: localhost
i am getting errors of file. When i look into console there path is generating as
http://test.astech-us.com/tupperco/tupperco/tupperco/wp-content/plugins/revslider/admin/assets/css/tipsy.css?ver=5.2.5
Project name is coming three times. i had updated plugins still getting this error files are not loading
Please guide
Thanks
/tupperco/tupperco/tupperco/ is your problem
I'm trying to install Drupal locally on Fedora 22.
I've done all that drupal.org/documentation/install says to complete the installation but when I try to run Drupal it doesn't works.
On the URL I put: localhost/ and it works so it seems that I don't have any problem here, but when I write: localhost/drupal or localhost/drupal/install.php it doesn't works!
And everytime I get this error: GET http://localhost/drupal/install.php [HTTP/1.0 500 Internal Server Error 19ms]
Does someone know how can I fix it?
You have to take a look at your apache or nginx logs (error logs) to see what is the problem. Some server configuration output the errors in a file "error_log" in the root of your Drupal installation.
http://www.codeasite.com/index.php/linux-a-apache/94-how-do-i-find-apache-http-server-log-files
https://fedoraproject.org/wiki/Nginx
Maybe some PHP extensions are missing. Check Drupal requirements : https://www.drupal.org/requirements
Wondering if you can help me. I have installed a theme that comes with TimThumb.
However when I set the featured image, and view the blog, the images doesn't load, when I right click and click view image in a new tab I get the following error message:
A TimThumb error has occured
The following error(s) occured:
Could note create the index.html file.
Could note create cache clean timestamp file.
Query String : src=http://demo.webempire.net.au/shi/wordpress/wp-content/uploads/2012/01/menora2_kitchen011.jpg&w=144&h=94
TimThumb version : 2.8.3
Any suggestions/help would be appreciated.
I ran into this issue.
define ('FILE_CACHE_DIRECTORY', '');
was set in timthumb-config.php . This gave me these errors:
touch() [<a href='function.touch'>function.touch</a>]: Utime failed: Permission denied in timthumb/timthumb.php on line 469
in timthumb/error-log.
Commenting out the line in timthumb-config.php set timthumb.php to use ./cache as the cache folder instead of the system tmp folder, and fixed avoided the permission issues.
The problem was that another user already had a timthumb_cacheLastCleanTime.touch in /tmp
Wiping didn't work but changing the permissions to 777 did. Via filezilla.