Entire Wordpress theme reset to default after server upload - php

I created a Wordpress website, customized its CSS and PHP, uploaded images, set up Woocommerce etc. When I uploaded it to server, all the changes I have made were lost. Also, woocommerce pages stopped working with this 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#mysite.com 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.
Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.
The way I uploaded it:
uploaded .htacces to public_html
uploaded the wordpress directory contents to the same folder
exported the .sql database from local phpMyAdmin
replaced all localhost/mysite/wordpress and localhost:8012/mysite/wordpress to www.mysite.com (the port is specified because there was a problem with apache, so I had to configure it)
created a database in cpanel
created a user in cpanel
changed db_name, db_user and db_password in wp_config.php file (entered the values in prefix_name format)
added the user to database in cpanel with all privileges
in phpMyAdmin on server imported the database
I used FileZilla, if relevant.
This is not the first time I'm doing this, and I had problems before, but not like this. I heard it had something to do with collation, but I tried changing it - no luck.
Disclaimer: I SEARCHED THE GOOGLE AND RELEVANT ANSWERS HERE WERE NO HELP EITHER

Check AllowOverride key in apache httpd.conf ( or http.conf ) it must be ALL not none

Related

Drupal broken site after settings.php change

While I was working on a drupal site I encountered a critical error, I tried to edit settings.php file (for changing database credentials) but when I saved the file (I use register.it control panel) i received an XMLRPC fault error, now when I browse my site it shows installation page and nothing else.
Do some of you know what happened and how to restore it?
I tried to rename the file default.settings.php but it says that there is already a settings.php file (that I can't see anyway )
If you see installation page that means that Drupal is not aware of existing database (can't connect to it) so it want to start new installation - setup new database.
So if database is ok problem must be in your settings file: bad credentials (i.e. maybe you can't use "localhost" for host but something host company provided) or file it self is not accessible (insufficient permissions?)

IIS Plesk Shared Hosting Wordpress started to give 500.50 error out of nowhere for some files

I have my Wordpress on Shared IIS hosting using Plesk. Today, just by itself, some of my uploaded files started to give this error:
HTTP Error 500.50 - URL Rewrite Module Error. The page cannot be
displayed because an internal server error has occurred.
Most likely causes: IIS received the request; however, an internal
error occurred during the processing of the request. The root cause of
this error depends on which module handles the request and what was
happening in the worker process when this error occurred. IIS was not
able to access the web.config file for the Web site or application.
This can occur if the NTFS permissions are set incorrectly. IIS was
not able to process configuration for the Web site or application. The
authenticated user does not have permission to use this DLL. The
request is mapped to a managed handler but the .NET Extensibility
Feature is not installed.
Things you can try: Ensure that the NTFS permissions for the
web.config file are correct and allow access to the Web server's
machine account. Check the event logs to see if any additional
information was logged. Verify the permissions for the DLL. Install
the .NET Extensibility feature if the request is mapped to a managed
handler. Create a tracing rule to track failed requests for this HTTP
status code. For more information about creating a tracing rule for
failed requests, click here.
The interesting thing is that, when a file is uploaded, it's other dimension versions are created, and I have no problem accessing those. But when I try to access the original file, I'm getting that error. When I try to inspect file permissions on my Plesk control panel, the wp-content and the uploads folder does have the write permission to my user, but when I check the problematic file, Plesk can't access it from the control panel too:
Unable to get the object (C:\Inetpub\vhosts\PATH-TO-MY-IMAGE) security
info: (5) Access is denied. at execute "C:\Program Files
(x86)\Parallels\Plesk\admin\bin\filemng.exe" MY_USER_NAME
--permissions --list-common "--file=C:\Inetpub\vhosts\PATH-TO-MY-IMAGE"
"--accounts=tmpB575.tmp"(RunTime::RunAsUser::run line 260) (Error code
1)
---------------------- Debug Info -------------------------------
I can't even read the permissions on that file. Trying to delete the file using FileZilla results in an error too. This happened to SOME files today, and NOT to others, regardless of upload order, file name or type.
I've checked out many pages regarding this, but they all point to one thing: editing PHP.ini file to change the upload folder. After some search I've created a new PHP.ini like this:
upload_tmp_dir = "C:\Inetpub\vhosts\PATH_TO_A_FOLDER_THAT_I_CAN_WRITE_TO_IN_MY_HTTPDOCS_FOLDER"
Uploaded it to my httpdocs folder, restarted my app pool from Plesk, but no avail. I try uploading new files and I still get the same error. What I haven't understood is that why this started happening today and why is this happening completely randomly (I haven't changed any setting, I haven't entered into any settings pages for weeks). Is this something related to my configuration or should I contact my hosting provider?
It turned out to be a problem with my hosting company at their side. There was nothing I could do.

Broken links after moving wordpress site

I moved my wordpress site from local host to a live server. The problem is that all links from my nav won't work as the home button.
live site url: http://iulian.cablevision.ro
broken link example: http://iulian.cablevision.ro/about/
this is the error that i get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.27 (CentOS) Server at iulian.cablevision.ro Port 80
I tried to use the a comand in SQL on my database to update urls:
UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/wordpres/', 'www.iulian.cablevision.ro/');
And I also tried to use the Velvet Blues pluginbut that didn't work as well... Is the another way to manipulate the database so my links will work properly?
I folowed the tutorial from http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/ but seams to not work for me... Wher is my mistake?
first go to files and rename the htaccess file and then check your live site .it will help you surely.and if you have any issue regarding please descibe in detail
For fixing all links after database migration, I use this tool. After downloading, rename folder for example searchandreplace, add this folder to the root of WP site, access it www.yoursite.com/searchandreplace, and then enter the old site name and in replace input write your new one, but be sure that they both use same convention wording, if you write old site name www.oldsite.com, then new one should be www.newsite.com too, not http://* or something else added. Hope this helps if the problem still persists.
Your old server is not only in the WP_POSTS table, but also in other tables. See here how to move your wordpress site:
http://codex.wordpress.org/Moving_WordPress
Download your existing site files.
Export your database - go in to mySQL and export the database.
Move the backed up files and database into a new folder - somewhere safe - this is your site backup.
Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) - save the settings and expect to see a 404 page.
Download your site files again.
Export the database again.
Edit wp-config.php with the new server's mySQL database name, user and password.
Upload the files.
Import the database on the new server.
First you need a .htaccess if you are using permalink other than default structure copy from here
Now that you have .htaccess try this
Re save permalinks
Check that your server has mod_rewrite enabled
I finaly found the solution. It was the .htacces file the problem... The first mistake I did was that when I was uploading the .htacces file to the server it uploaded as simpe .txt file and the conversion to htacces file type didn't turn. So what I did:
crated a simple text document with no name and uploaded to server
after i uploaded the file i changed the name into .htacces so then the file conersion kicked in.
After that my links worked flawless.
Thanks for the suport you guys gave me btw.

500 internal server error wordpress with godaddy

I am getting the following type of error message on both admin and frontend of my WordPress website.
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request. Please contact the server
administrator to inform of the time the error occurred and of anything
you might have done that may have caused the error.
More information about this error may be available in the server error
log.
I already tried to rename the plugin directory, removed or renamed the .htaccess file and changed WordPress file permissions to 755. But no luck.
I have the exactly same problem on my WP site, because I reached the limit of my godaddy web hosting resources. They say I need to buy more server resources for my website to work regularly.

Internal Server Error after administrator password change... (Mac OSX & PHP)

Here at work I recently adopted a rather undocumented Mac OSX/PHP web server. The "administrator" account password was unknown, and another technician reset it before handing the server over to me. The website hosted on the server is running fine, all except one subfolder which generates an "Internal Server Error" when you try to access anything within the subfolder. The file can be a PHP file, HTML file, even one I created (that works just fine when you throw it in the root or any other subfolder that's there.
Trying to access anything in the subfolder does present you with a username/password prompt, but I'm not seeing an .htaccess file in that subfolder. When I successfully log in using the "administrator" account username/password is when the "Internal Server Error" presents itself. I'm not seeing anything in the PHP error logs, making me think it's not getting that far - and I'm also not seeing anything in the server logs.
By my experience, it sounds like the subfolder does not contain a index-file and the directory listing may be disabled thus causing you to see the "Internal Server Error" as a last resort by the httpd server.
Create a file in the subfolder:
touch index.html
Password protecting a domain/folder does not require the .htaccess/.htpasswd (or other named file by choice) to exist in the same folder. It can be placed anywhere else the httpd can read it from. I suggest you read through the configuration file for your httpd and also check the php-error log, but in this case I would look in the httpd-error log first.

Categories