Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Tools

Development::Tools 3rd Party Tools for EQEMu (DB management tools, front ends, etc...)

Reply
 
Thread Tools Display Modes
  #196  
Old 05-18-2014, 09:54 AM
Rhodan
Hill Giant
 
Join Date: Oct 2006
Posts: 179
Default

Got it! And now the SVN works from the resulting directory too.

There seems to be something wrong with the login routine though. I always get an error

Invalid login attempt. Bad password from IP: '127.0.0.1'. Username: 'admin' Password: 'password'.; -- admin (18-May-14 15:36:24)

But I checked and the password in peq_admin does match md5('password')

odds bodkins!

Found it in another post. XAMPP defaults to short tags off, turned them on and all is well.
Reply With Quote
  #197  
Old 08-05-2014, 09:21 AM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Does anyone know how I fix this? THis is my first time with the editor... Everything seems setup correctly, but that logs directory doesn't exist on my server... Even after I created it and provided write access to it I couldn't work this out. Thank you!

HTML Code:
Could not create logs/sql_log_08-2014.sql! Make sure the logs directory is writeable by your webserver.
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #198  
Old 08-05-2014, 11:22 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

What is the logs and parent chmod?
Reply With Quote
  #199  
Old 08-05-2014, 11:35 AM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Quote:
Originally Posted by joligario View Post
What is the logs and parent chmod?
I have been playing around with several and the login screen itself "The pfpeditor folder" likes 755, but nothing I do to the logs folder seems to help.

I have no idea... I have even moved the log location in the config file and it's the same thing. There must be a setting somewhere that allows the webserver to write, and until I find that... It won't work.
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)

Last edited by hayward6; 08-05-2014 at 11:46 AM..
Reply With Quote
  #200  
Old 08-06-2014, 12:00 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

Yeah, 755 the folders and 644 the files (if I remember right). Are you running with a different user than the public html owner? Is it outside your public html folder with a symlink?

EDIT: How about give me an ls -al from your editor directory.
Reply With Quote
  #201  
Old 08-06-2014, 12:43 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Quote:
Originally Posted by joligario View Post

EDIT: How about give me an ls -al from your editor directory.
It's a little more broken than it was because I had to redo the database and source, but the log issue is still there... I don't know why that spells file is there...

Code:
eqemu@debian:/var/www/phpeditor$ ls -al
total 64
drwxr-xr-x 11 eqemu eqemu 4096 Aug  5 09:06 .
drwxr-xr-x  3 root  root  4096 Aug  5 07:32 ..
drwxr-xr-x  3 eqemu eqemu 4096 Dec  7  2013 classes
-rw-r--r--  1 eqemu eqemu 2146 Aug  5 11:50 config.php
-rw-r--r--  1 eqemu eqemu 2130 Aug  5 09:05 config.php.dist
drwxr-xr-x  3 eqemu eqemu 4096 Aug 28  2013 css
-rw-r--r--  1 eqemu eqemu  716 Sep 27  2013 .htaccess
drwxr-xr-x  3 eqemu eqemu 4096 May  3 07:00 images
-rw-r--r--  1 eqemu eqemu 3515 Jul 23 07:00 index.php
drwxr-xr-x  3 eqemu eqemu 4096 Jul 23 07:00 lib
drwxr-xr-x  3 eqemu eqemu 4096 Nov 25  2013 logs
drwxr-xr-x  3 eqemu eqemu 4096 Jul 23 07:00 perl
-rw-r--r--  1 eqemu eqemu 1303 Dec  5  2013 README.txt
-rw-r--r--  1 eqemu eqemu    0 Jun 30  2013 spells_us.txt
drwxr-xr-x  3 eqemu eqemu 4096 Jun 30  2013 sql
drwxr-xr-x  6 eqemu eqemu 4096 Jul 23 07:00 .svn
drwxr-xr-x 32 eqemu eqemu 4096 May  3 07:00 templates
eqemu@debian:/var/www/phpeditor$
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #202  
Old 08-06-2014, 12:55 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

I was able to get it working by turning off sql logging, so that is where the problem is...
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #203  
Old 08-06-2014, 01:03 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

I wonder if the problem may be that root owns your parent directory (www). Only guessing at this point.

What is inside your logs folder? Can I get an ls -al from there?
Reply With Quote
  #204  
Old 08-06-2014, 01:24 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

There is nothing inside the logs folder and I had to create that folder myself. I may be wrong but I believe that www folder was part of the debain deployment, so maybe that is the problem. I could change ownership of it... Let me try that.
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #205  
Old 08-06-2014, 01:26 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Oh sorry ls-la... yeah it looks like this...

Code:
eqemu@debian:/var/www/phpeditor/logs$ ls -la
total 12
drwxr-xr-x  3 eqemu eqemu 4096 Nov 25  2013 .
drwxr-xr-x 11 eqemu eqemu 4096 Aug  5 09:06 ..
drwxr-xr-x  6 eqemu eqemu 4096 Jul 23 07:00 .svn
eqemu@debian:/var/www/phpeditor/logs$
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #206  
Old 08-06-2014, 01:35 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

That didn't help :( I would run it with logs off, but it seems that the commands don't execute unless the log is written.

Code:
eqemu@debian:/var$ ls -la
total 52
drwxr-xr-x 13 root  root  4096 Aug  3 20:35 .
drwxr-xr-x 23 root  root  4096 Aug  5 09:23 ..
drwxr-xr-x  2 root  root  4096 Aug  5 06:25 backups
drwxr-xr-x 10 root  root  4096 Aug  6 07:15 cache
drwxr-xr-x 31 root  root  4096 Aug  3 20:08 lib
drwxrwsr-x  2 root  staff 4096 Jun 11 17:07 local
lrwxrwxrwx  1 root  root     9 Aug  3 19:46 lock -> /run/lock
drwxr-xr-x  9 root  root  4096 Aug  6 06:25 log
drwxrwsr-x  2 root  mail  4096 Aug  6 13:00 mail
drwxr-xr-x  2 root  root  4096 Aug  3 19:46 opt
lrwxrwxrwx  1 root  root     4 Aug  3 19:46 run -> /run
drwxr-xr-x  5 root  root  4096 Aug  3 19:51 spool
drwxrwxrwt  2 root  root  4096 Aug  3 20:35 tmp
drwx------  3 root  bin   4096 Aug  5 20:29 webmin
drwxr-xr-x  3 eqemu eqemu 4096 Aug  5 07:32 www
eqemu@debian:/var$
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #207  
Old 08-06-2014, 01:48 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

Quote:
Originally Posted by hayward6 View Post
... I may be wrong but I believe that www folder was part of the debain deployment...
I also assumed that as it didn't look user specific. Don't forget to put it back!
Reply With Quote
  #208  
Old 08-06-2014, 01:53 PM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Quote:
Originally Posted by joligario View Post
I also assumed that as it didn't look user specific. Don't forget to put it back!
Yeah I restored it. The only think in there is the phpeditor though.
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
  #209  
Old 08-06-2014, 05:31 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

I just created a debian 7 VM and the default for that folder is owned by root and the chmod is initially set low. I recommend setting /var/www back to root:root with a chmod of 0777. Then, any folders inside can be 0755 while the files are 0644 and should be owned by (in your case) eqemu:eqemu. See if that works.
Reply With Quote
  #210  
Old 08-07-2014, 09:53 AM
hayward6
Forum Guide
 
Join Date: Jul 2005
Posts: 468
Default

Quote:
Originally Posted by joligario View Post
I just created a debian 7 VM and the default for that folder is owned by root and the chmod is initially set low. I recommend setting /var/www back to root:root with a chmod of 0777. Then, any folders inside can be 0755 while the files are 0644 and should be owned by (in your case) eqemu:eqemu. See if that works.
I don't understand how to do what you are saying... I can set the permissions on folders and files, but the file its writing doesn't exist, and seems to be created each time a new change is made while having the time and date in the file name... I do have the editor working now but I get an error everytime I commit a change.

I changed www back to 777. You're saying that phpeditor should be 755, so I will try that.
__________________
Sayin Silverwolf
Server Op of The Sandbox (Non-Legit)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:38 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3