Check out directives such as AddHandler and AddType. Please note that I don’t have any personal experience using any of these plugins. It might be causing a download for you instead of executing your script (in some cases) Check your httpd/apache2 config files: This is very important If you mapped the wrong or incorrect module in your config file, it can cause issues. There are also a couple of plugins specifically for editing the wp-config.php file, such as But when I hosted these exact same files on cPanels File Manager - its only showing me a blank page. If you have more confidence in plugins, there are general File Manager plugins that allow you to edit files (these work similarly to the control panel option I mentioned above), such as This is working perfectly fine in XAMPP for me, and is downloading the PDF every time I load the page. Yes its the public folder set to be adressed by the server, ive tried the answers in the referred. The Public Folder of Laravel should be the one which adressed by the server and not index.php. Always make a backup first, of course, no matter what tool you use. you should probably have a look at the answer in the following question: Laravel Shared Hosting. If you have a hosting control panel like cPanel, Plesk, etc, there’s a code editor built into your “FILE MANAGER” that you can use to make such simple and quick edits. That hardly ends well.Īn EASIER way is to use the web-based text editor provided by your host. It seems you tried to edit the file REMOTELY and directly in the FTP client, instead of downloading it to your computer first. I would argue the SAFEST way to edit the file is by downloading a copy to your computer via FTP (after making a backup, of course), editing the downloaded file locally with a proper text editor software on your computer, and re-uploading the edited file. No matter what tool you use, the ONLY “safe” way is to ALWAYS make a backup of important configuration files BEFORE touching it. Is there any good plugin or editor to safely edit and save wp.config.php? A new file could easily have been created to point to your existing site database, without losing any work. Not saying you shouldn’t take precautions, but losing your work was totally unnecessary even after losing your wp-config.php file. Therefore, I literally lost my weeks of work. Previously, I had tried accessing the file via FileZilla FTP and it went error while writing after editing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |