config update without login onto server - sitefinity

In sitefinity can I edit web config setting ? I dont see anything in the Administration/Settings/Advanced and would love to be able to edit the setting without login onto the server.

The settings you edit in Administration / Settings / Advanced are stored in configuration files in App_Data / Sitefinity / Configuration folder and/or in the database table sf_xml_config_items.
One way to edit the web.config is to download it first from Administration / File Manager, then edit it locally and then upload it back.

Related

How do I install Zend OPcache Extension on my Media Temple Grid Server site?

CMS's like Drupal 8 strongly recommend that you enable OPcache on your server to speed up page rendering. How does one install this extension if your site is hosted on Media Temple's shared Grid server service?
Log in to your Media Temple account and go to the Admin section for your domain.
Under File Management click the File Manager link
Navigate to the /etc folder. If there is a file there called php.ini skip to step 5
Rename the file php.ini.sample to php.ini
Open the file php.ini and add the following lines to the bottom of that file:
zend_extension=/usr/local/php-7.2.12/lib/php/20170718/opcache.so
opcache.enable=1
I believe this assumes you are running php 7.2.12, so the URL may change if and when PHP is updated on the grid.

getting access denied to user on my laravel project hosted on cpanel

so i have been trying to get a laravel project of mine working on cpanel web host and i keep getting access denied to the user, i have cross checked my database name and user on the .env file no luck
APP_NAME=#####
APP_ENV=local
APP_KEY=base64:IGN5qlcuICOZ3LAeIMPh+DXtTPA/51P2tCIRW1DmDY4=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=####
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=dbuser
DB_PASSWORD=pass
I get a laravel error, access denied to dbuser can not (select * from projects)
Can you see your environment file?
Did you already enable viewing of hidden files?
If your answer to question 2 is no and you are seeing the file, then your environment file is most likely saved as "env" not ".env", check it and change it accordingly.
To enable viewing of hidden files,
In the file manager in cpanel, click on the settings at the top-right corner then you would see "show hidden files", tick the checkbox.
Also ensure your php version on the server matches the version in your developement environment.
To do this, on your local environment type "php -v" to see the version.
On the server, type "php" on your cpanel home search and click on "php select version". Set it to the exact version you have on your local development environment.

Develop in a non local environment

I have set up a reactJS environment on digitalocean just to start learning developing with react and graphQL and i was wondering if there is a text editor that can connect to connect on the internet and retrieve the files of the project.
Im not really sure if something like this is doable but in my head is like i will code the files on the VPS with a proper text editor and save them so i can have some sort of live preview.
I have already tried with sublime and brackets but im not really sure how to connect them on the project folder in my vps.
If your VPS has SFTP set up, you can use your SSH login details to connect and edit code live through an editor such as sublime text.
( I would recommend using FTP if the SSH access is through root or anything with authority on the server, if you do not care about security then feel free to use root )
https://www.sublimetext.com/
An SFTP / FTP plugin exists for what you require, please see below:
https://wbond.net/sublime_packages/sftp
Example usage of the plugin is as follows
Create a project folder
CTRL+SHIFT+P > "sftp" > SFTP -> Setup Server
Edit the login details within your sftp-config.json file
Make sure the remote path is correct and your credentials are correct
"upload on save" - change to true inside your sftp-config.json file
Save the sftp-config.json file, CTRL+SHIFT+P > "sftp" > SFTP Sync remote -> local
I'd recommend adding node_modules inside your ignore_regexes, as it can take up to 10-15 minutes to download these.
Now it should ( if set up correctly ) download the files specified in your "remote_path" folder. Saving future files will upload them to the server on save.
I hope this helps!

After uploading MVC website to the folder httpdocs from FIlezilla and browsing it the showing Internal Server error

I am getting 500 Internal server.I have uploaded files to the server using Filezila .and when i am browsing it.Its showing internal server error.
Whats is the permission of your files and directory's which you have uploaded in your account. Also check your .htaccess file code.
There may be several reasons , let me list few which i think might be the reason.
1) Check the folder and file permissions on the hosting . Folder permission should be 755 and the file permission should be 644 by default to work on
2) If there is any .htaccess file try to remove that file and check again reloading (Note : if you are using cPanel try selecting show hidden files in file manager to view the .htaccess file )
3) whether your db is been properly configured in the configuration file of your MVC site ( however if it is the reason the page will will throw some db connectivity error . just in case if it is i am asking you to check )
If that helps, update me . If not, Kindly post the error log which can be taken in cPanel or if you are using different solution ask your hosting provider on how to view error log.
The best and universal approach if you have root access on the server would be to look for more information in the web server log:
/usr/local/apache/logs/error_log
If you do not have root access, you can check the Error log in cPanel -> Errors, it will provide you with more details on what the problem is.

DotNetNuke 5.2 Source - How to: Setup IIS 7 to Compile Source & Test the Site

The answer to this may be a link to a good tutorial, but I've been unable to find one and it's getting rather frustrating.
I'd like to dive into the source code of DotNetNuke 5.2 which I have downloaded to a folder. I've opened up the solution that ships with it and it opens & compiles just fine.
What are the recommended steps for:
Setting up the database for this
source/compiled version of DotNetNuke?
Configuring IIS 7 (on the local
machine) to run/serve the site?
(Windows 7, VS2008, SQL-Server-2005, DotNetNuke 5.2)
FOr the setup you will follow the standard installation process, using the /website folder as the root for the configuration within IIS.
I have an installation tutorial on my blog that you can use, the specific tutorial is for 5.0.0, but the installation process is the same. The short order process is as follows.
Create a database and SQL user for the database, giving them DBO permissions
Setup a virtual directory in IIS that points to the /website folder of your dnn installation
Grant the ASP.NET worker process account full permissions to the /website folder
Navigate to the /install/installwizard.aspx page, follow the instructions and set the database values for what you specified in number 1 above.
NOTE: the use of a source version of DNN for production use is not recommended, additionally it is my personal recommendation to not modify the source, unless you are truly willing to accept that future upgrades might not be possible due to your modifications.
Expanding on Mitchel's Answer:
Create a database and SQL user for the database, giving them DBO permissions
Go into DNN/Website folder. Copy release.config and name the copy web.config
Setup a virtual directory in IIS that points to the /website folder of your dnn installation
Open the solution and compile the project
Grant the ASP.NET worker process account full permissions to the /website folder (NETWORK SERVICE)
Had to give users group read/write/modify access to the entire website folder otherwise I got some errors about file access. This is more than is necessary but it worked.
Navigate to the /install/installwizard.aspx page, follow the instructions and set the database values for what you specified in number 1 above.
Edit: This is as of version 5.2 available 2/25/2010