could not configure domains in zpanel vps - php

I'm working on a vps server with zpanel.I really new in this area .I don't know how to set up WordPress and use it . I have gone through this manual .But this is not really helping . I got stuck at the 5th step.there is no ajax explorer in my zpanel.Then i gone through another manual which says to add a repo in zpanel .I don't know how to add that also .Can anyone please help me in setting up a wordpress site manualy into my zpanel.Thanks !

1) first download some SSH client, I recommend Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html). Choose the version that suits your operating system.
2) login to your VPS via SSH. In putty under "hostname your IP adress" put your VPS's IP or a domain name you have configured for that server. Check that the port number on the right to the hostname is 22. Click OPEN button in the bottom.
3) after providing your root username/password combo. follow all the steps from this page: http://www.servermom.org/install-ajaxplorer-file-manager-module-zpanel-cp/951/
Step 1 – Login to your server as root. I assume you knew how to do
this.
Step 2 – Then add additional repo for zPanel:
shell> zppy repo add zppy.alineofcode.co.uk
Step 3 – Now issue this command to update the repo:
shell> zppy update
Step 4 – Finally, here it is the main command to download and install
Ajaxplorer on your server:
shell> zppy install ajaxplorer
Step 5 – Open up your favorite web browser, visit the login page of
your zPanel server then login as zadmin.
login zpanel
Step 6 – Go to Server Admin >> Module Admin menu.
enable ajaxplorer
Step 7 – Next, enable Ajaxplorer module for Administrator, Reseller
and Client then hit the Save Changes button.
activate module
Step 8 – Before you test it, you better do some necessary checks. Now
go to Putty / Terminal window again then issue this command;
shell> nano /etc/zpanel/configs/apache/httpd.conf
Step 9 – Make sure the following line as below:
"php_admin_value upload_tmp_dir /var/zpanel/temp"
and not as below (the wrong one):
"php_admin_value upload_tmp_dir /etc/zpanel/temp"
Otherwise you might find some errors.
Step 10 – Go back to zPanel configuration page in your browser. Click
on File Management menu >> then Ajaxplorer >> followed by clicking the
Launch Ajaxplorer button.
launch ajaxplorer
Step 11 – You’ll notice that a new browser window appears launching
Ajaxplorer main UI up. Wait for few seconds till the interface fully
loaded.
loading
And Voila!
4) back to your original instructions page and continue from step 5

Related

How to fix a connection by web control panel Froxlor to MySQL?

I installed Apache2 and MySQL client/server and PHP8.1.2 manually. Ubuntu 22.04 successfully connected to the database from the terminal, changed the root password, exit.
Next, I tried to install the web control panel.
I first downloaded Froxlor from git https://github.com/Froxlor/Froxlor
to the /var/www/froxlor
master branch folder. Then I installed all the dependencies from the list, but this was not enough. The PHP application code gave out unsatisfied dependencies.
Here https://deb.froxlor.org/debian/pool/main/f/froxlor/ found the DEB package and installed it in the same folder through the terminal, satisfying all the dependencies with this - the code worked.
Then I started the installation. through the browser. By going to /index.php I am offered no options to go to ./install/, where I fill in all the relevant fields (maybe not correctly?) in the second window of the page and after clicking "submit" I get an error:
Checking MySQL-root access... SQLSTATE[HY000] [1698] Access denied for user 'root'#'localhost'
There seems to be a problem with the database-connection. Cannot continue. Please go back and check your credentials.
such an error crashes in the terminal if you connect to the database without "sudo", here I was confused. I have researched /install/lib/class.FroxlorInstall.php on the subject of at least some zatseki what should I do and still tried to add "sudo" in the file /tests/bootstrap.php in line 50
exec("sudo mysql -u root -p" . $rpwd . " froxlor010 " . dirname(DIR) . "/install/froxlor.sql");
but it didn't lead to anything. Maybe there is some similar experience, please tell me. Thx
P.S. I also tried to install via froxlor.phar, but my installation hung up at the moment of connecting to the database, perhaps the script was waiting for the password to be entered, but this was not reflected.
Oh, I solve it by my self.
It need to create file ../froxlor/lib/userdata.inc.php by this example:
<?php
// automatically generated userdata.inc.php for Froxlor
$sql['host']='localhost';
$sql['user']='froxlor012';
$sql['password']='PASS';
$sql['db']='froxlor';
$sql['ssl']['caFile']='';
$sql['ssl']['verifyServerCertificate']='0';
$sql_root[0]['caption']='Default';
$sql_root[0]['host']='localhost';
$sql_root[0]['user']='frox';
$sql_root[0]['password']='PASS';
$sql_root[0]['ssl']['caFile']='';
$sql_root[0]['ssl']['verifyServerCertificate']='0';
// enable debugging to browser in case of SQL errors
$sql['debug'] = false;
?>
also you need to create 'froxlor','froxlor012' and 'frox' users (step forward: dont foget to change the PASS's, it may not be empty, and to GRANT users to 'froxlor' database) and empty 'froxlor' database ( step forward: if you have no back up of DB you can take back up of this example https://www.dropbox.com/s/6guus4uxc9v2agf/froxlorbackup.sql?dl=0 ) in MySQL, then run in terminal:
sudo php /var/www/froxlor/install/scripts/config-services.php --froxlor-dir=/var/www/froxlor/ --create
sudo mysql -h localhost -u 'root' froxlor < /home/administrator/froxlorbackup.sql
so we have manualy install froxlor without any mistakes of installer. You will find user name froxlor with PASS in DB backup.

Git for windows seems to automatically fall back to credential helper "manager" if everything else fails. How do I prevent this?

I'm trying to integrate a custom web page with git. In my PHP scripts, I use the option "-c credential.helper="store --file=..." so that the web page does not stop and wait for a password to be input. The User ID is specifically designated for automated tasks like this. As part of the web interface, I have some code that will update the credentials file when the password expires.
During development, when I issue the git commands at the windows command prompt (the "terminal" for you *NIX readers :) they all work fine. However, when I put the commands inside my PHP script and run it via the web server, they fail. I've managed to capture the output of the git task, and it's waiting for someone to type in a user ID.
It seems that git on windows will automatically drop back to the "manager" helper, if all other mechanisms fail. The following sequence of commands illustrates this:
C:\TFS\Train>git config --get --show-origin credential.helper
C:\TFS\Train>type .git\.git_web_credentials
http://Promote5:[.....]#tocgnxt1pv%3a8080
C:\TFS\Train>git -c credential.helper="store --file=C:\TFS\Train\.git\.git_credentials" tag -a -m "Testing tags from the command line" Who_created_this_tag2
C:\TFS\Train>git show Who_created_this_tag2
tag Who_created_this_tag2
Tagger: JimHyslop <jim.hyslop#xxx.xxx>
Date: Wed Dec 6 18:13:27 2017 -0500
[... remainder of output elided ...]
C:\TFS\Train>git --version
git version 2.13.0.windows.1
As you can see, the "tagger" line indicates that I'm the one who applied the tag.
I've even tried deleting the credentials file completely, but it still falls back to using my identity.
Is there any way to suppress this automatic fall back to using my Windows credentials? It's making it very difficult to debug my PHP script: I never know from the command prompt whether the command succeeded because it was able to use the credentials file, or because it fell back to using my own ID (which the web service cannot do).
Edit to add: The password is actually in the credentials file, I masked it out. The file was initially created by entering the ID and password from a Cygwin shell, which is running a slightly newer version of git: 2.15.0. I'm running a WAMP stack for my web service.
After more investigation, I realized that the 'tagger' line is pulled from the configuration information under the [user] section. The user information shown in the log is unrelated to the authorization/credentials method.
The real question is: why is git ignoring the command-line option "-c credential.helper="? Or, if it's not ignoring the option, how can I figure out exactly what is failing with the credential helper?
For the record, the solution I came up with was to write a custom credential manager, as outlined at git-scm.com

ERR_EMPTY_RESPONSE error in WordPress

I have setup one theme in WordPress on the server. When I am trying to update the page it gives error ERR_EMPTY_RESPONSE. I have static IP address for my network connection. So, Anyone help me for this?
I have tried many solutions for this but still, it is not working.
Thanks in Advance!!
Try this!!
Sometimes it may be your systems IP issue. Follow these steps
Process 1
Step 1 : Open CMD Prompt
Step 2:
Run below commands one by one.
ipconfig /release
ipconfig /all
ipconfig /flushdns
ipconfig /renew
netsh int ip set dns
netsh winsock reset
Now Restart your PC.
Process 2
Problem may be in your wp-login.php , you have to replace wp-login.php file with latest WordPress versions wp-login.php file.

PHP exec() command not working

After hours and hours of trying and searching for an answer i coudn't get it working.
Hosting details:
Windows Server 2012 R2
Plesk 12
IIS 8.5
The problem
My problem is:
I want to execute this command in PHP. The command is necessary to reload the configs for filezilla, after creating a new user with an PHP script.
C:\Program Files (x86)\FileZilla Server\FileZilla Server.exe /reload-config
It does work when i try it directly in CMD.
But in PHP if doens't somehow work. I tried so many things, that im going to try to give you all the manners i tried.
I tried to do this at the following ways:
Trial 1
$command = '"C:\\Program Files (x86)\\FileZilla Server\\FileZilla Server.exe" /reload-config';
exec( $command, $output, $return);
print_r($output);
echo '<br/>' .$return;
Output:
Array ( )
0
Trial 2
$command = '"C:\\Program Files (x86)\\FileZilla Server\\FileZilla Server.exe" /reload-config';
system( $command, $output);
print_r($output);
Output: 0
Trial 3
$command = 'C:\\"Program Files (x86)\\FileZilla Server\\FileZilla Server.exe" /reload-config';
exec( $command, $output, $return);
print_r($output);
echo '<br/>' .$return;
Output: 0
Trial 4 (The only one that returns an error!)
exec( 'C:\\"Program Files (x86)\\FileZilla Server\\FileZilla Server.exe" /stop 2>&1', $output);
print_r($output);
Output:
Array ( [0] => Toegang geweigerd. )
In english:
Array ( [0] => Access denied. )
Privileges:
In allmost all awnsers found they talked about privileges. I did following privileges:
Gave all web users and IUSR privileges to CMD.exe and FileZilla Server.exe,
and tried to set the IIS authentication from anonymous to an Administrator account
Somebody said to try this:
echo '<pre>';
system('set', $retval);
echo ' </pre>';
If i do that my output is: http://pastebin.com/SjzeQpJ0
If you guys want anymore details just ask. I hope you guys can figure it out for me. I tried to be as clear as possible. Thanks.
Finaly found the solution!!
If you encounter the same problem as i did, and you dont know how to fix this, follow this steps.
Login to the Remote of your server (if you have access to it) Open
Open the IIS manager
Select -> Application Pools node underneath the machine node (left panel)
Right click on the desired domainname -> Advanced settings
Scroll to Process Model -> Id
Click on the 3 dots
Check the Custom Account radio button
Fill in an existing administration account which has access to the
remote desktop and of course its password
Press OK
Now go to the .exe or whatever file you want to access throught the
exec command and
Right click on the file and select properties
Go to the security tab
Select Edit
Now grand full rights to the account you selected before. If its
not listed than add it manualy by clicking on Add
If you have done all of this, it now should work.
Finaly found the solution!!
If you encounter the same problem as i did, and you dont know how to fix this, follow this steps.
Login to the Remote of your server (if you have access to it)
Open the IIS manager
Select -> Application Pools node underneath the machine node (left panel)
Right click on the desired domainname -> Advanced settings
Scroll to Process Model -> Identity
Click on the 3 dots
Check the Custom Account radio button
Fill in an existing administration account which has access to the
remote desktop and of course its password
Press OK
Now go to the .exe or whatever file you want to access throught the
exec command and
Right click on the file and select properties
Go to the security tab
Select Edit
Now grand full rights to the account you selected before. If its
not listed than add it manualy by clicking on Add
If you have done all of this, it now should work.
There is a much safer way to do this I figured out by using the above and exploring some. All you need to do is enable "Load User Profile" and it will then have all the normal user permissions assigned by a regular user. Just got it working like this instead of giving administrative access:
Login to the Remote of your server (if you have access to it)
Open the IIS manager
Select -> Application Pools node underneath the machine node (left panel)
Right click on the desired domainname -> Advanced settings
Scroll to Process Model -> Id
Set Load User Profile = True
and working! specifically fixed Windows 2012 R2
Go to IIS
Click on Application Pool
Select the application pool -> Advance Settings
Under Popup -> Process Model -> Set Load User Profile to TRUE
And -> Process Model -> Identity -> Local System
This will act as a current user
Note: If current has high privileges over system, This will be high risk.

XAMPP manager can't start server on OS X but it work on terminal

First my english might be bad so if you understand what I mean but the sentence is not correct feel free to edit my post, and if you don't understand I'll try my best to explain better.
I installed XAMMP on my MyBook Air version 10.11.5. I can launch the application but in "Manage servers" when I press the "Start all" button all the status switched from "Stopped" to "Starting" and then return to "Stopped" after about 20 seconds. Here is the application log :
Starting MySQL Database...
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
Two things here : the MySQL database doesn't send anything in return and it seem that for the log the servers are running. So maybe it was only a display problem on the "Manage servers" tab so I tried to go to the adress http://localhost but nothing.
After a lot of research and try the only topic who gives me what I want is this one : MySQL Database won't start in XAMPP Manager-osx
The command sudo /Applications/XAMPP/xamppfiles/bin/mysql.server startworks perfectly. So now I can start the MySQL server only. The I noticed something, here is the terminal log :
MacBook-Air:~ user$ sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Starting MySQL
. SUCCESS!
You can see I had to enter my session password. So my questions are simple :
Could the password be the problem for the XAMPP Manager ?
i.e. the manager try to launch the servers but encounter the password request and then failed to launch the servers.
If it's the case how can I give to XAMPP the access so the manager can launch on is own the servers without needed to use the terminal ?
Is there any command like the one below to launch also the PHP server if I can't fix the Manager problem ?
I promise I did research on this topic but I find nothing about this specific password (I was often redirected on starting session password...).
Thank you for reading and maybe for answering !
Yes because thats not the right way to start XAMPP.
You should do the following instead cd to your xampp application folder, there should be a executable file called xampp. The gui application is not that good, I've had various problems with it, I think the best thing to do is to start it via terminal.
The password is not the problem, its asking because it requires admin privileges to run it. Thats why you're using sudo.
Run the following command:
sudo ./xampp start
You can find the list of all xampp terminal commands by typing the following:
./xampp -h
For example you can start different 'modules' of the application separately e.g to start just apache.
sudo ./xampp startapache
I hope this helps.
Could it be something broken with the installer?
I had the same issue, but after downgrading to 7.0.5 everything works fine on El Capitan.

Categories