简体   繁体   中英

Finding and editing a WordPress site in cpanel w/o access to WordPress

I have a client who needs his website edited, he is no longer in contact with the original creator of the site, and it seems that the creator used WordPress to make the website. I've been able to access the page through cPanel but cannot locate the HTML files necessary to do things such as editing text. I have the ability to change images but the owner would like to remove some pages, etc.

There are also tons of PHP files for the WordPress extensions and such, but I know nothing about PHP.

Would I need access to the wp-admin account that designed the page in order to modify the text?

There could be a few things you need to be aware of: and I believe you have a good understanding of WordPress. If not you may want to watch some tutorials about it.

  1. Themes: You need to find out if the previous developer develop with custom template and maybe he hard coded all the text inside themes file which located wp-content/themes/{name of the theme}/ {other file}, in this case, if you are not aware of WordPress theme development or how it structure, I suggest you watch some quick tutorial on it and there are tons.

  2. Yes, wp-admin is the place where you can find all the pages listed or posts or whatever content. By editing page, you easily can change the text or delete the page which not require or add a new page.

Just find what is the way it's coded. then you will able to follow

Wordpress stores page content in a database, which is subsequently loaded by a collection of php files. You cannot change the content or looks of a wordpress site by changing html files.

The easiest way to change content is to log in to the wordpress dashboard of the website. If you don't have the password, you can open up phpmyadmin via cpanel, browse to the wordpress database and find the *yourwebsiteinitials*_users table. In there you can choose one of the accounts that should be there and click edit, then edit the user_pass column, and simply type a new password in value and set function to md5. Then you can go to *yourwebaddress*/wp-login.php in your browser and login with the user you just edited and the new password.

Alternatively you can find posts in the _posts table and change content via phpmyadmin, but it's much easier to do this via the dashboard.

You can log into the WordPress dashboard from the cPanel, following these steps:

  1. Login to cPanel.
  2. Scroll down to the Softaculous Apps Installer section and click on the WordPress icon:

Softaculous 应用程序安装程序

  1. You will be directed to the WordPress Install tab.
  2. Scroll down to the Current Installations section.
  3. Click on the admin icon to login to the WordPress dashboard without a password:

单击管理图标

  1. You will then reach the WordPress admin dashboard- voila!

WordPress 管理仪表板

如果要在WORDPRESS中删除页面,则需要登录wordpress并从页面中删除,如果需要删除自定义php页面,则需要转到cpanel和公共html文件夹,页面名称或从wordpress中删除,请转到/ public_html / wp-content /主题/活动主题名称/,然后找到页面名称,那里的页面扩展如pagename.php或pagename.html。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM