Cannot access suitecrm project via url http://localhost/myproject/public/ - suitecrm

When I access the path http://localhost/myproject/public/ it returns that this site cannot be accessed.Cannot connect error.enter image description here
I can access the folders but when accessing the public folder itself.enter image description here

Related

Virtual Directory in IIS and sql server filetables

I have an ASP.NET MVC application and which has two virtual directories. The first one (let's name it FirstDir) references some folder on the server (for example C:\SomeDir).
I connect to a MS SQL Server Database. This database has a Filetable named MyFiles. I can explore the directory of table MyFiles in Windows Explorer by path \\sql-server-instance-name\mssqlserver\MyData\MyFiles. It contains files stored in table MyFiles.
The second virtual directory (SecondDir) in my app references MyFiles tabe's directory (\\sql-server-instance-name\mssqlserver\MyData\MyFiles) because I would like to use files stored in this table directly from my ASP.NET application.
Then I write the following markup:
<!--Here I retrieve the image from first virtual dir, i.e. from file system-->
<img src="/SiteName/FirstDir/first.png" />
<!--And here I get the image from second virtual dir, i.e. from FileTable-->
<img src="/SiteName/SecondDir/second.png" />
The image in first img was loaded correctly. But the second image wasn't loaded (error 500.19).
Is it possible to get images from FileTable's directory in browser?
UPDATE:
I can load image from filetable in browser by UNC-path (like this: \\sql-server-instance-name\mssqlserver\MyData\MyFiles\first.png)
but I can not to use this path as src in img-tag (message in browser's console: 'Not allowed to load local resource' )

Uploading files to a domain using form

I have written an application in CakePHP 3.x and there is a form to upload files.
At present, files are being uploaded to WWW_ROOT.'files' which is /app/webroot/files/ path.
To store files separately from core application, I created a subdomain cdn.example.com whose path is like /home/user/example.com/cdn.example.com/.
since, uploading files requires absolute path, how can I get absolute path of the subdomain cdn.example.com same as $_SERVER['DOCUMENT_ROOT']; from example.com?
First check if your server allow to write files from main domain to subdomain.
You can't get the absolute path of a different domain of the one you deployed your application, you should store the path in a variable or in constant.
If you really need to store files in another domain/subdomain and any path is blocked you should consider to reupload the files via FTP script.

angular file upload and preview

I am using ng-file-upload library to post files to my back end Web Api. Once the file is posted I save it to the following folder
"~/App_Data/Tmp/FileUploads/"
and also save the path to my database.
Now when I go on edit mode; I want to get a preview of all uploaded files (photos). But when I use something like
ng-src="path"
I get
"Not allowed to load local resource"
is this the right approach, when serving files from disk?
That path is a server path and not a client path so for sure that won't work.
You need to have an endpoint on your server to allow downloading those files with id or name/path and then set the src of the img to that url.
The implementation download endpoint depends on your backend technology.
If in your edit mode you still have access to the file object that use has just selected then you can do:
<img ngf-src="file">

more sites with cakephp in public_html folder live

I have uploaded my company site (cake php) to live server's public_html folder
it is working fine
I want to create another folder named hr and want some static page in it
I have uploaded it, but accessing it as
www.mydomain.com/hr/mypage.html
it gives error of somethng like invalid controller
how to do this?
Put your folder hr inside as
public_html/app/webroot/hr
so it will be accessible as
www.mydomain.com/hr/mypage.html
hope this will solve your problem.

Please Contact Your Hosting Provider To Ensure The Appropriate Security Settings Have Been Enabled On The Server

I am using Text/HTML module. I Click on Edit Text, Then i click on Image icon to insert image, Then i click on Browse Serve at Image Info tab, then i click on Browse button, then i click on Upload New File which result in below error :
An Error Has Occurred When Attempting To Save The File F:\Newgen\DNN\DotNetNuke_Community_04.09.05_Source\Website\Portals\0\1365-little-cutie.jpg. Please Contact Your Hosting Provider To Ensure The Appropriate Security Settings Have Been Enabled On The Server.
Please suggest which permission i have to made on folder. Also specify folder name ie website or Portal\0.
If I am creating a folder using DNN, then uploading new file in this folder, then its working fine. All the rights has been assigned to Website folder which have this new folder. Please suggest.
I am using DNN 4.09.05/ Windows XP Version 2002, Service Pack 3/ IIS V5.1
You should have permissions on the F:\Newgen\DNN\DotNetNuke_Community_04.09.05_Source\Website\ folder for the ASPNET worker process, it should have Modify or Full Control and that permission should be propagated down to all child folders.

Resources