Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : AMPPS installation on Debian Wheezy 7



Threaded Mode | Print  

 AMPPS installation on Debian Wheezy 7, Can't start apache (3 Replies, Read 10961 times)
bsdtux
Group: Member
Post Group: Newbie
Posts: 8
Status:
Hey forum, I just installed AMPPS on my debian 7 wheezy laptop. I can start the application using the following

Code

Name=AMPPS
Comment= Web Development Server
Exec=gksu -u root /usr/local/ampps/Ampps
Terminal=false
Type=Application
MimeType=text/plain
Categories=GTK;Utility;TextEditor;


However when it start mysql is already started but I can't start apache. I also can't stop mysql either.

Also Here is some output that I get from running it.
Code

josh@BsdE6400:~$ sudo /usr/local/ampps/Ampps
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/httpd.conf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/my.cnf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.2.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.3.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.4.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.5.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/python.conf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/mongo.conf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/pure-ftpd.conf
[Ampps::exec] "/home/josh/apache/bin/httpd-k start"
[DownloadManager::execute]
/bin/bash: /home/josh/php/bin/php: No such file or directory
[Ampps::exec] "/home/josh/apache/bin/httpd-k start"
^Cjosh@BsdE6400:~$ gksu -u root /usr/local/ampps/Ampps
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/httpd.conf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/my.cnf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.2.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.3.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.4.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/php-5.5.ini
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/python.conf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/mongo.conf
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/josh/conf/pure-ftpd.conf
[Ampps::exec] "/home/josh/apache/bin/httpd-k start"
[DownloadManager::execute]
/bin/bash: /home/josh/php/bin/php: No such file or directory
[Ampps::exec] "/home/josh/apache/bin/httpd-k start"
josh@BsdE6400:~$


I think it may be how I am starting it. I am going to try a few things and post back but any help will be appreciated.
IP: --   

AMPPS installation on Debian Wheezy 7
bsdtux
Group: Member
Post Group: Newbie
Posts: 8
Status:
Ok I was able to fix it. What I did was create a shell script under /usr/bin/ and called it ampps with the following
Code

#!/bin/bash
cd /usr/local/ampps
gksu -u root ./Ampps &


Then to add it to the lxde menu I added the following to /usr/share/applications/

ampps.desktop
Code

[Desktop Entry]
Name=AMPPS
Comment= Web Development Server
Exec=/usr/bin/ampps
Terminal=false
Type=Application
MimeType=text/plain
Categories=GTK;Utility;TextEditor;
josh@BsdE6400:/usr/local/ampps/www$


and now when it starts I can start and stop apache and mysql. I tested by connecting to mysql using the mysql client and I placed a php file that just runs phpinfo(); and everything seems to be working great. Probably could make the script more robust by doing some error handeling.
IP: --   

AMPPS installation on Debian Wheezy 7
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Keep the working directory /usr/local/ampps

i.e

Code
cd /usr/local/ampps
sudo ./Ampps



-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

AMPPS installation on Debian Wheezy 7
paxtonleiny
Group: Member
Post Group: Newbie
Posts: 8
Status:
Now I have control over when Apache and MySQL begin and end running. After installing the mysql client and placing a php file that does nothing but run phpinfo(), I was able to successfully connect to mysql and observe that everything was functioning as expected. Adding error handling would likely strengthen the script.

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 19, 2024, 8:01 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.646