Tag Archives: Website development

httpd Run Error: Job for httpd.service failed because the control process exited with error code.

Job for httpd.service failed because the control process exited with error code.
See “systemctl status httpd.service” and “journalctl -xe” for details.

When opening the httpd service, the error as shown in the title appears

 

# systemctl start httpd.service

Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.

View the startup log through systemctl status

Check whether port 80 is occupied

netstat -antlp | grep 80

Killing process with kill instruction

Input the httpd start command again, and the error still exists.

Finally, it is found that the & lt; Directory/> It is found that the access permission of the/usr directory is readable by anyone but not executable. Therefore, the access permission of the/usr directory is changed

chmod -R o+x /usr

Try to open the service again, success!

to update:

Configuration of httpd.conf

Wamp install WordPress prompt can’t select database

1. Make sure all of the following are correct when installing.

    /** The name of the database for WordPress */
    define( 'DB_NAME', 'database_name_here' );
    
    /** MySQL database username */
    define( 'DB_USER', 'username_here' );
    
    /** MySQL database password */
    define( 'DB_PASSWORD', 'password_here' );
    
    /** MySQL hostname */
    define( 'DB_HOST', 'localhost' );
    
    /** Database Charset to use in creating database tables. */
    define( 'DB_CHARSET', 'utf8' );
    
    /** The Database Collate type. Don't change this if in doubt. */
    define( 'DB_COLLATE', '' );


, then maybe you my hand is out of control switched the database to Mariadb, because wamp USES Mysql by default. Even though you have set up a corresponding database in Mariadb and have authorized it, it still doesn’t work.


switch back, right click, as shown in the picture below: