我在共享服务器上创建了一个托管在Godaddy上的Web应用程序.我打算在我的交易中使用paypal,这会产生问题.
此时凭证(paypal电子邮件和密码)是硬编码的,据我所知,这是最糟糕的解决方案.我所知道的唯一其他选项是在web.config文件中,这似乎也不是特别安全.
您能指出一个能够在共享主机环境中提供所需安全性和工作的方向吗?
关心亚历山德罗斯
在使用cpanel管理的基于Linux的共享主机上,如果我知道我的cpanel登录信息和/或FTP信息,是否有一种编程方式可以为我的网站创建可靠的插件域?
注意:在这种情况下对PHP和cpanel感兴趣.
我使用Orchard CMS创建了一个基本网站,并尝试使用Web Matrix(通过FTP)将其部署到我的共享主机Softsys.目前,该网站在技术上"有效",但看起来所有样式都已被删除(甚至从仪表板).
在部署网站时是否有一个步骤或文件?我知道"Web部署"可能是部署的首选方法,但我对此很新,并且不确定登录具体是什么,或者如何获取它们以进行Web部署.
以下是该网站目前部署的截图:

编辑:事实证明问题是在我的主机端,由于某种原因虚拟目录没有正确创建 - 我仍然很好奇是什么正确/最佳实践方法部署.
deployment asp.net-mvc shared-hosting orchardcms asp.net-mvc-3
我越来越了解Git,必须理顺这一点,
我在某处读到,将.git repo放在可以通过Web访问的文件夹中是不安全的做法(听起来很合理!)。
我的问题是,除了它是否正确之外,什么是最好的解决方案?当然,如果您在进行Web开发时在远程主机上工作,则主要发生此问题。
例如,如果我在domain.com/project上工作,其中“项目”是存储库,我该怎么办?
是否可以将.git-folder移到htdocs之外的某个地方并链接到它?或者我可以为其添加一些保护?
我主要在共享主机上进行开发,因此我在安装和设置方面受到限制。
我了解到,您可以将整个存储库/文件夹隐藏在服务器上的某个位置,然后设置一个脚本以在推送到内容时将其复制。
但是,当在“实时”服务器上开发时,我希望能够在两次提交之间实时测试我的代码。
我清楚吗?
帮助赞赏!
对于我目前的项目,我使用Dapper.一切都很完美.然后我需要在共享主机上部署它.结果可以在这里看到(复制YSOD):
说明:应用程序尝试执行安全策略不允许的操作.要授予此应用程序所需的权限,请与您的系统管理员联系或在配置文件中更改应用程序的信任级别.
异常详细信息:System.Security.SecurityException:请求类型'System.Security.Permissions.ReflectionPermission,mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'的权限失败.
堆栈跟踪
[SecurityException:请求类型'System.Security.Permissions.ReflectionPermission,mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'的权限失败.] System.Security.CodeAccessSecurityEngine.Check(Object demand,StackCrawlMark&stackMark ,Boolean isPermSet)+0
System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap,StackCrawlMark&stackMark)+31
System.Security.CodeAccessPermission.Demand()+46
System.Reflection.Emit.DynamicMethod.PerformSecurityCheck(Type owner,StackCrawlMark&stackMark,Boolean skipVisibility)+9461551
System.Reflection.Emit.DynamicMethod..ctor(String name,Type returnType,Type [] parameterTypes,Type owner,Boolean skipVisibility)+40 Dapperx.SqlMapper.CreateParamInfoGenerator(Identity identity)+537 Dapperx.SqlMapper.GetCacheInfo (身份标识)+376 Dapperx.d__13 1..ctor(IEnumerable 1 source)+58 Dapperx.SqlMapper.Query(IDbConnection cnn,String sql,Object param,IDbTransaction transaction,Boolean bu ffered,Nullable 1 commandType)+199 ...1.MoveNext() +644
System.Collections.Generic.List1 collection) +327 System.Linq.Enumerable.ToList(IEnumerable1 commandTimeout, Nullable
有没有办法解决它(在.NET 4.0中)?据我所知,到目前为止我所阅读的内容,提供商必须允许一些部分反映IIS,这可能会对他们造成安全风险......
有没有人知道如何在Bluehost上部署Ruby应用程序?我遇到了这个问题.每次我将文件放在我的域所指向的文件夹中时,当我尝试访问该网站时,它总是给我403错误.
我在cakephp 3.0中创建了一个项目,我希望将其放在共享托管服务器上.
Cakephp文档为此前版本提供了解决方案http://book.cakephp.org/2.0/en/installation/advanced-installation.html其中目录结构与新版本不同.
在用于在共享主机服务器上进行高级安装的旧版本中,整个项目分为3个部分
然后将这些路径写入.htaccess文件以运行项目.
在新版本的应用程序目录已成为src,webroot是原样,但我找不到安装的lib目录.
任何人都可以帮我解决它的最新版本吗?
我将Laravel 5项目部署到共享主机帐户,将应用程序文件放在www文件夹之外,只将公共文件夹放在www文件夹中.所有这些都在这里解释,在最佳答案:Laravel 4和使用FTP部署应用程序的方式 ...没有3.因为Laravel 5中不存在此文件.
现在,当我在控制器内部调用public_path()时,我得到的东西就像my-appfiles-outside-of-www/public而不是www/public.有谁知道为什么我没有在这里找到正确的道路?我可以在某处更改吗?谢谢!
我正在为laravel应用程序设置一个新的服务器.我已经安装了composer并从我的cpanel中选择了php5.6.15.但是当我在终端中运行php -v命令时,它显示我当前的版本为php5.2.19.
这是我的服务器上的php.ini文件,显示5.6版本
我已经使用git将我的代码上传到服务器.当我运行命令composer install时,它给了我这个错误.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.1.28 requires php >=5.5.9 -> your PHP version (5.4.43) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- laravel/framework v5.1.28 requires php >=5.5.9 -> your PHP version (5.4.43) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- Installation request for laravel/framework v5.1.28 -> satisfiable by laravel/framework[v5.1.28].
Run Code Online (Sandbox Code Playgroud)
我正在使用laravel 5.1.如果我将它降级到5.0,它会给其他包带来依赖性错误.这是我的composer.json文件.
{
"name": "laravel/laravel",
"description": "The …Run Code Online (Sandbox Code Playgroud) I built a single page web app with vue js as the front-end library and laravel as the back-end framework. Its now time to host it on a shared hosting service and have not found any clear steps on how to do this successfully with the Api Routes of the loading as programmed.
I copied content of laravel public folder and build files of vue js to the public_html folder in shared hosting. Then it's loading the frontend without data …
shared-hosting ×10
php ×4
asp.net ×2
laravel ×2
security ×2
.net-4.0 ×1
add-on ×1
asp.net-mvc ×1
cakephp-3.0 ×1
composer-php ×1
cpanel ×1
credentials ×1
dapper ×1
deployment ×1
dns ×1
git ×1
laravel-5 ×1
orchardcms ×1
paypal ×1
server ×1
vue.js ×1