Unsolved problem until now :( Please Help!

nadlerz

Verified User
Joined
Apr 29, 2012
Messages
140
Here is an example, I created a test site: http://cosca-ccs.info
Then created 1 directory inside public_html : http://cosca-ccs.info/test/
But the problem, I can't access the directory or view it's listing, Why ?
I change the dir permission to 0777, still.

Any suggestion.

This site, is not using any software script, or any file.
Just empty.
 
Change to 755

OK, it's 755 now.
I mean, Why I couldn't view /test/ directory, where as when I'm still using Shared Hosting before, even if the folder is empty, it will still display the listing, not the one that is an ERROR page.
 
Im confused.

This is my messages before in my hosting:

Code:
I always got permission errors all about permission denied.
In my shared hosting before, all files run without an eror using 644 in my php files and 755 and 777 for directories.
But after into a VPS, I always got an error.
Even if I set all the directories to 777 and filees/data to 666, still suffering errors.

Please help me.

Code:
Example directory: http://www.phwebmaster.net/sitemap
In shared Hosting I can access that directory, then until I transfer into a VPS, I couldn't :(
Any some more files, editing templates shoes permission denied.

Code:
I have similar error here: http://xenforo.com/community/threads/xf-optimise.14021/page-5#post-200258
And I'm using xenforo also.

Code:
Looks like similar with this problem: http://xenforo.com/community/threads/attachments-upload-error.28702/#post-333024

Code:
Please guide me about this: http://xenforo.com/community/threads/attachments-upload-error.28702/#post-333024
On how to do ?

Code:
Im done doing that command, but that gives security problems, exploits..

I want to do this:
I typically chown them to root:webgroup or webserver:webgroup, and then set permissions to 755, 775, 744, etc.

But I wonder why, How ?

I have this problem Until now :(
 
The files have to be owned by user:user.

If you dont wanna use 777 permission, i would suggest you to install mod_ruid2. You can find how to on this forum.

If you got an index.php .html .htm in your test folder and you got still that error you should read apache logs.

If you dont know how to manage server i would suggest you to hire a person (me, zeiter, jlasman or who you prefer) to manage your server and fix your issue

Regards
 
Another problem

Here is a new problem arise after I fixed this.
I cannot Access anymore http:// xxx.xxx.xxx.xxx/phpMyAdmin after modifying httpd.conf :(
I change:
#User apache
#Group apache
To a new admin user, which fixed the 1st problem.

Any suggestion please?
 
There must be apache apache or webapps webapps, cant put admin user there, everyuser have their own httpd.conf in /usr/local/directadmin/data/users/USERNAME/httpd.conf

You cant modify that one for a user leve difficulty.

Regards
 
You're the Best!

This the code in: /usr/local/directadmin/data/users/admin/httpd.conf

Code:
ServerRoot /etc/httpd



<VirtualHost 109.163.234.97:80 >


	ServerName www.phcorner.me
	ServerAlias www.phcorner.me phcorner.me 
	ServerAdmin [email protected]
	DocumentRoot /home/admin/domains/phcorner.me/public_html
	ScriptAlias /cgi-bin/ /home/admin/domains/phcorner.me/public_html/cgi-bin/

	UseCanonicalName OFF

	<IfModule !mod_ruid2.c>
		SuexecUserGroup admin admin
	</IfModule>
	<IfModule mod_ruid2.c>
		RMode config
		RUidGid admin admin
		RGroups admin access
		#RGroups apache access
	</IfModule>

	CustomLog /var/log/httpd/domains/phcorner.me.bytes bytes
	CustomLog /var/log/httpd/domains/phcorner.me.log combined
	ErrorLog /var/log/httpd/domains/phcorner.me.error.log

	

	<Directory /home/admin/domains/phcorner.me/public_html>
		Options +Includes -Indexes



		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


		php_admin_value open_basedir /home/admin/:/tmp:/var/tmp:/usr/local/lib/php/


	</Directory>



</VirtualHost>

Opening, here: http://www.phcorner.me/who.php
Show's apache is the owner?
How to change it to admin ?
 
Back
Top