[Solved] Debain + Litespeed + PHPMyAdmin

#1
Hello guys,

I'm having a bit of a problem with installing phpmyadmin onto my VPS with litespeed installed. I've been able to do it with Apache2 installed easily but it is a lot more difficult with litespeed.

I've installed phpmyadmin and tried to access the phpmyadmin on my website but it is returning a 404 Not found error which is quite unsual as I have installed it correctly. Does anyone know what I need to do or what I have done?

Thanks to everyone that replys :)
 

webizen

Well-Known Member
#2
Assuming you load Apache config in LSWS and already built matching php in LSWS. Please check the lsws error.log (e.g. /usr/local/lsws/logs/error.log) and see if it has more details about the error.
 
#3
Thank you for replying so quickly :)

The error that I found in the file was:
Code:
File not found [/usr/local/lsws/progamer-host/html/phpmyadmin/]
Normally on apache2 it would take me straight to the phpmyadmin folder which is located in /usr/share/phpmyadmin. Is there anyway I could map this in?
 

webizen

Well-Known Member
#4
Looks like you access phpmyadmin via a native lsws vhost (vh_root being /usr/local/lsws/programmer-host). You can create a static context /phpmyadmin in that vhost to map to /usr/share/phpmyadmin.

Another option is that you also load apache configuration to lsws (Admin Console -> Configurations -> Server -> General ) and set Offset Port to say 2000. This way, you can access phpmyadmin via http://server:2080/phpmyadmin. where 'server' is the hostname you use to access apache.
 
#5
Another option is that you also load apache configuration to lsws (Admin Console -> Configurations -> Server -> General ) and set Offset Port to say 2000. This way, you can access phpmyadmin via http://server:2080/phpmyadmin. where 'server' is the hostname you use to access apache.
I changed the offset port to 2000 but I can't connect to the port 2080. I also set the Load Apache Configuration to yes but that did not work as there is no file configuration for it.
 
#7
I've tried finding the apache configuration file but the directorys that it states that it is does not exist: /usr/local/apache and /etc/httpd

Should I reinstall my VPS and then when I setup the mysql server, take the configurations of lighthttpd?
 

webizen

Well-Known Member
#8
Apache2 config on Debian is usually at /etc/apache2/apache2.conf.

As mentioned, you can create a static context (like Alias in apache) in LSWS for /phpmyadmin at vhost progamer-host level (Admin Console -> Configurations -> Virtual Hosts -> progamer-host -> Context)
Type: Static
URI: /phpmyadmin
Location: /usr/share/phpmyadmin
Accessible: Yes
Index File: index.php

BTW, lsws doesn't take lighttpd config.
 
#9
Thanks for your reply. I've tried adding the static content but everytime I've completed the context form and saved it, when I click on graceful restart it seems to disppear. I've added it quite a few times and it just keeps going... Anyone know what is going wrong?
 
#11
I set the folders to writeable for the owner/group (both lsadm) and it didn't work. I also created a lsadm account on the admin panel and tried it but no luck..
 
#12
Managed to solve the problem. I tried setting the programer-host/conf file to writable and it didn't work so I edited inside the vhconf.xml and added the data myself. All sorted. Thanks for your help webizen :)
 
Top